3.2 KiB
3.2 KiB
pi-ask configuration
This file is the source of truth for configuring @eko24ive/pi-ask.
When changing pi-ask settings:
- Edit the config file.
- Validate keymaps against the rules below.
- Run
/reloador restart pi so the new config is picked up.
Config file path
Default path:
~/.pi/agent/extensions/eko24ive-pi-ask.json
Config shape
{
"schemaVersion": 1,
"behaviour": {
"autoSubmitWhenAnsweredWithoutNotes": false
},
"keymaps": {
"cancel": "esc",
"dismiss": "ctrl+c",
"toggle": "space",
"confirm": "enter",
"optionNote": "n",
"questionNote": "shift+n"
}
}
Behaviour
behaviour.autoSubmitWhenAnsweredWithoutNotes
- type: boolean
- default:
false - effect: when enabled, a fully answered ask flow with no notes can auto-submit from the review tab
Keymaps
keymaps must contain all 6 configurable actions if present.
Configurable actions
canceldismisstoggleconfirmoptionNotequestionNote
Defaults
cancel: "esc"dismiss: "ctrl+c"toggle: "space"confirm: "enter"optionNote: "n"questionNote: "shift+n"
Allowed bindings
Each configurable action accepts any single pi-tui key id string, as long as it is:
- supported by
pi-tui - not reserved
- not duplicated across configurable actions
Examples of valid bindings:
escctrl+cspaceenternshift+nalt+f7ctrl+[ctrl+shift+psuper+k
Accepted alias normalization
Common aliases are normalized to canonical pi-tui-style strings.
Examples:
escape->escreturn->entercontrol+c->ctrl+cShift+N->shift+npageup->pageUppagedown->pageDown
Reserved bindings
These bindings are fixed and cannot be used by configurable actions:
?tabshift+tableftrightupdown123456789
Fixed bindings
These are intentionally not configurable:
?opens ask settingstab,shift+tab,left,rightmove between tabsup,downmove between options/actions1..9triggers option/review shortcuts@remains file-reference affordance in editors
Invalid keymaps behavior
If configured keymaps are invalid:
- valid
behavioursettings still load - invalid
keymapsfall back to default keymaps for the current session - ask remains usable
- a warning notice is shown
- after fixing the file, run
/reloador restart pi
Invalid keymaps include:
- missing one of the 6 required actions
- unsupported key syntax
- duplicate bindings across configurable actions
- use of reserved bindings
Example custom config
{
"schemaVersion": 1,
"behaviour": {
"autoSubmitWhenAnsweredWithoutNotes": true
},
"keymaps": {
"cancel": "q",
"dismiss": "ctrl+c",
"toggle": "ctrl+t",
"confirm": "ctrl+k",
"optionNote": "x",
"questionNote": "shift+x"
}
}
Agent editing rule
When editing this config for a user:
- preserve unrelated fields
- keep
schemaVersionat1 - do not assign reserved bindings to configurable actions
- do not create duplicate configurable bindings
- after changing the file, tell the user to run
/reloador restart pi