feat: add dirty-dismiss and footer hint settings

This commit is contained in:
Erik Kotsiuba
2026-04-28 22:35:43 +02:00
parent 85962d985d
commit 18120e8801
17 changed files with 373 additions and 24 deletions
+20 -2
View File
@@ -20,7 +20,9 @@ Default path:
{
"schemaVersion": 1,
"behaviour": {
"autoSubmitWhenAnsweredWithoutNotes": false
"autoSubmitWhenAnsweredWithoutNotes": false,
"confirmDismissWhenDirty": false,
"showFooterHints": true
},
"keymaps": {
"cancel": "esc",
@@ -41,6 +43,20 @@ Default path:
- default: `false`
- effect: when enabled, a fully answered ask flow with no notes can auto-submit from the review tab
### `behaviour.confirmDismissWhenDirty`
- type: boolean
- default: `false`
- effect: when enabled, discarding a dirty ask flow requires a second cancel/dismiss action
- the warning stays visible until the user changes tabs in the ask flow
- dirty means there are saved answers/notes or unsaved editor draft text
### `behaviour.showFooterHints`
- type: boolean
- default: `true`
- effect: when disabled, the ask flow hides the footer keymap hints
## Keymaps
`keymaps` must contain all 6 configurable actions if present.
@@ -151,7 +167,9 @@ Invalid keymaps include:
{
"schemaVersion": 1,
"behaviour": {
"autoSubmitWhenAnsweredWithoutNotes": true
"autoSubmitWhenAnsweredWithoutNotes": true,
"confirmDismissWhenDirty": true,
"showFooterHints": false
},
"keymaps": {
"cancel": "q",