Pistos / diakonos

Diakonos is a console text editor for the masses.
https://git.sr.ht/~pistos/diakonos
Other
137 stars 11 forks source link

No backup file ?? #31

Closed xtronics closed 10 years ago

xtronics commented 11 years ago

Shouldn't diakonos make a backup file ( filename~ ) like every other editor?

Pistos commented 11 years ago

No one's ever asked for this before! :) Could you outline how you expect such a feature to behave? Please include as many edge cases as you can think of.

xtronics commented 11 years ago

Just like all the other editors - if you open a file - nothing happens - only when you save.

Let us say that the file name is file.txt

Then the edited file is saved to file.txt

This is how e3, kate, emacs, vim, nano, pico etc..... all work.

Pretty simple, the closest thing to an edge case would be if file.txt~ existed with the wrong permissions - which should throw an error - and likely file.txt will also have the same permissions.


Karl Schmidt EMail Karl@xtronics.com Transtronics, Inc. WEB http://secure.transtronics.com 3209 West 9th Street Ph (785) 841-3089 Lawrence, KS 66049 FAX (785) 841-0434

Pistos commented 11 years ago

Thanks for the outline. Consider this feature on the TODO list.

Pistos commented 10 years ago

save_backup_files configuration setting implemented.