Open Kronuz opened 2 years ago
Hello,
I would like to suggest one sub-feature for multiple cursors too :
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.)
I'd be really useful if we could have multiple selections and toggle all of them at once.
How to reproduce
1) Select multiple lines with text 2) Highlight parts of each line 3) 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
toTextEditor
(lib/vscode/text-editor.ts
) and use it inToggleHighlightCommand
(lib/commands/toggle-highlight.ts
) to iterate through all active selections inexecute()
.