Unsure if I want to save the file on each command, or on exit.
If I was to save on each command sent, I'd likely want to flush it to disk with sync_data, which could introduce blocking in the UI unless I delegate it to another thread.
On exit could mean a crash could cause commands to be lost, but it also matches behavior of most(? citation needed) terminal shells.
Unsure if I want to save the file on each command, or on exit.
If I was to save on each command sent, I'd likely want to flush it to disk with
sync_data, which could introduce blocking in the UI unless I delegate it to another thread.On exit could mean a crash could cause commands to be lost, but it also matches behavior of most(? citation needed) terminal shells.