5 ms·
I've moved from TextMate to Sublime Text 2 over the past few weeks. The only thing I miss from TM is the ability to jump back to the last opened file with comm
by sunchild 15y ago
I've moved from TextMate to Sublime Text 2 over the past few weeks. The only thing I miss from TM is the ability to jump back to the last opened file with command-t.
Has anyone managed to hack their config to enable that feature? I understand there are some callbacks available that might help, but I haven't figured out how to put them into action.
- wbond 15y agoCtrl+Tab and Ctrl+Shift+Tab navigate through the "stack" of recently opened views (files). Is this what you mean?
- sunchild 15y agoI missed that somehow, although it seems perfectly obvious now. I'm flexible enough to relearn a familiar key binding. (How often do you hear that in reference to a text editor?!) Thanks!
- lobster_johnson 15y agoThat only cycles between currently open tabs, so that's not quite the same. The genius of TextMate's go-to-file pane was that before you started typing, it would list your recently closed files, so the go-to-file pane had two functions in one, both servicing the need to open something that is not currently open.
- wbond 15y agoThat sounds like a mix of switching recent tabs and Goto File (ctrl+p/cmd+p).
- lobster_johnson 15y agoHave you tried the "show files" panel? Ctrl/cmd-T. Works like TextMate's. Works like ctrl/cmd-P except it only accepts files, and will show a default file list when it opens.
- sunchild 15y agoWell, that was my original point above – the difference between cmd-T in TextMate vs. Sublime Text 2 is that TextMate ordered the files with the most recently opened at the top. In TextMate, I got used to using cmd-t to jump back and forth between files. Minor thing, really. I just wondered if anyone hacked that same behavior into Sublime Text.
- lobster_johnson 15y agoWish it could be hacked, but while you _can_ create search panels like that, you can't access the list of recently opened documents, as far as I've found.
- edanm 15y agoSublime Text 1 had a plugin that gave a Most Recently Used shortcut to open recently closed documents. It used the file-opening hook, recording ever file to an sqlite DB.