Skip to content

Force click on OS X #672

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

Closed
ZGainsforth opened this issue Apr 12, 2018 · 2 comments
Closed

Force click on OS X #672

ZGainsforth opened this issue Apr 12, 2018 · 2 comments

Comments

@ZGainsforth
Copy link

When using a touchpad on OS X it is possible in many apps to use a force click -- which is a light press followed by a hard press. For example, in Finder, a light press selects a file, and a force click (pushing harder) edits the filename. MacVim could (and in my opinion should) use the force click to begin insert mode.

@eirnym
Copy link
Contributor

eirnym commented Jul 20, 2018

this is an interesting feature for MacVim GUI only.

ychin added a commit to ychin/macvim that referenced this issue Jul 29, 2018
ychin added a commit to ychin/macvim that referenced this issue Jul 29, 2018
Can now map "<ForceClick>" similar to "<SwipeLeft/Right/Up/Down>"
gestures. Require a Mac that has a touchpad that supports Force Touch to
work.

Close macvim-dev#672
@ychin
Copy link
Member

ychin commented Jul 30, 2018

Force clicks are now mappable. To use them, map <ForceClick> to your favorite commands. For example, if you want Force clicks to enter insert mode, just do this in your vimrc:

nnoremap <ForceClick> i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants