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:
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ Bugs fixed in this fork that remain open upstream.
|
|||
| [#375](https://github.com/stevearc/oil.nvim/issues/375) | open | Highlights for file types and permissions (P2) |
|
||||
| [#380](https://github.com/stevearc/oil.nvim/issues/380) | open | Show file in oil when editing hidden file |
|
||||
| [#382](https://github.com/stevearc/oil.nvim/issues/382) | open | Relative path in window title (P2) |
|
||||
| [#392](https://github.com/stevearc/oil.nvim/issues/392) | open | Option to skip delete prompt |
|
||||
| [#392](https://github.com/stevearc/oil.nvim/issues/392) | fixed | Option to skip delete prompt — fixed — `skip_confirm_for_delete` option |
|
||||
| [#393](https://github.com/stevearc/oil.nvim/issues/393) | open | Auto-save new buffer on entry |
|
||||
| [#396](https://github.com/stevearc/oil.nvim/issues/396) | open | Customize preview content (P2) |
|
||||
| [#399](https://github.com/stevearc/oil.nvim/issues/399) | open | Open file without closing Oil (P1) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue