jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

Reopen closed file on right mouse click on tabs #138

Closed FichteFoll closed 8 years ago

FichteFoll commented 9 years ago

From @dingo-d on June 15, 2015 13:38

It would be cool to add 'Reopen Closed File' on right click, when you click on an open file (tabs). Right now there are 'Close', 'Close Other Tabs', 'Close Tabs to the Right', 'New File' and 'Open File'.

I think that it would be practical to add reopen a closed file to the list. Sometimes it just happens that I'd close a file accidentally, and then I need to go to File > Open Recent > Reopen Closed File, or use shortcut on keyboard. But if you already have a mouse in hand, a simple right click is much easier then doing a not so small shortcut.

Copied from original issue: SublimeTextIssues/Core#894

FichteFoll commented 9 years ago

Add this:

Packages/User/Tab Context.sublime-menu

[
    { "command": "reopen_last_file", "caption": "Reopen Closed File" }
]

But yes, this could be the default.

dingo-d commented 9 years ago

Great! Works like a charm :)

FichteFoll commented 8 years ago

This issue has been moved back to the other repo.