CotEditor icon indicating copy to clipboard operation
CotEditor copied to clipboard

Allow Hot Close/Hot Exit (Close App with No "Save ..." Dialogs)

Open MattMicheletti opened this issue 3 years ago • 19 comments

Hello,

I am wondering if the ability to close the app (with the standard Red close button/light in the upper left corner) and have it just close down without asking for/displaying "Save..." dialogs exists? I've seen this refereed to as hot exiting or hot closing in other apps/what not. Is this a feature or possibility to add to CotEditor? Currently, I have to right click the dock-icon and then select "Quit" (which I assume is exhibiting the correct behavior ... well based on my usage so far ... it is). I was just curious if there was a way to get similar functionality in the standard close button.

Why? Well, the idea is essentially to have CotEditor function similar to Notepad++ (of which it pretty much is the closest thing on macOS): auto-saving files (even unsaved/untitled ones until the user saves them manually) and reopening all previously opened files (incl. unsaved ones) again on the next app start. E.g. really awesome and automagic session management.

Please let me know if there is anything I can provide or help to explain/elaborate.

Please and thanks,

MattMicheletti avatar Feb 17 '21 16:02 MattMicheletti

Hi, I would LOVE this feature as well. I recently migrated to MacOS and found a perfect replacement for Notepad++ in CotEditor. The only thing that drives me crazy several times a day is exactly the Save dialog.

Thanks in advance Alex

AleXburnA avatar Apr 16 '21 11:04 AleXburnA

Hi, I would LOVE this feature as well. I recently migrated to MacOS and found a perfect replacement for Notepad++ in CotEditor. The only thing that drives me crazy several times a day is exactly the Save dialog.

Thanks in advance Alex

The closest alternative to Notepad++ with this feature is Textastic (and Sublime Text 3 ... sort of). I still use both CotEditor, Textastic, and Sublime Text 3 as my Text Editor toolkit.

MattMicheletti avatar Apr 17 '21 04:04 MattMicheletti

Hi, sorry for my late answer and thank you for the feedback.

CotEditor already has a feature called Auto Save that relies on the macOS's auto save feature. You can turn it on from CotEditor's preferences > General pane > "Enable Auto Save with Versions." Screen Shot 2021-06-10 at 19 38 49

Doesn't it fulfill your demand? If so, let me know that the different from this feature and your request.

1024jp avatar Jun 10 '21 10:06 1024jp

Hi and thank you for your answer!

@MattMicheletti thanks for your input, I will definitely check it out.

@1024jp I am aware about that feature and I use it all the time. The problem is, this works only for existent files on the local machine.

I often have multiple unnamed/unstored files open, which I use as a temporary notepad. Other open files are located on SMB shares, for example, where the native macOS auto-save does not work either.

So unfortunately this feature does not really solve my problem.

What we would like to see is an option where clicking on the red X of the window behaves the same way as pressing Command+Q, i.e. a "freeze" of the current state without "do you want to save this" popups.

Thank you and best regards Alex

AleXburnA avatar Jun 10 '21 13:06 AleXburnA

@1024jp Sorry for the late reply. I think @AleXburnA accurately described it. Essentially, for an example case/steps-to-reproduce:

Step 1) Open a fresh instance of CotEditor Step 2) Create a new file (Cmd + N) Step 3) Type something: "Hello World" Step 4) Create another new file Step 5) Type something "Goodbye!" Step 6) Right-Click the Dock icon for CotEditor Step 7) Select "Quit" Step 8) Relaunch CotEditor Step 9) Notice the 2 "Untitled..." files created in Steps 2 & 4 are still there (with contents) Step 10) Close the app via the red button in the upper left corner Step 11) Notice the "Do you want to ..." dialogs (We don't want these ... it should function like in Step 7 ... automatic session management)

I hope this helps explain it a little bit better :)

MattMicheletti avatar Jun 12 '21 21:06 MattMicheletti

Thank you guys for your further explanation. Now I understood your demand. However then, I need to consider whether the requested behavior should be implemented to CotEditor because they are out of the native macOS document-based application's behavior. The current CotEditor's saving behavior is designed to conform with the standard macOS app behavior as much as possible to avoid letting users confused. This is the first principle of CotEditor's design philosophy. And avoiding adding options haphazardly is also one of the principles. So, let me have a time.

1024jp avatar Jun 16 '21 11:06 1024jp

@MattMicheletti, I'm totally with you on this issue (I'm also coming from Windows and Notepad++). I think the reason why we find it weird that the app behaves like this is that, in macOS, closing a window doesn't usually close the app (but Cmd + Q does).

I was going to say that even within the macOS logic the CotEditor behaviour isn't quite intuitive, but as I think about it, it actually makes sense: if you close a particular document which you haven't saved, it makes sense for the app to ask you whether you want to save it or not (just assuming that you want to keep it and save it under a an untitled-name seems strange, generally speaking (and on Notepad++ it has led to me accumulating many dozens such documents) and assuming the you don't want to keep it and delete it is obviously not a good idea either). If you close the application, by contrast, it makes sense to save the state of any unsaved windows instead of asking the user where to save each of them (which is the default behaviour on Windows which Notepad++ works around).

@1024jp, having said the above, I think it might still be a good idea to introduce an "allow hot clos" user setting to always skip the save modal when closing a window, don't you think?

tophee avatar Dec 27 '21 10:12 tophee

@1024jp, just discovered this marvellous tool after desperately looking for an alternative to Notepad++, since I switched from Windows. Congratulations on delivering to a huge audience looking for a substitute!

Is there any chance of you implementing what @tophee suggested? Adding an "allow hot close/hot exit" setting? Would improve the life of plenty of people.

cristianminaa avatar Apr 30 '22 00:04 cristianminaa

Hope this feature can be added, although it's just an option turned off by default

Kerwin1202 avatar Jul 31 '22 13:07 Kerwin1202

Hi I just switched from Windows & Notepad++ and found this tool a great replacement for Notepad++ (since it does not support macOS). The only hesitation for me is that after jotting down some notes, I cannot simply close it and set it aside.

For the use case of anonymous temporary notes (which is my primary use case on CotEditor), it is annoying to ask user to think of a temporary name and find a temporary location every time. In the case of Notepad++, using new 1, new 2, ... without the need to save it, is very convenient and perfect for its use case.

I believe this is the pain point for every user switching from Notepad++, even for existing users who have the same use case of this software as above. Please kindly consider this feature.

Suggestion:

  • Command+Q: Hot Exit (no change)
  • Close Windows Button: 1) Ask to save, or 2) Hot Exit (configurable) (can also consider keeping icon in dock, which align with default macOS behaviour such as "Notes" app)
  • Close Individual File Button: Ask to save (no change)

carsonwah avatar Aug 08 '22 07:08 carsonwah

Hello,

One more user who loves this editor and needs the hot exit while closing via the x button. Please consider implementing this at least via an option so people can choose to use it if needed. Thank you for all your efforts.

nlvraghavendra avatar Sep 02 '22 12:09 nlvraghavendra

+1 on this

pantuts avatar Nov 17 '22 23:11 pantuts

Another +1 on this.

svrmirac avatar Dec 01 '22 17:12 svrmirac

Sadly, it looks like the developer doesn't care about this feature anymore. I'm currently using Apple Notes which is the closest to have this feature when it comes to pure note taking. It auto saves the notes and you can simply exit. I still wish CotEditor implements this feature since it is a great editor overall.

nlvraghavendra avatar Dec 02 '22 23:12 nlvraghavendra

+1 on this

ybelonozhkin avatar Feb 27 '23 16:02 ybelonozhkin

+1

MohamedSayed9392 avatar May 07 '23 07:05 MohamedSayed9392

+1, having it as a configurable option would be amazing, it's the only thing stopping me from using CotEditor as my default text editor. Is this on the roadmap at all?

skylatian avatar Oct 10 '23 20:10 skylatian

+1

n1justice avatar Dec 13 '23 13:12 n1justice

+1 ... This is one feature that prevents me from using CotEditor by default. I am still in search of NotePad++ equivalent in macos.

ponson-thankavel avatar Jan 25 '24 09:01 ponson-thankavel