-
-
Notifications
You must be signed in to change notification settings - Fork 69
Description
On behalf of #79, add a new keymap for toggling quotes, perhaps ytq
for "you toggle quotes"tsq
for "toggle surrounding quotes. For example in the buffer:
local str = "This seems to be my default example"
Hitting tsq..
will toggle the double quotes "
→ '
→ `
→ "
. The exact order can probably be determined via some config option in the setup table. Perhaps use aliases or a new section titled cycles
or something. While the aliases table could be used, it makes some sense to keep it separate, so dsb
could be preserved for deleting parentheses, while opening up tsb
for toggling the nearest bracket: )
, }
, ]
, >
. Open to suggestions from the community on how they would like the interface to look!
I could also just change it so aliases are used and p
refers to any pair of those brackets, instead of "overloading" the use of b
that much.