alefragnani / vscode-bookmarks

Bookmarks Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
GNU General Public License v3.0
1.72k stars 165 forks source link

[FEATURE] - Bookmarks not tied to workspace #727

Closed huehnerlady closed 5 months ago

huehnerlady commented 5 months ago

I have bookmarks eg. to my .zshrc or other central files to quickly adapt them when needed. Currently I have to add them to every new workspace.

I would love to have the possibility to add specific bookmarks for all workspaces

alefragnani commented 5 months ago

Hi @huehnerlady ,

Bookmarks are saved per session, so, if you open the same file in different sessions (workspace) the extension will handle them as different bookmarks. That's the reason why you need to add those central files on each workspace. Also, bookmarks are accessible only if the folder containing that file is opened, even on a multi-root workspace.

I think #287 may fit your needs, as the bookmarks wouldn't be saved per session anymore, so whenever you have the file available on the workspace, the bookmark will be available as well.

Otherwise, if all your central files are stored in the same folder, currently, as the extension works, you could try combining two concepts:

  1. Define the saveBookmarksInProject setting as true, in order to make the bookmarks to be stored within the folder
  2. Start using mult-root workspaces (https://code.visualstudio.com/docs/editor/multi-root-workspaces), and add the central folder on every multi-root workspace. But this would depend on your opennes to adopt multi-root workspaces and it's peculiarites.

Hope this helps

huehnerlady commented 5 months ago

I see and I agree that would fix my issue, thanks :)