Skip to content
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

set_mark documentation #97

Open
jackmac92 opened this issue Jul 27, 2020 · 1 comment
Open

set_mark documentation #97

jackmac92 opened this issue Jul 27, 2020 · 1 comment

Comments

@jackmac92
Copy link

I'm not sure what set_mark etc are supposed to do, I can make a PR for the README out of your answer here if that would help!

@Lenbok
Copy link
Contributor

Lenbok commented Jul 29, 2020

with_mark and with_or_set_mark act with respect to a state variable know as the mark (which can be set to true or false via set_mark).

When the mark is set, these functions output the specified keys with the SHIFT modifier also pressed. When the mark is not set, they output the specified keys without additional modifier. These let you emulate Emacs' transient mark mode, where after setting the mark and moving around, you are selecting text between the mark position and the current cursor position.

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

2 participants