Skip to content

Delapouite/kakoune-hump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

kakoune-hump

Commands to select subwords ("humps") for kakoune

Install

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'
}

Usage

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 and Word
  • snake_case_word. 3 humps: snake, case and word
  • kebab-case-word. 3 humps: kebab, case and word

See also

Licence

MIT

About

Commands to select subwords ("humps") for kakoune

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published