-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External Workspaces #1418
base: master
Are you sure you want to change the base?
External Workspaces #1418
Conversation
…on flag is only available when targeting 'es2022' or later."
… part of VSCode workspace - allow defining templates in external workspace folders - added config. properties: foam.files.workspaceType, foam.files.externalWatchPaths, foam.files.externalTemplatesRoot
Thanks for the contribution @guestieng |
In slightly more detail, the following problems are addressed: When working with a couple of already existing workspaces (likely with multiple folders per workspace) in parallel, e.g. for different projects, or, respectively, when working with several generically created workspaces, it costs avoidable (e.g., by this pull request) time and effort to care about a notes folder in every workspace. Moreover, there are extensions like Continue which one might want to feed with an explicit and clean (workspace) codebase. Besides, personally, I would like to be able to always take notes (without loosing availability) in a very efficient manner, that is with a minimal set of user interactions, no matter how the workspace (settings) look like. As to your 2nd question, can you specify a little? For example, what do you refer to by "Foam direction" and how would the context of a web extension differ? |
The requested changes make it possible to choose between two basic types of workspaces for the notes and templates:
The switch may be done via the config. property
foam.files.workspaceType
.This feature allows to decouple the essential foam workspace from the VSCode workspace and provides better flexibility and less workflow complexity, particularly when working with multiple VSCode workspaces and projects.
The "external" and absolute note folder paths that are to be watched can be defined via the config. property
foam.files.externalWatchPaths
.The external and absolute template root directory path may be defined via the config. property
foam.files.externalTemplatesRoot
.NOTE: The "external" path definitions may be defined such that either only a respective root directory or, in addition, a glob pattern is provided.