Skip to content

Commit

Permalink
roll my own subvert
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Sep 22, 2021
1 parent 2792705 commit 402fae6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 11 additions & 1 deletion dotfiles/kakoune/default.nix
Expand Up @@ -26,7 +26,6 @@ in {
kakoune-find
kakoune-idris
kakoune-surround
kak-subvert
shellcheck-kak
smarttab-kak
tug
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions flake.nix
Expand Up @@ -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"
Expand Down

0 comments on commit 402fae6

Please sign in to comment.