dendron icon indicating copy to clipboard operation
dendron copied to clipboard

Add the ability to turn off/change tag decoration in editor

Open fnurl opened this issue 3 years ago • 6 comments

Please select if your request is either something new or an enhancement

  • [x] Enhancement of an existing Feature.
  • [ ] Request of a new feature.

Please select the area your request applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

  • [ ] Workspace - VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • [ ] Lookup - Dendron's Lookup Command
  • [ ] Views - Dendron Preview, Tree View, Side Panels in the UI
  • [ ] Schema - Dendron Schemas
  • [ ] Pod - Data import from / export to Dendron
  • [ ] Publish - External Site Publish
  • [x] Markdown - Markdown features, such as syntax support and features

Is your feature request related to a problem? Please describe

I would like to be able to stop dendron from decorating my tags in the editor by adding a colored square in front of the tag.

I find that annotations that add extra elements to the plain text is sometimes confusing (such as when I started to use dendron, created headings and did not know why a square was added at first), and sometimes annoying (as it takes up extra space on the row of text messing with line length).

Describe the solution you'd like

A setting in dendron.yaml to disable the squares in the editor would be nice and/or decorate using text color (alternative below).

Describe alternatives you've considered

A nice alternative would be to have the option for the tag color to be applied to the text itself (in the editor only) as this does not add an extra element to the line but still highlights the use of tags.

Additional context

N/A

fnurl avatar Mar 18 '22 16:03 fnurl

Hey, @fnurl, you can already do this by adding noRandomlyColoredTags: true to the top of your dendron.yml file. This is a legacy setting however, so it's likely it will be moved to a different part of the config in the near future.

aleksey-rowan avatar Mar 18 '22 17:03 aleksey-rowan

Hey, @fnurl, you can already do this by adding noRandomlyColoredTags: true to the top of your dendron.yml file. This is a legacy setting however, so it's likely it will be moved to a different part of the config in the near future.

Thanks, somebody mentioned this in Discord, and I am currently using this. However, this setting is deprecated and will be removed, so a new one needs to replace it.

fnurl avatar Mar 21 '22 10:03 fnurl

this has been renamed to enableRandomlyColoredTags. this is documented here -> https://wiki.dendron.so/notes/0q2h2R9xS2pT7jctDhIYB.html

kevinslin avatar Mar 22 '22 23:03 kevinslin

this has been renamed to enableRandomlyColoredTags. this is documented here -> https://wiki.dendron.so/notes/0q2h2R9xS2pT7jctDhIYB.html

@kevinslin, This setting only seems to be affecting publishing and preview, but not the editor itself.

aleksey-rowan avatar Mar 23 '22 01:03 aleksey-rowan

I am finding that I consistently get tag coloring/decoration for some of my notes within a fenced code block. It is very distracting for code blocks with languages that use # to comment (in my case, a crontab example). I don't know exactly what is triggering it, because, as I mentioned, I could not get this to happen in a simplified example.

Just curious if anyone else has run into this?

taranlu-houzz avatar Jul 21 '22 21:07 taranlu-houzz

@taranlu-houzz Yes, I also came into this bug, I filed an issue #3485

bigheadghost avatar Sep 03 '22 03:09 bigheadghost