mirror of
https://github.com/textmate/textmate.git
synced 2026-01-20 20:27:59 -05:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user