Open ghost opened 4 years ago
Sounds very dangerous - why not just write a 3 line plugin to set each newly opened view as scratch for your use case?
Why is it dangerous to have such an option? Users can decide what the value of that option will be, so just let them choose and let them judge what is dangerous for them and what is not.
Regarding your "open view as scratch" suggestion, there are more use cases that the scratch view plugin cannot resolve:
Once again, I don't think this feature is dangerous. It simply allows users to do more things than before and make their life easier in some cases. If the change is trivial, please introduce it soon. Thanks.
"No"
and "askEachTime"
make sense to me. But
"Cancel"
: What does this mean? I can't save a new file anymore?
"No"
and"askEachTime"
make sense to me.
Yes, that is what I am talking about.
"Yes": What's the saved filename then?
In case of untitled tabs "Yes" can automatically open a save file dialog to let the user choose where the file will be saved (without asking whether the file should be saved first). I think it makes sense. In case of tabs that are bound to a file, simply always save the file upon closing.
"Cancel"
: What does this mean? I can't save a new file anymore?
No, it would mean that you cannot close the file without saving (if you accidentally press Ctrl+W nothing happens). You can always save the file using Ctrl+S.
some of your use cases would be solved by existing feature requests like the more standard "no to all" button in the save changes prompt, and https://github.com/sublimehq/sublime_text/issues/73
https://github.com/sublimehq/sublime_text/issues/3405#issuecomment-643521285
I usually open a new tab (Ctrl+N) to paste and format some text temporarily and then I close the tab. However, it asks me every time to save the file and I need to click right arrow to select "No" instead of "Yes" and then I need to click "Enter" each time, which is very annoying. I want an option in settings or somewhere to disable this popup globally and set default value, something like:
where
value
is one of"askEachTime"
- Display popup each time"Yes"
- Always assume Yes"No"
- Always assume No"Cancel"
- Do nothing