Recent menu ignores files opened via mate

You can still create an alias for ‘mate’ that calls ‘mate --recent’.

The motivation for this change is that stuff you open via mate is generally SCM commit messages, the cron tab, included files (opened from within TextMate via bundle commands), and other such things. Additionally I think that if you open files via ‘mate’ you would just repeat the line in your shell, though I know not all users feel this way.

Folders opened via mate does go into the recent menu.
This commit is contained in:
Allan Odgaard
2012-09-21 16:05:18 +02:00
parent fbbe4ddac7
commit b5c8e3e247

View File

@@ -560,6 +560,9 @@ struct socket_observer_t
if(!args["selection"].empty())
doc->set_selection(args["selection"]);
if(args["add-to-recents"] != "yes")
doc->set_recent_tracking(false);
if(wait || writeBackOnSave || writeBackOnClose)
doc->add_callback(new save_close_callback_t(doc->path(), socket, writeBackOnSave, writeBackOnClose, token));
@@ -571,7 +574,6 @@ struct socket_observer_t
// std::string folder; // when there is no path we still may provide a default folder
// enum fallback_t { must_share_path, should_share_path, frontmost, create_new } project_fallback;
// bool add_to_recents;
// bool bring_to_front;
if(args.find("authorization") != args.end())