Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 2.47 KB

configuration.md

File metadata and controls

57 lines (42 loc) · 2.47 KB

Configuration

Files

Krabby’s default configuration is located in ~/.config/krabby/packages/krabby.js.

Mapping

Creating and removing mappings boils down to the following commands:

modal.map(context, keys, command, description)
modal.unmap(context, keys)

The context dictates in what context the mapping will be available: Command, Text, Link, Image, Video or Page.

The keys represent a chord – a key sequence in which the keys are pressed at the same time. They are composed of a single key code and optional modifiers. For special keys, the list of key values can be found here.

The command is the function to evaluate.

The description is the description of the command.