SupportKeybindings

Keybindings

Fig Keybindings are located in ~/.fig/settings.json.


Note that `~/.fig/settings.json` must not contain comments.

Updating Keybindings Using the GUI

Open the settings GUI:

fig settings

image

Updating Keybindings Using the CLI

fig settings autocomplete.keybindings.<binding> <action>

Actions

Ignore

Fig will ignore this keybinding and it will pass through to the terminal.

Insert selected

Insert the highlighted selection.

Insert selected and execute

Insert the highlighted suggestion and immediately execute the command.

Insert common prefix

Insert selected suggestion or common prefix of all suggestions, if it exists.

Insert common prefix or insert selected

Insert selected suggestion or common prefix of all suggestions, if it exists. If not, insert the selected suggestion.

Insert common prefix or navigate down

Insert selected suggestion or common prefix of all suggestions, if it exists. If not, navigate down.

Execute

Execute command.

Hide autocomplete

Hide the autocomplete window.

Show autocomplete

Show the autocomplete window.

Toggle autocomplete

Toggle the autocomplete window.

Navigate up

Select suggestion above current.

Navigate down

Select suggestion below current.

Hide description

Hide the popout description box.

Show description

Show the popout description box.

Toggle description

Toggle the popout description box.

Toggle history mode

Toggle history mode. History mode will show suggestions based on your history rather than Fig autocomplete specs.

Increase size

Increase the size of the autocomplete window.

Decrease size

Decrease the size of the autocomplete window.