1.1.2. Key Mapping Configuration

Key mapping configures the key and its action used in Pyfx.

1.1.2.1. Schema

Key mapping is configured with the following configuration schema under view configuration.

1view:
2  keymap:
3    mode: string, accepted_options = ["basic" | "emacs" | "vim"]

1.1.2.2. Basic Mode (Default)

To enable, add the following configuration in your config file:

1keymap:
2  mode: "basic"

1.1.2.2.1. Mapped Keys

Key

Function

q

exit pyfx (except in Query Bar)

?

open help popup (except in Query Bar)

JSON Browser

up

move cursor up one line

down

move cursor down one line

e

expand all

c

collapse all

enter

toggle expansion

.

enter query window (used to input JSONPath query)

Query Bar

enter

apply JSONPath query and switch to JSON Browser

esc

cancel query and restore to state before query

Autocomplete PopUp

up

move cursor up one line

down

move cursor down one line

enter

select option and complete the query

esc

close pop up

Help PopUp

up

move cursor up one line

down

move cursor down one line

esc

close pop up

1.1.2.3. Emacs Mode

To enable, add the following configuration in your config file:

1keymap:
2  mode: "emacs"

1.1.2.3.1. Mapped Keys

Key

Function

ctrl x ctrl c

exit pyfx

?

open help popup (except in Query Bar)

JSON Browser

ctrl p

move cursor up one line

ctrl n

move cursor down one line

ctrl x e

expand all

ctrl x c

collapse all

enter

toggle expansion

meta x

enter query window (used to input JSONPath query)

Query Bar

enter

apply JSONPath query and switch to JSON Browser

ctrl g

cancel query and restore to state before query

Autocomplete PopUp

meta p

move cursor up one line

meta n

move cursor down one line

enter

select option and complete the query

ctrl g

close pop up

Help PopUp

up

move cursor up one line

down

move cursor down one line

ctrl x 0

close pop up

1.1.2.4. Vim Mode

To enable, add the following configuration in your config file:

1keymap:
2   mode: "vim"

1.1.2.4.1. Mapped Keys

Key

Function

q

exit pyfx (except in Query Bar)

?

open help popup (except in Query Bar)

JSON Browser

k

move cursor up one line

j

move cursor down one line

e

expand all

c

collapse all

enter

toggle expansion

:

enter query window (used to input JSONPath query)

Query Bar

enter

apply JSONPath query and switch to JSON Browser

esc

cancel query and restore to state before query

Autocomplete PopUp

k

move cursor up one line

j

move cursor down one line

enter

select option and complete the query

esc

close pop up

Help PopUp

k

move cursor up one line

j

move cursor down one line

esc

close pop up