Log In  

I like to use the up and down keys to cycle between save and run on the terminal
while developing.

I’ve accidentally scrolled to load instead of save which loads the previously saved
version of my current project in progress. I’ve lost work several times.

It’s an easy mistake to make.
Defintely user error and not a bug,
although I’d consider it a UX issue.

I’d like to recommend a Y/N/C prompt in the terminal
for any command that could cause unsaved work on a project
in progress to be lost.

E.G.

>> LOAD MY_PROJECT
>> SAVE
>> RUN
.... (repeat for a long time)
>> LOAD MY_PROJECT
>> CURRENT FILE MY_PROJECT CONTAINS UNSAVED WORK
>> LOADING WILL REVERT TO PREVIOUSLY SAVED VERSION
>> AND WORK WILL BE LOST
>> ARE YOU SURE YOU WANT TO LOAD?
>> (Y - YES , N - NO , C - CANCEL)

P#54068 2018-07-10 19:10 ( Edited 2018-07-11 08:45)

Did you check the backup folder? It saves backups of unsaved changes in certain scenarios (it displays a message at the bottom of the screen when it does that)...I thought it did whenever you load a new cart when the current cart has unsaved changes, but maybe that case is not covered?

I think only one previous backup is saved at any given time or something like that, but if you act on it right away, you can still recover from a mistake like that.

P#54069 2018-07-10 19:16 ( Edited 2018-07-11 01:20)

Thanks. Yes. I was able to get it out of the backup folder since I acted quickly. Thanks for the reminder. I am grateful for that feature.

P#54072 2018-07-10 22:35 ( Edited 2018-07-11 02:35)

I've certainly made this mistake before.

My recommendation is to use Ctrl+S and Ctrl+R to save and run. More convenient (you can save/run directly from the editor) and not vulnerable to this mistake. Ctrl+R running will also reload external changes to carts or warn if you have unsaved changes internally with changes externally.

P#54077 2018-07-11 04:45 ( Edited 2018-07-11 08:45)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 14:19:10 | 0.008s | Q:19