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,CaseandWordsnake_case_word. 3 humps:snake,caseandwordkebab-case-word. 3 humps:kebab,caseandword
MIT