Hi,
Jimmy wrote:
> Forgive me if I sound completely stupid,
No worries, the UI is fairly bad, and I think part of the reason it's not used.
> looking at the IDE I can't even see how I turn on autosave.
You don't need to turn it on - it would be a fairly terrible
*auto*save if you did.
The way it's meant to work is that as you're editing a file, it
autosaves your changes. When you commit, the changes are staged and a
commit created and you're back to a fresh state again.
The file-list shows the autosaved information in a separate span in
line with the file it relates to. Clicking on the file name gives the
repo version, clicking on the autosave span gives that version. In
retrospect this is a terrible UI, though I thought it was quite good
at the time.
"Delete autosave" is like doing "git checkout $FILE".
> I'm interested in knowing why autosave isn't being used:
> is it a lack of interest/fear of breaking something, or is it hidden away
> and teams haven't found it?
I suspect that the poor UI is part of the problem, but since no-one
has ever complained that they can't work how to use it (or that
they've lost data they expected to be autosaved) I also believe there
is no demand for it.
Originally the current front-end had this feature because:
- it was in the previous UI
- I thought it would be useful
In the latter case I modelled it somewhat as a drafts feature like,
for example, GMail has, but my own experience with uncommitted changes
is that most of the time you have absolutely no idea why you left them
around and they cause more confusion than use.
If people do turn out to want this sort of behaviour (which I've never
seen demand for) I'd much rather add proper support for Git's stash
mechanism instead. To be clear: I'm not planning on adding that at the
moment.
For reference, I think that this feature was mainly in the old UI
because the very original back-end fell over quite often and needed
users to refresh & re-login when that happened. It was thus primarily
a workaround to avoid users losing data due to issues in the back-end.
Happily the current (third?) generation of back-end doesn't suffer
from that sort of issue.
Thanks,
Peter