gambier icon indicating copy to clipboard operation
gambier copied to clipboard

Edit single documents, regardless of where they live in the file system

Open jcarpenter opened this issue 4 years ago • 1 comments

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.

jcarpenter avatar Sep 23 '20 17:09 jcarpenter

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.

jcarpenter avatar Feb 01 '21 18:02 jcarpenter