zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.64k stars 2.79k forks source link

Highlighting of special code comment types like TODO, INFO, etc. #11895

Open adiepenbrock opened 4 months ago

adiepenbrock commented 4 months ago

Check for existing issues

Describe the feature

One feature that I find really useful in other editors, e.g., Neovim with the plugin "folke/todo-comments," is the ability to highlight specific types of comments like // TODO // INFO and others. This feature enhances productivity by making it easier to locate and manage important comments within the codebase when scrolling / jumping through the code.

Because there may be users who don't want this kind of highlights in the code, it should be configurable by the user (activate / deactivate, configure highlighting color or deriving it from the used theme, etc.)

There is already a feature request (#4808) to introduce a separate tree-structure overview of these comments. However, I think this should also be available in the code itself.

If applicable, add mockups / screenshots to help present your vision of the feature

image
francesco-gaglione commented 2 months ago

I'm considering to work on this. Some instructions on how to do it? Colours for example. And is it still needed?

diogox commented 1 month ago

I don't know about the color requirements, but any implementation would probably be a good start. I use this every day in other editors and find it very useful :)

francesco-gaglione commented 1 month ago

I readed somewhere that this should be done zed extensions and not in the core codebase. It is still true or we want to consider to implement it in the core?

kofron commented 2 weeks ago

@francesco-gaglione did you wind up taking a stab at this?

francesco-gaglione commented 2 weeks ago

@kofron I need first the confirmation from mainteiners to do this into zed core and not in the plugins

everdrone commented 1 week ago

There is this open issue: https://github.com/zed-industries/extensions/issues/523 where the direction was to implement it as an extension.