Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

ctrl+z command to Reopen last closed tab ?

  • I doesn't work for me, it keeps saying my preferences file is bad when I add this.
    There's absolutely no keybindings already in the preference files so I'm not sure if that's normal.

    I tried to add the following just before the last } (just imagine there are return carriage in there to fit what you wrote):

    "Keybindings": {
    "Basic": {
    "Redo": [ "Ctrl+Y" ],
    "ReopenLastClosedTab": [ "Ctrl+Z" ]
    },
    "Settings": {
    "AdvancedEnabled": true
    }
    }

    As a side note, how do people use things like code tags(or whatever you used), add picture to posts, etc... I have 0 controls or buttons when I create or edit a post.

    Also, I wouldn't expect it to work in the address bar or any place you can edit text, it's important that it be only the undo text change there.

    Edit: Nevermind, I just forgot to add the comma after the last item.
    It might be worth noting that people should replace the first { in the file with one of your examples for it to work properly.

    Is there a list of valid keybindings somewhere? It might be very useful to do things like pesala want to do.

  • For the help asked for, making ctrl Z work, instead of ctrl shift tab, because the person has trouble doing ctrl shift tab with one hand, Sexy Undo Close Tab is the simplest. One doesn't have to be a computer geek 🙂 to make it work. (It has a lot of user-friendly features related to that one issue). I discovered one more nice feature of this extension. It keeps a running list of tabs closed. If you close the browser and then open it again, the closed tabs from the previous session(s) are still there, and a running count is provided on the icon. The developer says don't worry if it keeps of a lot of tabs (high number) because it can do it. At any time, you can click to empty it of what it's saving in memory. Also, you can set if not to keep track of the tabs that were in its memory when the browser opens again. It also has a search vehicle to find the tab you want (particularly useful if you have it set to keep recording closed tabs (even when a browser closes and reopens). All told, I think, it's quite good.

    @b-p-m I tried Vimium and couldn't seem to get it going. The commands seemed set up, but when I went to a web page, none of them seemed to work. I think being able to navigate by keyboard alone is a plus for certain peopke, as it's a nice accessibility feature for those having trouble using a mouse. so I may play with it more. The other suggestions seemed quite complex. I agree with Pesala that "Ordinary users should not have to search forums and edit code to make important changes like this."

    Here's something I found on AutoHotKey (http://en.wikipedia.org/wiki/AutoHotkey) in case anyone wants to explore it further.

  • Hi Pesala, you're welcome 😉
    Regarding new features, I think, that you should ask one of the Developers, because as you already know, I'm one of the users, like you. However, it seems that the "customized keyboard shortcuts" feature "is cooking":

    1. "We have to sort out the basics before adding customization. For example, it is not until Opera 21 that Mac will gain full keyboard support (!) for websites like Google Docs. When all the pieces are in place, more complex features and customization is added."
      http://blogs.opera.com/desktop/2014/02/opera-next-for-the-cognoscenti/#comment-1233692657,
    2. "Keyboard shortcuts cannot be customized yet. If you take a look in Chromium, it would look promising for a feature that could be added later."
      http://blogs.opera.com/desktop/2014/02/opera-next-for-the-cognoscenti/#comment-1231661056,

    Hi Samkook,
    This forum uses the Markdown syntax, but as far as I checked, not all of it work well here. It seems, that it's because this forum is still under development, or maybe some of its syntax will be never implemented here.

    To add a block of code, I use the syntax as below:
    1st line: 3x"~", then 3 spaces or < br> tag (without space)
    2nd line: some code, then 3 spacecs or < br> tag
    3rd line: 3x"~".

    For how to add images, and/or links, please have a look here.

    Regarding the keyboard shortcuts, you can find the default key bindings in the "opera.pak" file, which is located in the Opera's root subdir - in the latest Opera stable, it is located in the "20.0.1387.91" subdirectory.

  • @l33t4opera

    Thanks, none of the many other forum I frequent use this so I wasn't familiar with it. It looks like a pain in the ass to remember though since most of it doesn't have anything to do with what it actually does, unlike bbcode which is great for that.

    Good to know about the opera.pak file.

    @lem729

    The extension might be the simplest, but it's good to have a choice, especially since, personally, I like to avoid using extension as much as possible since the more you install, the higher the chance they will interfere with each other and cause unwanted behavior since they're all made by people who, most likely, are not be aware of the others existence(except maybe for the very popular ones which some developers might make an effort to make sure they're compatible with each others).

    The extension is great though if you also want to bring back the trashbin feature from v12 and older.

  • @samkook

    I agree with you on choice. The more the better. And I do understand your wariness about extensions. I did love that trashbin feature. The Sexy Undo Close Tab extension is richer, though

  • The Sexy Undo Close Tab extension is richer, though

    It sure is, but none of its feature interest me personally other than the ctrl+z so I'm much happier with the alternative, especially since it allows me to change any keyboard shortcut.

  • SexyUndoClose Tab has a lot of nice features, but there's a kink in the control Z. For some strange reason that I can't figure out, it doesn't work from the speed dial. So if you're on the speed dial and want to re-open a closed tab, you have to use, control shift T, which shortcut still works from everywhere. It's a bit strange, that slight defect. So control shift T works from everywhere to re-open the last closed tab, and control Z works from everywhere, EXCEPT the speed dial, as long as you activate it in settings, or so it appears right now.Of course, if you click on the icon for the extension, you have before you all the tabs, and with the mouse can also open any of them.

  • @l33t4opera
    opera.pak does not seem to contain a list though. It's an 18MB Hex coded file which, when I decode it, seems to contain Javascript from webkit.

  • Hi @beefz0r, with all due respect, but on the contrary, of course it does, just search for ' "Keybindings" ' 😉

  • should look like this:
    {
    "Keybindings": {
    "Basic": {
    "ReopenLastClosedTab": [ "Ctrl+Z" ]
    },
    "Settings": {
    "AdvancedEnabled": true
    }
    },

  • Alright thanks to some help I found this thread...Anyone know if there is anyway to bind keys to bookmarks?

    For example in opera 12 you could completely adjust keybinds...If you wanted to bind to a bookmark you set it up for that button then had it state go to ""

  • Well, I'm ubuntu user 14:04, and wished to make use of the developer operates 25 .... good browser and great however I have a problem and need some help .....

    First and for an online game that uses the adobe flash player opera took our first entered the game and started playing beautiful thing ....However derrepentemente it now every time I click the button f3 already in the game it opens the "Find the next instance of the text" Please .... would love to continue with the opera browser developer 25, but with this impasse is not possible someone could teach me how to disable this function in the f3 button ?????

  • Hi @wbguna: please have a look here.

  • I'd like to use "Alt+T" to open/close turbo mode, it is free so I can use this shortcut but in the path to profile (C:\Users\Eg\AppData\Roaming\Opera Software\Opera Stable) Preferences does not exist! see:

  • You can find the file Preferences it if you enter

    %APPDATA%\Opera Software\Opera Stable\
    

    in adress bar of Explorer.

  • So I'm trying to change the paste and go keyboard shortcut. The default is Ctrl+Shift+V but I like the older Ctrl+B because you only need two fingertips to use it. I've managed to edit the preferences file without getting a corruption error (yay) but all it seems to have done is disable the paste and go keyboard shortcut completely. It is still in the context menu when you right click the address bar but theres no longer a keyboard shortcut listed next to it.

    Here is what I added to the preferences file:
    "Basic": {
    "PasteAndGo": [ "Ctrl+B" ]
    },

  • So that dodn't work quite right. Lets try this then.

    "Keybindings": {
        "Basic": {
            "PasteAndGo": [ "Ctrl+B" ]
        },
            "Settings": {
                "AdvancedEnabled": true
            }
    },
  • Hi @lando242: Ctrl+B is the default keybinding for "AddToFavorites", and therefore you need first assign other key combination to this function, and then rebind it to "PasteAndGo", as follows:

    {
       "Keybindings": {
          "Basic": {
             "AddToFavorites": [ "Ctrl+Shift+F" ],
             "PasteAndGo": [ "Ctrl+B" ]
          },
          "Settings": {
             "AdvancedEnabled": true
          }
       },
    

    \m/ ☕

  • Thanks @l33t4opera, that did the trick. Sadly it seems to be a case of two steps forward, one step back. While I now have the shortcut I like its operation seems to have changed since Presto. For example, if I have "chicken" in my clipboard and type "w", a space and then hit Ctrl+B I would expect the command to basically paste and hit enter. This would take me to the Wikipedia page for chicken. Thats not what happens though. The "w " is replaced with "chicken" and it ends up using my default search engine to look it up. This limits the functionality of the shortcut for me.

  • After a little more testing I found it only does this if you use the keyboard shortcut. Weird. So, if I have "w chicken" in my clipboard or I have "w " already in the address bar and "chicken" in my clipboard and I right click the address bar and click "Paste and Search" (which has CTRL+B next to it in the menu) it will take me to the wikipedia page for chicken. Interestingly, if I have "w chicken" in my clipboard and I just type Ctrl+B it does a google search for "w chicken". It seems the keyboard shortcut doesn't share the same functionality as the mouse right click menu and just passes whatever is in the clipboard directly to your default search engine, ignoring whats in the address bar or your other search engines completely.

Log in to reply