Skip to content

[Feature Request] - Option to hide prompt when closing an unsaved file #13178

@vbergaaa

Description

@vbergaaa

Description of the Issue

Needing to close multiple tabs that you don't want to save changes to is tedious due to the multiple prompts that appear when trying to close these tabs

Use Case

I often use notepad++ as a scrapbook to write down notes I need to store for a limited time. The duration could range from 10s to a week.
When needing to create a note, I open Notepad++ and create a new tab to store the information. The note is named 'New n' for the duration of it's life, and because I know it's a temp file, I don't want to save it, I just rely on Notepad++ to store it for it's duration.
I might create 10-20 tabs like this during a day. This quickly builds up, and at so at the end of the day (or week), I often go through each file and decide if it's ready to be deleted or not.
If its something I want to keep for another day, I go to the next tab, if not, I hit the x to delete it, then have to navigate to the prompt to hit 'no' because it's unsaved.
This is the tedious part and the part I wish I didn't have to do. I'm more than aware I'm deleting an unsaved file and that I'll be losing those changes, having a prompt appear in the middle of the window every time is unnecessary to me.

Proposed Feature

Add some type of optional way that a user can delete the file without being prompted about losing the unsaved changes
A few possible ideas (with my prefered one at the top):

  • Hold Shift while clicking close to close without prompt (and have a tooltip when the prompt appears saying 'hold shift while clicking to force delete without this prompt' (Discord does this and it's very effective).
  • A checkbox (or two) on the prompt that says ("do not show this prompt again" and/or "do not show this prompt again for new files")
  • A user preference you can navigate to that allows the prompt to not appear for new files.

Thank you for your consideration

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions