vscode-text-marker
vscode-text-marker copied to clipboard
Allow toggling multiple selections with multiple cursors
I'd be really useful if we could have multiple selections and toggle all of them at once.
How to reproduce
- Select multiple lines with text
- Highlight parts of each line
- Use toggle highlight command to turn on the highlights
Desired behavior
All selections should be added as a highlights
What we see instead
Only first selected text is highlighted, all others are ignored.
Proposed solution
Add selections to TextEditor (lib/vscode/text-editor.ts) and use it in ToggleHighlightCommand (lib/commands/toggle-highlight.ts) to iterate through all active selections in execute().
Hello,
I would like to suggest one sub-feature for multiple cursors too :
- Select multiple lines with text
- Highlight parts of each line
- Use toggle highlight command to turn on the highlights and make the multicursor selected text a single regex group
So it avoid to spread the hightlights on all the file if one selected text area is one char only (hightlight all "d" of the file for exemple.)