-
Notifications
You must be signed in to change notification settings - Fork 38
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
Undo last closed tab #309
Comments
You can press 'h' to see History of visited pages. |
That's useful, but the tab I close might be so far down the history list that I don't know which one it is. Is there another way to know? |
Maybe it can be simpler. Save this file as ~/.config/elinks/hooks.py . Requires python scripting and exmode. I don't think that adding "undo closed tab" will be really useful in elinks code. |
I get |
Recent kernels due to security reasons have disabled TIOCSTI. |
The uri of the latest closed tab uri is remembered in struct terminal. And when the reopen-last-closed-tab action is executed, then uri is open in new tab in foreground. Only one is in memory. If you close two tabs, only on one of them can be reopened. No key is assigned to this action by default.
@Moult check this code ^. You must assign key to reopen-last-closed-tab action or run it in exmode. |
Thanks, sorry for the very late reply. I can confirm that with the latest commit the function works as expected. Awesome! I've bound it to key 'u'. |
Is there a way to undo the last closed tab? I sometimes accidentally hit the "close tab" hotkey by mistake. Is there a way to reopen the tab?
The text was updated successfully, but these errors were encountered: