nchudleigh / vimac

Productive macOS keyboard-driven navigation
https://vimacapp.com
GNU General Public License v3.0
3.41k stars 124 forks source link

Need a way to do command-click #204

Open blackketter opened 4 years ago

blackketter commented 4 years ago

The command key is used to modify the click to be a double-click in Vimac. I'd love for there to be a way to do a command-click. Maybe the option key could be used.

(This also argues for the need to customize the trigger and modifier keys in the preferences. In my daily usage, command-click is much more common than double-click. I'd map command to command click and option to double-click.)

dexterleng commented 4 years ago

Customizing modifier keys sounds doable.

Another solution, instead of attempting to "overwrite" what a modifier does, Vimac should let them be dispatched normally, and double-click can be triggered through other means.

e.g.

right click can be done through cmd+typing the hints, but Vimac can allow shift+typing the hint to right click double click can be done through double tapping the last hint letter.

dexterleng commented 4 years ago

@blackketter are you aware you can SHIFT-<type the hint letters> to right click? It should be functionally the same as right clicking, right?

blackketter commented 4 years ago

Right, but I'm talking about command-click not control-click, which is the same as right click. Command-click is used for opening a link in a new tab in Safari, for example.

I like the idea of not overriding the modifiers and double-tapping the last hint letter, assuming that the hints are constructed so that there are no double letters at the end of a hint by default to avoid ambiguity.

dexterleng commented 4 years ago

ah ok.

I think the settings could look like the following to allow for both fall through and overriding.

Overwrite modifiers:

CTRL:

CMD

Option

SHIFT

blackketter commented 4 years ago

That would definitely work, but seems complicated. (The fewer preferences the better. :)

I don't have a sense for how the hints are constructed, but maybe a prefix to the hint would set up a double-click. Let's say you reserved D to mean double click. So if a hint was PR, pressing DPR would do a double click for PR. You could also reserve other letters to set up the other modifiers. So if an item that was hinted PR, typing:

And these could be additive, so DCPR could do a control-double-click.

Is this crazy? Or even more complicated?

blackketter commented 4 years ago

And seeing #217, another prefix letter could enter scroll mode with the mouse on a target. So "LPR" would move the mouse to that hint and start a scroll.

dexterleng commented 3 years ago

@blackketter do you have any examples of where you find yourself using Command+Click or other Modifier+Click with the mouse/trackpad?

blackketter commented 3 years ago

Like shift-click to extend a selection, command-click is for discontinuous selection of items like Finder icons, Mail messages, OmniFocus items, spreadsheet cells, etc...

Use it all the time.

eret9616 commented 3 years ago

need command + click .. It very often use in web browsing, like open in new tab

dexterleng commented 3 years ago

This is a good point. I was thinking about optimizing the workflow to click on the first item of menu which is "Open in new tab" for links, but I totally forgot you can just command+click.

eret9616 commented 3 years ago
| Action      | How to trigger |
|-----------|-------------|
| Left click | Type the assigned hint-text |
| Right click | Type the assigned hint-text while holding `Shift` |
| Double left click | Type the assigned hint-text while holding `Command` |
| Move cursor | Type the assigned hint-text while holding `Option` |
| Rotate hints | `Space` |
| Exit | `Escape` or `Control + [`|

so .. command key is used to perform double-click now, I think maybe.. use command to command-click... and control to double-click

dexterleng commented 3 years ago

@eret9616 there's a discussion in #331 on how we can support command+click. It will involve revamping the workflow.