cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Allow more short versions for keyboard maps

Open pokey opened this issue 1 year ago • 4 comments

If we have parentheses mapped to wp, then we'd like to be able to just press p after aw (for wrap). However, if we add wwp for escaped parentheses, that breaks, because they both end with p. It would be nice if wp could own p because it has fewer letters to drop?

Fwiw then we'd have an inconsistency because you might expect wp to be escaped parens, as they both just drop that leading w. Maybe we solve that by using wep instead of wwp, so then it shortens to ep. I believe we'd still need this fix tho if we wanted wp to shorten to p in that case, as they both end with p

pokey avatar Jan 26 '24 09:01 pokey