Commands to select subwords ("humps") for kakoune
Add hump.kak
to your autoload dir: ~/.config/kak/autoload/
.
Or via plug.kak:
plug 'delapouite/kakoune-hump' %{
# Suggested mappings
map global normal « ': select-previous-hump<ret>' -docstring 'select prev hump'
map global normal » ': select-next-hump<ret>' -docstring 'select next hump'
map global normal ‹ ': extend-previous-hump<ret>' -docstring 'extend prev hump'
map global normal › ': extend-next-hump<ret>' -docstring 'extend next hump'
}
The 4 provided functions let you select
or extend
the previous
or next
"hump".
A "hump" is a subword useful for many coding conventions. Examples:
camelCaseWord
. 3 humps:camel
,Case
andWord
snake_case_word
. 3 humps:snake
,case
andword
kebab-case-word
. 3 humps:kebab
,case
andword
MIT