-
-
Notifications
You must be signed in to change notification settings - Fork 95
Ctrl+Shift+T to open previously closed tabs #508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This would be a really good one to add. I often miss it as well. The "File|Open Recent" menu's top most item is an approximation of that, but not exactly the same (it will be the most recently visited tab) |
FWIW, I created https://docs.racket-lang.org/drracket-restore-workspace/ that implements this functionality (more or less). You need to create a keybinding yourself however. I believe @Metaxal also implemented something similar with Quickscript. |
Oh no, I misread the thread, sorry. Mine restores the entire workspace. The requested feature here restores only one tab. |
It should be mostly straightforward to adapt the open-recent quickscript to
your needs:
https://gist.github.com/Metaxal/0bbd874891442aad78fbd0c08a329cd9
If you do write such a script, it would be great if you could share it on
the wiki:
https://github.com/racket/racket/wiki/Quickscript-Scripts-for-DrRacket
…On Fri, Sep 10, 2021 at 8:13 PM sorawee ***@***.***> wrote:
Oh no, I misread the thread, sorry. Mine restores the entire workspace.
The requested feature here restores only one tab.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#508 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMU2HF54T5GDJLMTKXKTC3UBJKEDANCNFSM5DZROYQQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I'd like to take this up. I tried looking up the definitions for the keybindings |
Great, thanks @squarebat ! I think you'll want to pick one of the methods whose name starts with There may be other ways to do this, but some combination of those places (or nearby places) is probably a good place to start to figure out how this functionality should fit in. |
Thanks @rfindler! Will look into it and see what works. |
Hi @squarebat! |
Here's a quickscript that should do what you want: By default you'll get a menu item in It will reopen the last opened file in DrRacket that is not currently open (and that still exists on disk). You can call the script multiple times to reopen several files. (cc @spdegabrielle ) |
@VinayakBector2002 thanks! I'll be looking into this issue today/tommorow and let you know what I learn. @Metaxal i haven't yet experimented with quickscripts myself, I'll be playing around with this one. I'll see if there is a way to enable it as a keybinding by default, the same way ctrl-w and ctrl-t work. Thanks for helping out! |
@Metaxal I added the reopen-last-tab script and tried to use it, however I get the following error every time i run it -
The error was initially a missing import, which was resolved by creating the |
@squarebat You probably have an old version of Racket (the file |
@Metaxal sorry for the delay, couldn't look into this due to exams. I couldn't fix it by upgrading for some reason, but a clean install did the trick! The script works as expected. I will look into how to add that change to the gui repo. |
It seems like racket has adopted
ctrl+T
for new tab,ctrl+W
for close tab, similar to browsers like ff and chrome, howeverctrl+shif+T
is not bound to opening a recently closed tab? I've been usingALT+F T
for a while nowThe text was updated successfully, but these errors were encountered: