Hi,
I wonder if we could have a 'Open Last Closed File' on the File menu - the idea being it would allow a keyb shortcut to be assigned directly to it?
We can already do this via File -> Open Recent -> (first item), but afaik this doesn't allow us to assign a keyboard shortcut specifically to the first item
I'd quite like to be able to re-open it with something like CMD+SHIFT+T, similar to how Chrome lets you reopen the last closed tab
Thanks
On Oct 6, 2016, at 12:19 PM, Carpii UK carpii.uk@gmail.com wrote:
I wonder if we could have a 'Open Last Closed File' on the File menu - the idea being it would allow a keyb shortcut to be assigned directly to it?
That seems unnecessary. If you set your computer's General system preferences so that "Close windows when quitting an app" is unchecked, TextMate will _automatically_ reopen the file(s) you had open the last time you quit. It's built right into the system's document model.
The only reason a program like Chrome needs a special way of doing this is that it has no documents. But TextMate does. m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 10! http://shop.oreilly.com/product/0636920055235.do iOS 10 Fundamentals! http://shop.oreilly.com/product/0636920055211.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On 7 October 2016 at 03:14, Matt Neuburg matt@tidbits.com wrote:
On Oct 6, 2016, at 12:19 PM, Carpii UK carpii.uk@gmail.com wrote:
I wonder if we could have a 'Open Last Closed File' on the File menu -
the idea being it would allow a keyb shortcut to be assigned directly to it?
That seems unnecessary. If you set your computer's General system preferences so that "Close windows when quitting an app" is unchecked, TextMate will _automatically_ reopen the file(s) you had open the last time you quit. It's built right into the system's document model.
The only reason a program like Chrome needs a special way of doing this is that it has no documents. But TextMate does. m.
Yes but this doesn't relate to when I quit TM.
It's for when I'm developing inside TM, and close a source file, but shortly after realise I now want to quickly open it again
I can use CMD+T to reopen it quickly enough, but it would be nice to just have a 'Whoops! that was dumb' keyboard shortcut
On Thu, Oct 6, 2016 at 9:17 PM, Carpii UK carpii.uk@gmail.com wrote:
can use CMD+T to reopen it quickly enough, but it would be nice to just have a 'Whoops! that was dumb' keyboard shortcut
If you are working within a project then Cmd+T <enter> will open the last closed file.
On 7 October 2016 at 03:36, Curt Sellmer sellmerfud@gmail.com wrote:
On Thu, Oct 6, 2016 at 9:17 PM, Carpii UK carpii.uk@gmail.com wrote:
can use CMD+T to reopen it quickly enough, but it would be nice to just have a 'Whoops! that was dumb' keyboard shortcut
If you are working within a project then Cmd+T <enter> will open the last closed file.
Thanks, this will be useful for a lot of the time
But strictly speaking it doesn't open the last closed file. It defaults to the last tab selected (which may actually be a file that is already open)
On 7 Oct 2016, at 4:42, Carpii UK wrote:
But strictly speaking it doesn't open the last closed file. It defaults to the last tab selected (which may actually be a file that is already open)
Correct that “Open Quickly…” is only showing last-recently-used for the current project.
But is this a problem in practice? And if so, does the “Open Recent” menu work for re-opening the document you accidentally closed?
This submenu is managed by the system (as part of its document recent list management), so I cannot add a “Last Document” proxy item at the top of this menu (which could then be assigned a shortcut), but I think that you can select the first item of this menu via AppleScript, which would give you a more universal “Open Last Document”.
Btw: for a proper “Open Last Document” TextMate should probably also support this for untitled documents or documents that had unsaved changes when they were closed. Though unsure how often such feature would be used.
Correct that “Open Quickly…” is only showing last-recently-used for the current project.
But is this a problem in practice?
Not causing me a big problem, I just thought it might be a simple feature to add so it was more of a 'nice to have' I see its a bit more complex that I thought though, so not to worry
And if so, does the “Open Recent” menu work for re-opening the document you accidentally closed?
I initially thought it would. But now I dig deeper, the Open Recent... seems to filter out files in the current project anyway.
Its given me an idea though...
What Im really asking for is to just pick the top file from "defaults read com.macromates.TextMate.preview LRUDocumentPaths" and then open that via mate. I can script that, and then assign a keyb shortcut to my script, so it's all good :)
Thanks
That sounds like a script I’d use too. Would you please share it when you’re done?
Thanks,
Graham Heath
On October 7, 2016 at 3:27:09 AM, Carpii UK (carpii.uk@gmail.com) wrote:
Correct that “Open Quickly…” is only showing last-recently-used for the current project.
But is this a problem in practice?
Not causing me a big problem, I just thought it might be a simple feature to add so it was more of a 'nice to have' I see its a bit more complex that I thought though, so not to worry
And if so, does the “Open Recent” menu work for re-opening the document you accidentally closed?
I initially thought it would. But now I dig deeper, the Open Recent... seems to filter out files in the current project anyway.
Its given me an idea though...
What Im really asking for is to just pick the top file from "defaults read com.macromates.TextMate.preview LRUDocumentPaths" and then open that via mate. I can script that, and then assign a keyb shortcut to my script, so it's all good :)
Thanks
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Oct 6, 2016, at 7:17 PM, Carpii UK carpii.uk@gmail.com wrote:
close a source file
Why would you _ever_ do that? Now that we have tabs and the wonderful single-window display, I just leave everything open. Or you could minimize instead of closing.
Next you'll be telling me you sometimes quit apps! :)
m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 10! http://shop.oreilly.com/product/0636920055235.do iOS 10 Fundamentals! http://shop.oreilly.com/product/0636920055211.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
close a source file
Why would you _ever_ do that? Now that we have tabs and the wonderful single-window display, I just leave everything open. Or you could minimize instead of closing.
Well, the beauty of great software is that it doesn't force everyone to use it the same way :)
Minimising wouldn't really work, I'm not trying to hide or move TM out the way. I'm developing a number of concurrent projects, some of which have hundreds of source files. You can see how this would easily become unmanageable if I tried to keep every file open.
If it works for you though, great :-)
I'm developing a number of concurrent projects, some of which have hundreds
of source files.
You can see how this would easily become unmanageable if I tried to keep
every file open.
"TextMate will automatically close tabs that hasn’t been used in a while, when the tab bar overflows".
http://manual.textmate.org/projects.html#closing-tabs
So keeping every file open is impossible anyways.
Sent from [Nylas N1](https://link.nylas.com/link/33wd9n5m5l3cdcz4d1oikbwcz /local-b6d8ff8b-d05d/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=dGV4 dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=), the extensible, open source mail client.
On Oct 7 2016, at 4:54 am, Carpii UK carpii.uk@gmail.com wrote:
close a source file
Why would you _ever_ do that? Now that we have tabs and the wonderful single- window display, I just leave everything open. Or you could minimize instead of closing.
Well, the beauty of great software is that it doesn't force everyone to use
it the same way :)
Minimising wouldn't really work, I'm not trying to hide or move TM out the
way.
I'm developing a number of concurrent projects, some of which have hundreds
of source files.
You can see how this would easily become unmanageable if I tried to keep
every file open.
If it works for you though, great :-)
Am 2016-10-08 um 13:06 schrieb Koen Punt koen@koenpunt.nl:
"TextMate will automatically close tabs that hasn’t been used in a while, when the tab bar overflows".
Is it possible to switch this behaviour off?
Regards,
Martin Wilhelm Leidig
There's an old thread about it here: http://lists.macromates.com/textmate/2014-May/037471.html
Sent from [Nylas N1](https://link.nylas.com/link/33wd9n5m5l3cdcz4d1oikbwcz /local-6d927eb5-12da/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=dGV4 dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=), the extensible, open source mail client.
On Oct 8 2016, at 5:23 pm, Martin Wilhelm Leidig listwatch@moss.in-berlin.de wrote:
Am 2016-10-08 um 13:06 schrieb Koen Punt koen@koenpunt.nl: "TextMate will automatically close tabs that hasn’t been used in a while,
when the tab bar overflows".
Is it possible to switch this behaviour off?
Regards,
Martin Wilhelm Leidig
-- SatzTeXnik — Professional TeXing and TeXnical counselling
_______________________________________________ textmate mailing list textmate@lists.macromates.com [http://lists.macromates.com/listinfo/textmate%5D(http://lists.macromates.com... stinfo/textmate&r=dGV4dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=)
See disableTabAutoClose at https://github.com/textmate/textmate/wiki/Hidden-Settings
On 8 October 2016 at 16:23, Martin Wilhelm Leidig < listwatch@moss.in-berlin.de> wrote:
Am 2016-10-08 um 13:06 schrieb Koen Punt koen@koenpunt.nl:
"TextMate will automatically close tabs that hasn’t been used in a
while, when the tab bar overflows".
Is it possible to switch this behaviour off?
Regards,
Martin Wilhelm Leidig
SatzTeXnik — Professional TeXing and TeXnical counselling
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate