roll my own subvert

main
Brian Hicks 2021-09-22 16:55:18 -05:00
parent 27927052c4
commit 402fae688a
2 changed files with 11 additions and 3 deletions

View File

@ -26,7 +26,6 @@ in {
kakoune-find
kakoune-idris
kakoune-surround
kak-subvert
shellcheck-kak
smarttab-kak
tug
@ -145,6 +144,17 @@ in {
map global user s ': enter-user-mode surround<ret>' -docstring 'Surround'
# kak-subvert
declare-user-mode subvert
map global subvert c '<esc> | ${pkgs.kak-subvert}/bin/kak-subvert camel <ret>' -docstring 'convert to camelCase'
map global subvert k '<esc> | ${pkgs.kak-subvert}/bin/kak-subvert kebab <ret>' -docstring 'convert to kebab-case'
map global subvert p '<esc> | ${pkgs.kak-subvert}/bin/kak-subvert pascal <ret>' -docstring 'convert to PascalCase'
map global subvert . '<esc> | ${pkgs.kak-subvert}/bin/kak-subvert sentence <ret>' -docstring 'convert to Sentence case'
map global subvert s '<esc> | ${pkgs.kak-subvert}/bin/kak-subvert snake <ret>' -docstring 'convert to snake_case'
map global subvert S '<esc> | ${pkgs.kak-subvert}/bin/kak-subvert screaming <ret>' -docstring 'convert to SCREAMING_CASE'
map global subvert t '<esc> | ${pkgs.kak-subvert}/bin/kak-subvert train <ret>' -docstring 'convert to Train-Case'
map global subvert T '<esc> | ${pkgs.kak-subvert}/bin/kak-subvert title <ret>' -docstring 'convert to Title Case'
map global subvert u '<esc> | ${pkgs.kak-subvert}/bin/kak-subvert ugly <ret>' -docstring 'convert to Ugly_Case'
map global user c ': enter-user-mode subvert<ret>' -docstring 'case changes'
# File Browsing

View File

@ -139,8 +139,6 @@
kak-ayu = final.callPackage ./pkgs/kak-ayu { };
kak-subvert = buildKakounePlugin "kak-subvert" inputs.kak-subvert;
kak-tree = kak-tree.kakounePlugins.kak-tree;
kakoune-auto-percent = buildKakounePlugin "kakoune-auto-percent"