AutoYADM commit: 2025-05-30 14:34:41
This commit is contained in:
parent
6290e3fadd
commit
35a701fa48
2 changed files with 23 additions and 1 deletions
22
.config/kak/autoload/hump.kak
Normal file
22
.config/kak/autoload/hump.kak
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# <https://github.com/delapouite/kakoune-hump>
|
||||||
|
|
||||||
|
define-command -hidden select-next-hump %{
|
||||||
|
execute-keys h/[A-Z][a-z]+|[A-Z]+|[a-z]+<ret>
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command -hidden select-previous-hump %{
|
||||||
|
execute-keys l<a-/>[A-Z][a-z]+|[A-Z]+|[a-z]+<ret><a-semicolon>
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command -hidden extend-next-hump %{
|
||||||
|
execute-keys ?[A-Z][a-z]+|[A-Z]+|[a-z]+<ret>
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command -hidden extend-previous-hump %{
|
||||||
|
execute-keys <a-?>[A-Z][a-z]+|[A-Z]+|[a-z]+<ret>
|
||||||
|
}
|
||||||
|
|
||||||
|
map global normal <c-b> ': select-previous-hump<ret>' -docstring 'select prev hump'
|
||||||
|
map global normal <c-w> ': select-next-hump<ret>' -docstring 'select next hump'
|
||||||
|
map global normal <c-B> ': extend-previous-hump<ret>' -docstring 'extend prev hump'
|
||||||
|
map global normal <c-W> ': extend-next-hump<ret>' -docstring 'extend next hump'
|
|
@ -68,7 +68,7 @@ bundle case.kak https://gitlab.com/FlyingWombat/case.kak %{
|
||||||
map global user '`' ': enter-user-mode case<ret>'
|
map global user '`' ': enter-user-mode case<ret>'
|
||||||
}
|
}
|
||||||
|
|
||||||
bundle kakoune-hump https://github.com/delapouite/kakoune-hump %{
|
bundle-noload kakoune-hump https://github.com/delapouite/kakoune-hump %{
|
||||||
map global normal <c-b> ': select-previous-hump<ret>' -docstring 'select prev hump'
|
map global normal <c-b> ': select-previous-hump<ret>' -docstring 'select prev hump'
|
||||||
map global normal <c-w> ': select-next-hump<ret>' -docstring 'select next hump'
|
map global normal <c-w> ': select-next-hump<ret>' -docstring 'select next hump'
|
||||||
map global normal <c-B> ': extend-previous-hump<ret>' -docstring 'extend prev hump'
|
map global normal <c-B> ': extend-previous-hump<ret>' -docstring 'extend prev hump'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue