alefragnani / vscode-bookmarks

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

[FEATURE] - Bookmark Entire File #564

Closed TheColorRed closed 1 year ago

TheColorRed commented 1 year ago

I have a file that is in my node_modules (which has a bunch of css variables that I use to reference within my project), and I cannot seem find a way to added it to Ctrl+P which lists files. It would be nice if I could bookmark a file (One within my node_modules), and that file is accessible from the bookmarks sidebar and the "Go to File" command.

alefragnani commented 1 year ago

Hi @TheColorRed ,

I suppose you have a git repository and the node_modules folder is grayed right?

If that's the case, it is how VS Code works. It disable the files/folders presented in .gitignore, so they won't be available in Ctrl + P. I'm not sure how to disable that, unfortunately.

The Bookmarks extension, on the other hand, won't block you from toggling bookmarks on any of those files. And if you do, the search/list will work as expected. So, the extension works just fine in that scenario.

Hope this helps

alefragnani commented 1 year ago

I'm closing this issue because no new comments has been added since my last question. Feel free to reopen/comment if the error still occurs.

Thanks for your understanding