gambier
gambier copied to clipboard
Edit single documents, regardless of where they live in the file system
Right now we're folder based. The user has to add a folder to the app before they can do anything. We should support single-document editing workflows. E.g.
- Drag file into the app from OS
- File opens, regardless of where it lives in the file system.
VS Code solves for this by allowing users to open files from anywhere (e.g. via Open File menu option, or drag/drop). The file opens inside the current window, even if it lives outside the open folder/workspace. Nice, because it lets you work with files from wherever they live. Good when you need to copy/paste, etc.
First half of the solution
- User can select file as "project directory". E.g. by dragging a file into the FRE. We select the parent directory as the project directory, and select/display the file as the open doc.
This is intuitive and simple to implement, and we should do it. But it's also the less important use case. Much more important is how we handle individual docs dragged into existing open project, from outside the project directory.