Sublime Forum

Deduplicate the "Do you want tot save the changes" prompt

#1

Use case: once in a while I realize I have too many tabs open in my project.
I pick a handful (or none) to keep and then spam the “Close File” action.

If any of the files have unsaved modifications, I get a popup for every time I pressed “Close File”. Ideally if I get the pop-up, I pick 1 time, Sublime remembers that action and then suppresses or dismisses the other popups in the queue.

Repro case on MacOS (build 4126):

  • Create new file
  • Add a letter
  • Spam Command + W
  • See a lot of popups for “Do you want to save the changes you made to New file?”

It would be nice to only get 1.

0 Likes

#2

Yes an “Apply this to all following prompts” checkbox in the dialog could work for this, and would save a lot of time.

Alternatively, many editors have a custom dialog that lists all changed files together, then you could review the unsaved changes, “select all” and then unselect the 1 file you really don’t want to save, which would be very useful in a scenario like this.

0 Likes