Vscode-bookmarks: Colored Bookmarks

Created on 18 Oct 2019  路  9Comments  路  Source: alefragnani/vscode-bookmarks

It would be great to have the ability to create colored bookmarks and be able to use a different key combination to create each (ex. ctrl + D + 1, ctrl + D + 2, etc.) Thanks!!

enhancement reengineering

All 9 comments

Hi @andro23 ,

Do you mean different colors _for each_ bookmark, or _define grouping_ with colors?

Hi Alessandro, first off, I want to thank you so much for the great work! The plugin is super awesome!
What I mean is colors to group different bookmark types. In my case for example, I would love to be able to color things to do in blue for example, things to revise in orange, things to fix in red, etc.. Thanks!

Thank you @andro23 for your kind work. I'm glad the extension is being useful!

Bookmark groups has been requested in #159 but at the time the request was more a _wizard/step by step_ manager, and the issue ended up out of scope. More recently, I added Labels to bookmarks, which allows you to _give meaningful names_ for each bookmark.

I believe that adding colored tags to bookmarks would be a good improvement for navigation/categorization, but I still need to think about its UX. How you could add _and_ see them in the Side Bar and Command Palete. I'm not sure about the jumping (custom keyboard) because extension's can't create commands in runtime (it must be pre-registered).

What do you think?

Hi Alessandro, thanks for the quick reply!
I currently use labels as an alternative to what I need. They are very useful to clearly identify each bookmark. In the case of grouping, colored bookmarks would be very easy to spot and therefore save the time to scan all the bookmarks (or the code lines on the right side) to try to find the items TO BE REVISITED for example.

Regarding the keys, is it possible to pre-reserve a certain key combination + 0...9 (ex. ctrl + alt + k + 0, ..., ctrl + alt + k + 9)? If so, users may be given the ability to define the color of each of the 10 groups or stay with the default colors that you choose ;)

It would be possible to create N commands, and associate each one to some specific bookmark group, but this would create the limitation of having just N groups. Unfortunately, it鈥檚 not a sustainable solution.

I鈥檒l take a look if there are new ways to do this ;-)

Hope this helps

Hi Alessandro, that is the drawback I was thinking of unfortunately. I will leave that to your creativity then ;)
Thanks in advance !

I noticed that https://github.com/alefragnani/vscode-numbered-bookmarks has the feature to change icon fill. Will this be ported to vscode-bookmarks any time soon? The reason I ask is because the default blue is quite similar to VS Code's default UI blue.

Hi @oatymart ,

It's something that I want for the upcoming releases, but I can't say _when_.

In fact I would like to _port_ that, but _also_ apply the recent Color _contribution_ API that is available. Doing so, Color Themes (and users) could define the different color attributes using the same color syntax from VS Code itself 馃槃 .

In the meantime, you can change the icon itself using "bookmarks.gutterIconPath".

Hope this helps

I鈥檓 starting to play with the grouping support idea, and just remembered about this issue. At this point, I鈥檓 not sure it will be possible, but I鈥檒l try to combine both.

Something like:

"tags": [
  {
     "name": "Personal",
     "color": "rgb(0, 255, 0)"
  },
  {
     "name": "Work",
     "color": "rgb(255, 0, 0)"
  }
 ]

Let鈥檚 see how it goes 馃榿

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  5Comments

longv2go picture longv2go  路  6Comments

versionsix picture versionsix  路  4Comments

fgarcia picture fgarcia  路  6Comments

ashmckenzie picture ashmckenzie  路  5Comments