kakoune plugin to add/remove/change surroundings of selections.
Add mirror.kak
to your autoload dir: ~/.config/kak/autoload/
.
Or via plug.kak:
plug 'lelgenio/kakoune-mirror-colemak' %{
# Suggested mapping
map global normal "'" ': enter-user-mode -lock mirror<ret>'
}
This plugin provides a mirror
user-mode.
For example with the above mapping, press '
to enter the mirror mode.
Pairwise characters like braces, brackets or quotes can be added, replaced or removed.
Example: starting from the world hello
selected.
First, let's surround it with double quotes and parentheses '"(
[hello]
["hello"]
[("hello")]
Oops, you meant to surround the double quotes with spaced-braces! Press d
to remove the parens, then }
["hello"]
[{ "hello" }]
MIT