Open miguelrk opened 4 years ago
Problem Switching between TDs/SDs/Folders is somewhat cumbersome for the users, as he must save before switch, or all edits (e.g. in editor) will be lost.
Solution A dynamically tabbed interface similar to that of code editors like vscode can be implemented, such that a new tab is created when the user clicks (or double clicks) an item in the left tree-view, a new tab is created. Users can then perform edits, switch tabs, return and changes will be there (although not saved) until manually saved (see bellow).
A keyboard shortcut to save current view edits with Cmd/Ctrl + S could be done as follows:
// 83 corresponds to the "S" character in the ASCII Table @keydown.ctrl.83="save()" @keydown.meta.83="save()" // On Macintosh keyboards, meta is the command key (⌘).
Cool idea! Sounds like a lot of work though 😄 Adding some kind of keyboard commands could be a good first step!
Problem Switching between TDs/SDs/Folders is somewhat cumbersome for the users, as he must save before switch, or all edits (e.g. in editor) will be lost.
Solution A dynamically tabbed interface similar to that of code editors like vscode can be implemented, such that a new tab is created when the user clicks (or double clicks) an item in the left tree-view, a new tab is created. Users can then perform edits, switch tabs, return and changes will be there (although not saved) until manually saved (see bellow).
A keyboard shortcut to save current view edits with Cmd/Ctrl + S could be done as follows: