From b5c8e3e247ff0a39b5a73cfb5dcc66d336f19656 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Fri, 21 Sep 2012 16:05:18 +0200 Subject: [PATCH] Recent menu ignores files opened via mate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- Applications/TextMate/src/RMateServer.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Applications/TextMate/src/RMateServer.cc b/Applications/TextMate/src/RMateServer.cc index 218b1440..2231453a 100644 --- a/Applications/TextMate/src/RMateServer.cc +++ b/Applications/TextMate/src/RMateServer.cc @@ -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())