oni icon indicating copy to clipboard operation
oni copied to clipboard

Oni exits without prompting to save

Open ArthurZ opened this issue 8 years ago • 7 comments

Please allow salvaging unsaved data - presently Oni exits disregarding whether a file is persisted to disk/saved. Prevent valuable data and thus work lost by prompting to save a file.

Thank you!

ArthurZ avatar Apr 24 '18 13:04 ArthurZ

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar Apr 24 '18 13:04 oni-bot

Hi, thanks for logging this issue and trying out Oni!

Could you please list the steps for reproduction?

TalAmuyal avatar Apr 24 '18 19:04 TalAmuyal

@TalAmuyal You can open a file, change it's content, not save and close the tab.

On Vim you receive a prompt to confirm.

badosu avatar Apr 24 '18 19:04 badosu

Yeah, this was filed as #264. I agree, it does need to be fixed. Personally, I think this is one of those things that prevents Oni from being a daily-use text editor since if you accidentally close an edited file there's nothing you can do to recover.

keforbes avatar Apr 24 '18 19:04 keforbes

@keforbes I think we can close this one, right?

badosu avatar Apr 24 '18 20:04 badosu

I think so too - closing since #264 tracks this. Just for the record, :q<CR> does warn you.

TalAmuyal avatar Apr 24 '18 20:04 TalAmuyal

@TalAmuyal Indeed, I tried on another machine and this behaviour is preserved, I'll investigate what's the difference, thanks!

badosu avatar Apr 24 '18 20:04 badosu