fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.28k stars 117 forks source link

Sublime plugin: AutoBackups support #102

Closed jtojnar closed 6 years ago

jtojnar commented 7 years ago

I just lost some text I was writing since yesterday. Could you associate the buffer with a file so that AutoBackups can track it?

fregante commented 7 years ago

I'm not familiar with how ST handles that, is it a quick change that you can make via PR?

fregante commented 7 years ago

Or perhaps you could make this optional: https://github.com/GhostText/GhostText-for-SublimeText/commit/6ac2b75bf73767d9a59e7dbfb66c838489f78645, which from what I understand will make ST ask you if you want to save it, every time.

jtojnar commented 7 years ago

I am not that familiar with sublime plugin development but AutoBackups seem to check for filename so not setting scratch probably won’t be enough.

fregante commented 7 years ago

I don't think this can ever work with AutoBackups then, even if the filename was set, it's not really saved anywhere. Scratch is what makes ST let you close the window without saving and eventually I think that's what would benefit you.

Perhaps try loading GhostText for ST locally and delete that line.