feat: add skip_confirm_for_delete option (#77)
feat: add \`skip_confirm_for_delete\` option Problem: there was no way to suppress the confirmation popup when the only pending operations are deletes. \`skip_confirm_for_simple_edits\` explicitly excludes deletes, so users who delete frequently had no opt-out. Solution: add \`skip_confirm_for_delete = false\` config option. When true, \`confirmation.show()\` skips the popup if every pending action is a delete. Based on: stevearc/oil.nvim#392
This commit is contained in:
parent
7a46246062
commit
ba49f76e91
4 changed files with 22 additions and 1 deletions
|
|
@ -292,6 +292,11 @@ skip_confirm_for_simple_edits *canola.skip_confirm_for_simple_e
|
|||
* contain at most one copy or move
|
||||
* contain at most five creates
|
||||
|
||||
skip_confirm_for_delete *canola.skip_confirm_for_delete*
|
||||
type: `boolean` default: `false`
|
||||
When this option is `true`, the confirmation popup will be skipped if all pending
|
||||
actions are deletes.
|
||||
|
||||
prompt_save_on_select_new_entry *canola.prompt_save_on_select_new_entry*
|
||||
type: `boolean` default: `true`
|
||||
There are two cases where this option is relevant:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue