Description
Hi there,
I'd like to request a small quality of life improvement to make it easier to open folders in VS Code:
Existing Workaround
As discussed in #8, users can configure this plugin to open a specific folder in VS Code by:
- Navigating to the plugin's settings page.
- Updating the
Template for executing the "code" command
setting tocode "{{vaultpath}}/{{folderpath}}"
. - Opening a file in Obsidian that is in the top-level directory of the desire folder.
- Clicking the
VSCode
command button on the left sidebar.
Proposed Enhancement
The goal of this enhancement would be to reduce the number of steps it takes to open a folder in VSCode from Obsidian.
To achieve this, I propose adding a new context menu item called Open in VS Code
, displayed when the user right-clicks a folder in the Obsidian file explorer. Clicking this menu item would open the selected folder in VS Code.
The new workflow would be as follows:
- Navigate to the desired folder in the Obsidian file explorer.
- Right-click the folder.
- Select "Open in VS Code" in the folder context menu.
To accommodate user preferences, the plugin should provide the ability to enable/disable this context menu item via the plugin settings.
Rationale
My Obsidian vault contains several Git repositories that I frequently need to open in VS Code to make edits and commit changes. This enhancement would make it easier to open these repositories without needing to navigate to specific files within them.
Thanks for the consideration!