Open failable opened 1 year ago
Hey @liebkne, can you explain this a bit more? Is the regex and color stored in some settings file?
@JosephTLyons
Hi, the regex or the pattern is interactively input by user, thought one should be also highlight symbol under cursor without inputing regex.
The colors might be built-in or configurable. When highlighting, colors might be selectable or automatically selected.
I think It may be possible to just re-use the current search interface by adding a "Highlight matches", or use other interaction.
Below is several demos:
Highlight current symbol under cursor (Don't need to select colors, trigger by a shortcut simply)
https://github.com/zed-industries/community/assets/5475262/e872016f-3aad-4dba-9723-79f19d21ed3e
Highlight by regex and manually select a color (by calling command or shortcut)
https://github.com/zed-industries/community/assets/5475262/faadd2b3-0e68-45c4-a0f5-0c84a5346cbd
Select a region then highlight (by shortcut)
https://github.com/zed-industries/community/assets/5475262/2d655c8c-0038-463f-a97a-eb1f2a7d8b94
Note that highlighting does not necessary mean selecting. But it will be helpful to have the ability turn highlights into selections like
https://github.com/zed-industries/community/assets/5475262/14716c8f-c483-4d06-800d-a64da7e5d0be
Ok, that all makes sense now. Appreciate the super thorough reply @liebkne!
Check for existing issues
Describe the feature
Can be helpful for reading codes. Don't necessary to be semantic.
If applicable, add mockups / screenshots to help present your vision of the feature