Commit Graph

5 Commits

Author SHA1 Message Date
Benjamin Popp
0b60953ecc adding ability for IFileSystem to tell me when something changes on disk.
first pass at implementing the windows version of the new interface methods
IViewPort now has a public method to call whenever you want to notify it that its underlying file has been changed.
Added 3 tests showing how the Editor and ViewPort should behave with this new functionality.
- Editor should hook up ViewPorts whenever a new tab is opened
- Editor should clear out ViewPorts whenever a tab is closed
- ViewPort should reload when the file is changed and it is not.

Note that the model isn't implemented yet. This is just some failing tests.
2018-11-28 22:16:43 -06:00
Benjamin Popp
b65f3eadfb adding cut/copy/paste/delete
adding 'help' to menu, with links to GitHub and credit to Solarized.
2018-11-11 15:57:30 -06:00
Benjamin Popp
a2a0d9550b IFileSystem also needs to be able to handle opening files from the user. Added tests to show that the EditorViewModel works correctly with that. Also added a 'New' command, for creating a new file. 2018-10-27 19:43:42 -05:00
Benjamin Popp
361a9840d1 writing viewmodel for the editor. Basically, one view model to handle multiple tabs. 2018-10-27 14:06:15 -05:00
Benjamin Popp
1a7bd44228 get the code building to match what is needed for the tests. 2018-10-27 13:25:44 -05:00