xkeysnail icon indicating copy to clipboard operation
xkeysnail copied to clipboard

set_mark documentation

Open jackmac92 opened this issue 5 years ago • 1 comments

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!

jackmac92 avatar Jul 27 '20 20:07 jackmac92

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.

Lenbok avatar Jul 29 '20 03:07 Lenbok