Difficult to do perhaps, with the existing GUI, but in Opera 12.18 keyboard shortcuts and mouse gestures can be assigned to perform more than one command, or to perform conditional commands. For example:
- GestureUp = Open link in new page | Stop | Go to start | Close page
- GestureDown = Open link in background page | Go to end | New page
Guilimote last edited by
For those who ask what could be the benefit of this, here is an other example I also used on Opera 12:
- Different commands depending on the context, as Pesala explained (using "|")
- Multiple actions on a single gesture, using "&". Example:
- ↓ → Close tab & Next Tab (by order) to close current tab AND display the one immediately on the right
- ↓ ← Close tab & Previous Tab (by order) to close current tab AND display the one immediately on the left
Thinking of the mnemonic shortcuts suggestion, a more general solution is the ability to make many-to-many relationships between commands and actions, using combinations of OR, SEQUENTIAL AND, and SIMULTANEOUS AND operators. So for example, we could have:
, (comma) = SEQUENTIAL AND
Example: Press "g" twice to scroll to top of page:
Scroll Page to Top
+ = SIMULTANEOUS AND
Example: Press "t" and "p" together to paste and go in a new tab
Paste and Go
| = OR
Example: Press "t" or "CTRL+T" to open a new tab
Super Fancy Example, probably not useful but just to illustrate the power: Hold CTRL and make a down-left mouse gesture to close the current tab, open the previous tab by order, and paste and go
Previous Tab (by Order),
Paste and Go
I forgot to mention, the
gexample is from https://forum.vivaldi.net/topic/2024/vim-like-keyboard-interface
QuHno last edited by QuHno
Not to forget the toggle commands for stuff that allows multiple states ...
Is this analagous to macros ?
sgunhouse last edited by
Sort of. Opera 12.18 (and earlier) had a few ways of combining commands for use with custom buttons or shortcuts. You could use "&" to chain commands (to execute all of them in order) or "|" for alternatives (If the first command is not applicable, then do the second command.) No loops and no conditionals, so not much of a language.
killchain last edited by
I was going to post about the same thing, not a big surprise that it's already requested, good thing I searched first...
I vote for that as well. It's ridiculous how many requests for specific features it can save, i.e. the other day I was thinking how convenient it would be to open a new tab and tile it next to the active one, all in one command.
I guess that there could just be a section for advanced options.
What I would really wish for was a rich set of options that was well documented and where we could choose our features from.