Skip to content

Keybinds

Andrej Benz edited this page Dec 26, 2024 · 4 revisions

The following keybinds are customizable:

type Keys struct {
	AcceptTypeahead     []string            `mapstructure:"accept_typeahead"`
	ActivationModifiers ActivationModifiers `mapstructure:"activation_modifiers"`
	TriggerLabels       string              `mapstructure:"trigger_labels"`
	Ai                  AiKeys              `mapstructure:"ai"`
	Close               []string            `mapstructure:"close"`
	Next                []string            `mapstructure:"next"`
	Prev                []string            `mapstructure:"prev"`
	RemoveFromHistory   []string            `mapstructure:"remove_from_history"`
	ResumeQuery         []string            `mapstructure:"resume_query"`
	ToggleExactSearch   []string            `mapstructure:"toggle_exact_search"`
}

type ActivationModifiers struct {
	KeepOpen  string `mapstructure:"keep_open"`
	Alternate string `mapstructure:"alternate"`
}

type AiKeys struct {
	ClearSession     []string `mapstructure:"clear_session"`
	CopyLastResponse []string `mapstructure:"copy_last_response"`
	ResumeSession    []string `mapstructure:"resume_session"`
	RunLastResponse  []string `mapstructure:"run_last_response"`
}

They default to:

    "keys": {
    "accept_typeahead": ["tab"],
    "activation_modifiers": {
      "keep_open": "shift",
      "alternate": "alt"
    },
    "trigger_labels": "lalt",
    "ai": {
      "clear_session": ["ctrl x"],
      "copy_last_response": ["ctrl c"],
      "resume_session": ["ctrl r"],
      "run_last_response": ["ctrl e"]
    },
    "next": ["down"],
    "prev": ["up"],
    "close": ["esc"],
    "remove_from_history": ["shift backspace"],
    "resume_query": ["ctrl r"],
    "toggle_exact_search": ["ctrl m"]
  }

Following special keys exists: ctrl,lctrl,rctrl,alt,lalt,ralt,shift,lshift,rshift,backspace,esc,tab,down,up.

Clone this wiki locally