Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Same for all" checkbox when closing unsaved tabs #2106

Open
ianrrees opened this issue Dec 22, 2017 · 8 comments
Open

Add "Same for all" checkbox when closing unsaved tabs #2106

ianrrees opened this issue Dec 22, 2017 · 8 comments

Comments

@ianrrees
Copy link

1. Explain briefly what the enhancement is and why you think it would be useful.

When I open ST, I fairly frequently am presented with a set of several tabs open, which ST thinks have edits*. In that situation, I would like to close all the tabs, without saving any of them. Currently, this requires one dialog click per open file.

It would be nice if there were a checkbox that would apply that answer to subsequent files. Eg, when I do "close all files" and have 10 tabs open and edited, on the first one I would like to indicate "Do not save any of these".

*This comes about, due to a weird NFS mounted project situation, where the file server sometimes dies and there's doesn't seem to be a clear "right way" for ST to handle the situation.

2. Provide any other necessary or useful information regarding your issue, such as (code) examples or related links.

Environment

  • Operating system and version:
    • Mac OS 10.12.6
  • Sublime Text:
    • Build 3.0 Build 3143
@keith-hall
Copy link
Collaborator

related, but for reloading externally modified files: #1666

@kornelski
Copy link

This is still a huge problem. I've ran find'n'replace on a temporary folder, and now I'm stuck with 2000 tabs individually asking to save changes, and the whole application has become permanently is unusable.

@rwols
Copy link

rwols commented Apr 15, 2019

@kornelski I think you can also just delete "the" session file. On a Mac, it's located at

/Users/raoulwols/Library/Application Support/Sublime Text 3/Local/Session.sublime_session

@erazor-de
Copy link

This also applies to the case where one wants to save all files in a “Close All Files” action. If one forgets to do “Save All” first, the user is forced to click “Save” for all open, unsaved files which could be many after a "Replace in files" for example.

@jrappen
Copy link
Contributor

jrappen commented Nov 27, 2019

@ianrrees There is "hot_exit": false, but please do read the information/warning about it in the default preferences before use.

@devvythelopper
Copy link

The implemented solution should differentiate between

  • "open" files that no longer exist on disk
  • open files that still exist on disk

@SuzanaK
Copy link

SuzanaK commented Sep 29, 2023

@kornelski I think you can also just delete "the" session file. On a Mac, it's located at

/Users/raoulwols/Library/Application Support/Sublime Text 3/Local/Session.sublime_session

On Linux, deleting ~/.config/sublime-text-3/Local/Session.sublime_session did the trick.

@tobya
Copy link

tobya commented Apr 21, 2024

As Keith Hall pointed out to me, there is a plugin that does this beautifully

https://packagecontrol.io/packages/Close%20All%20without%20Confirmation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants