Transitioning from Opera 12: Single-key shortcuts

As my first post on transitioning from Opera 12 to the new Opera, I'll bring up one of my most frequently used features: Single-key shortcuts. Or more specifically, using the 1 and 2 keys to switch between tabs (and to a lesser degree, z/x to navigate the tab history).

Getting these keyboard shortcuts back requires a bit of manual editing.

Locate the "Preferences" file in your profile (see opera:about), and add the following inside the main curly brackets (see other settings to figure out what it's supposed to look like; here is a stripped down sample file with some other settings there for reference):

WARNING: If you do not get the formatting exactly right it will reset the Preferences file, and you could also lose other data in your profile. Proceed with caution!

   "Keybindings": {
      "Basic": {
         "SelectTabToTheLeft": [ "1" ],
         "SelectTabToTheRight": [ "2" ]
      },
      "Settings": {
         "AdvancedEnabled": true
      }
   },

You can now use 1/2 to navigate tabs, and z/x to navigate your history.

79 thoughts on “Transitioning from Opera 12: Single-key shortcuts

  1. Thanks a bunch, Haavard! Hopefully we will be able to edit Mouse Gestures soon. It's the only thing really holding me back from fully migrating to O15.Note: "get the formatting exactly" also includes the number of blank spaces before the words! never mind that.Edit: unfortunately, Ctrl+Z overrides the Undo on text fields.

  2. Originally posted by hallvors:

    Honestly Penge4, there's nothing funny about the stream of "Opera doesn't work" bug reports we've received over the years because this feature wasn't better hidden (or more polished).

    Exactly. Because this feature wasn't better hidden. The UI design was a catastrophe for the new users (who doesn't known Opera). The Opera did everything differently than the other.But redesigning the UI =/= rewrite the whole browser from the scratch and communicate that we don't get back the features. The features which we loved as much that we persistently endured the site compatiblity issues.For example you should have changed the UA string to something that start with "Mozilla 5.0 compatible" years ago. This would been solved the 50% of site compatibility issues.Originally posted by hallvors:

    I fully stand by the desktop team if they want to follow a "if a feature is not perfect, don't expose it in the UI" principle.

    I agree with that. But I want to see the foundations. I want to see UserJS, UserCSS support. I don't want GUI, I only want drop my userJS/userCSS files to profile/UserJS and profile/UserCSS and I able to disable/enable them with change their extension in filename or move to another folder.I want to see configurable Mouse Gestures through the Preferences JSON, like the Keybindings. I want to see more powerful keybindings. I want to assign custom action to specific shortcuts, like:"CloseActiveTab & SwitchToNextPage": ["Ctrl+F6"], or"Go to page, 'javascript:forumAlert.on_off(); void 0'": ["Ctrl+F6"],I want to see BeforeEvents and MagicVariables.I want to see menu and toolbar configuration ability through JSON. I want to make statusbar and detailed progressbar and I want to move my ExtensionSet to Status Toolbar Tail.contentI want to customize the whole browser with or without GUI. But I don't see this level of configuration ability in the new, "stone ax" foundation. 😦

  3. Originally posted by Penge4:

    funny excuses like Fit-to-width in the Desktop Team post.

    Honestly Penge4, there's nothing funny about the stream of "Opera doesn't work" bug reports we've received over the years because this feature wasn't better hidden (or more polished). There is a realistic and important lesson for feature- and UI-development here, not an "excuse". And however much I want certain O12-features (re)-implemented, I fully stand by the desktop team if they want to follow a "if a feature is not perfect, don't expose it in the UI" principle.

  4. Originally posted by hallvors:

    I fully stand by the desktop team if they want to follow a "if a feature is not perfect, don't expose it in the UI" principle

    As generally I can agree, but what is a measure of perfection? Was Back button perfect? No, remember all these "can't go back in history" reports. Should it be hidden then?.. I don't think so.

  5. Originally posted by FataL:

    As generally I can agree, but what is a measure of perfection? Was Back button perfect? No, remember all these "can't go back in history" reports. Should it be hidden then?.. I don't think so.

    Are people having problems navigating back in Opera 15?Originally posted by Penge4:

    I want to customize the whole browser with or without GUI. But I don't see this level of configuration ability in the new, "stone ax" foundation.

    This is the first version of the new browser. The important thing is to create a solid foundation, and extensive customization is not what most people need when they install a browser. The foundation needs to be solid, and you don't make it that way by making it easy to break from the start.You only have to think about your own needs, but Opera Software needs to consider millions of people out there. It is not more important that you personally get to hack Opera the way you want it than to make the browser usable for millions of people who just need a working browser. The first version needs to be made for for the people out there who need a solid, working browser.Look, this is getting off-topic again. Things are the way they are, and commenting on other blog posts here is not going to force anyone to do as the off-topic commenters want.

  6. I tried several approaches, but I wasn't able to rebuild the old space bar behavior, i.e.space: scroll one screen (OK that works) -> end of page -> space: fast forward… and yes, I looked that all curly thingies were matching …Any hints or is it not yet back again?build ####.138 btw.

  7. Already tested that extension (watch out for GA inside ;)) and even the next page prediction algorithm for appending pages in my old O12 extension is better (I "borrowed" the keyword list from the old fastforward.ini :D)…The original FF is capable to switch through image galleries (aka folders with images) too and worked in different languages even if there was no dedicated link rel="next" etc. …Let us hope that it comes back soon – it was very unobtrusive and didn't hurt anyone.

  8. I don't like automatic loading or pre-loading – sometimes I don't want to read the next page. Additionaly the extension works partly with some kind of heuristics (as I do too) and partly with a list of pages. If the heuristic fails and the page is not in the list, it fails – plus: ia am not sure if it can browse folders … … and the worst: I don't know if JS based extensions work in a paranoia environment with JS switched off (not yet tested). Native functions do.Opera 12's detection in itself is very good – I would really like to know the logic behind it i.e. how it works in detail.I think we are becoming OT here 😀

  9. @kapsi: It's already in use by Redo action, so you have to overwrite it as well, i.e.:

             "ReopenLastClosedTab": ["Ctrl+Shift+Z"],
             "Redo": ["Ctrl+Y"]
  10. The following keybindings to "reopen last closed tab" won't works, when you press "Ctrl+Z" on the address bar:"ReopenLastClosedTab": [ "Ctrl+Z" ],"Undo": [ "Alt+Backspace" ],but these as below works like a charm, even on the address bar:"ReopenLastClosedTab": [ "Ctrl+Shift+Z" ],"Redo": [ "Ctrl+Y" ].Thanks :yes:

  11. Originally posted by l33t4opera:

    The following keybindings to "reopen last closed tab" won't works, when you press "Ctrl+Z" on the address bar:"ReopenLastClosedTab": [ "Ctrl+Z" ],"Undo": [ "Alt+Backspace" ],but these as below works like a charm, even on the address bar:"ReopenLastClosedTab": [ "Ctrl+Shift+Z" ],"Redo": [ "Ctrl+Y" ].Thanks :yes:

    Ctrl+Z works for me.

  12. Originally posted by Sn3ipen:

    Ctrl+Z works for me.

    I didn't test it, but I think his point was that it doesn't work only when focus is in the address field (because it may work then as undo for the text field). Does it reopen the last tab after you click inside the address field?

  13. Yes, that is exactly what I mean. When you click on the tab header / top of the tab, or on the web page, then it works, but unfortunately it doesn't work, when you click on the address field, and because of this I think that "Ctrl+Shift+Z", is much better solution.

  14. Did anybody find out, if and how one can use and activate the keywords from the "advanced" section?

  15. Just installed the new build of Opera 16 (16.0.1196.14) for the mac. Going to 'Preferences' and checking on 'Enable advanced keyboard shortcuts' appears to enable 1/2 to navigate tabs, and z/x to navigate your back|forward without any file editing….which is awesome.That said, can someone write out in detail how you would enable / customize the 'h' key to select the address bar? When I tried editing the Preference file last week I obviously messed up somehow as my extensions got subsequently got borked.

  16. These changes seem to break all keyboard shortcuts in 17.0.1241.11Any yes, the preferences file was edited correctly, the edited shortcuts worked just fine in the previous versions.It seems that several of the old shortcuts made it into 17 anyway, so there is less the need to edit them – but it would still be nice to do so.

  17. You can now enable single-key shortcuts (at least 1/2, z/x) in the settings. No need to edit anything manually.

  18. Originally posted by haavard:

    You can now enable single-key shortcuts (at least 1/2, z/x) in the settings. No need to edit anything manually.

    Thanks!

  19. Originally posted by QuHno:

    These changes seem to break all keyboard shortcuts in 17.0.1241.11

    Thanks for sharing that, I wasn't sure if it's Opera or me.I want to use some own shortcuts (I love ALT+1 and ALT+2 for switching tabs), but everything I add "Basic" or "Advanced" to the Preferences, are shortcuts are gone 😐

  20. Originally posted by Zajec:

    I love ALT+1 and ALT+2 for switching tabs

    Make sure, that Opera is closed, open "Preferences" file, with your text editor, and replace this:

       "Keybindings": {
          "Settings": {
             "AdvancedEnabled": true
          }
    

    with this:

       "Keybindings": {
          "Advanced": {
             "SwitchToLeftTab": [ "Alt+1" ],
             "SwitchToRightTab": [ "Alt+2" ]
          },
          "Settings": {
             "AdvancedEnabled": true
          }
    

    Save the changes, close the file, reopen the Opera.

  21. Originally posted by l33t4opera:

       "Keybindings": {      "Advanced": {         "SwitchToLeftTab": [ "Alt+1" ],         "SwitchToRightTab": [ "Alt+2" ]      },      "Settings": {         "AdvancedEnabled": true      }

    Man, you're great. THANK YOU!

    I was using SelectTabToTheLeft and SelectTabToTheRight (per Haavard's post) and that was the reason. Replacing them with your SwitchToLeftTab and SwitchToRightTab did the trick! Thanks!

Comments are closed.