For the record, this is what I have in mind:
- If saved, save.
- If unsaved, popup FuzzyNav, filled in with contents of first line (up to a certain number of characters, probably) + default syntax extension (if other than Plain Text)
- Save As
- Popup FuzzyNav, filled in with current name, or as above if unsaved
This seems to cover most cases (?). (Or maybe not. It's a little late and I'm not thinking all that clearly.)
The above setup seems feasible to me if you provide new commands to bind Ctrl+S and Ctrl+Shift+S to. Or perhaps you can interfere with on_command with some setting to toggle it?
I'm not sure how you'd handle the "current directory" for unsaved files. Sublime uses the directory of the file from which you opened the new file/tab (I think.) Is this information available for you to use? Opening FuzzyNav on an unsaved file is a always a little surprising.
Something else: Is there a binding I can set to open multiple files? I mean regardless of the keep_panel_open_exceptions setting. I'd like to set Alt+Right (or something) to open a file without closing FuzzyNav, mimicking the palette's right arrow functionality.
Edit: would you prefer these in GH's issues?