bundle kakoune-find https://github.com/occivink/kakoune-find
bundle kakoune-expand https://github.com/occivink/kakoune-expand
bundle foot.kak https://github.com/kkga/foot.kak
+bundle kakoune-surround https://github.com/h-youhei/kakoune-surround
bundle kak-harpoon https://github.com/raiguard/kak-harpoon %{
hook global WinCreate .* harpoon-add-bindings
}
map global normal -docstring 'Previous buffer' <c-p> ': buffer-previous<ret>'
map global normal -docstring 'add 1 int' '^' ': inc %val{count} +<ret>'
map global normal -docstring 'substract 1 int' <a-^> ': inc %val{count} -<ret>'
+map global normal -docstring 'surround' 0 ': surround<ret>'
# default user mode
# ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
# selection user mode
# ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
declare-user-mode selmode
-map global selmode -docstring 'clean tabs and trailing whitespaces' c ': clean-selections<ret>'
+map global selmode -docstring 'clean tabs and trailing whitespaces' C ': clean-selections<ret>'
map global selmode -docstring 'sort words Horizontally in selection' h '| xargs -n1 | sort -u | xargs <ret>'
map global selmode -docstring 'sort words Vertically in selection ' v '| sort -n <ret>'
+map global selmode -docstring 'surround' s ':surround<ret>'
+map global selmode -docstring 'change surround' c ':change-surround<ret>'
+map global selmode -docstring 'delete surround' d ':delete-surround<ret>'
+map global selmode -docstring 'select tag' t ':select-surrounding-tag<ret>'
# terminal config (via foot.kak)
# ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────