@movq@www.uninformativ.de Another feature request: sometimes I start writing a twt but then would like to discard it. It would be great if jeny could detect that I did not wrote (or saved) anything and then discards the twt instead of creating an “empty” one.
@movq@www.uninformativ.de why not just have a hot key to delete your last Twt outside the editor anyway? 🤔
@fastidious@twtxt.net You can catch the abort because the editor will exit with a non-zero exit status 👌
@lyse@lyse.isobeef.org Oh! 🤦♂️ I could have sworn vim
exits with a non-zero exit status on :cq!
Hmmm 🤔 Perhaps I’m wrong about that 😁
Well there ya go 😂 phew 🤣
@movq@www.uninformativ.de My workflow is as follows.
I hit “reply” hotkey and my editor comes up.
With or without writing something I close my editor without saving the content.
Of course I close it by C-x C-c, not by :q! ;-)
Jenny finds the temp file unchanged, e.g. it’s content is the same as it was when my editor was started. I would like that jenny discards the reply then.
Autosaving is no problem either. Real editors do this to a temporary (kind of backup) file. Only in case of a crash that file is consulted and the user is asked if she would like to continue with that stored content.
@movq@www.uninformativ.de Yes, this may be enough to check.
I only know this “feature” from my revision control software where I get “abort: empty Commit message” or “Aborting commit due to empty commit message” when I do not change whatever is already in there. Can be quite some text about which files changed and so on.
@movq@www.uninformativ.de I don’t by your example (rebasing behaviour), sorry.
Writing a twt is more similiar to writing a commit message. Git does quite some checks to detect that nothing new was written and happily discards a commit if you just leave the editor. You don’t need any special action, just quit your editor. Git will take care for the rest.
But it’s OK as it is. I just didn’t expect that I have to select and delete all to discard a twt. So it’s C-x h C-w C-x C-c for me.
@movq@www.uninformativ.de Thank you very much for implementing this! It’s very useful (at least for me)!