Option to auto-close deleted files with no unsaved edits (#31920)
Closes #27982 Release Notes: - Added `close_on_file_delete` setting (off by default) to allow closing open files after they have been deleted on disk --------- Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
This commit is contained in:
parent
3077abf9cf
commit
b74477d12e
6 changed files with 393 additions and 5 deletions
|
@ -389,6 +389,20 @@ For example, to use `Nerd Font` as a fallback, add the following to your setting
|
|||
|
||||
`"standard"`, `"comfortable"` or `{ "custom": float }` (`1` is compact, `2` is loose)
|
||||
|
||||
## Close on File Delete
|
||||
|
||||
- Description: Whether to automatically close editor tabs when their corresponding files are deleted from disk.
|
||||
- Setting: `close_on_file_delete`
|
||||
- Default: `false`
|
||||
|
||||
**Options**
|
||||
|
||||
`boolean` values
|
||||
|
||||
When enabled, this setting will automatically close tabs for files that have been deleted from the file system. This is particularly useful for workflows involving temporary or scratch files that are frequently created and deleted. When disabled (default), deleted files remain open with a strikethrough through their tab title.
|
||||
|
||||
Note: Dirty files (files with unsaved changes) will not be automatically closed even when this setting is enabled, ensuring you don't lose unsaved work.
|
||||
|
||||
## Confirm Quit
|
||||
|
||||
- Description: Whether or not to prompt the user to confirm before closing the application.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue