notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
Show whitespace symbols only when text is selected
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Is there a way to only show whitespace symbols (tab/space from View>Show Symbol menu) when text is selected (similar to how "draw_white_space" : "selection" option in Sublime Text works)?
I'm currently using a workaround — I've set whitespace symbols' color to that of my background so it's only visible when I highlight text, but the contrast is less than ideal, so I'd like to be able to use a different color for whitespace symbols and have an option that would hide them when text is not selected
Description of the Issue
Can't hide whitespace symbols when text is not selected
Steps to Reproduce the Issue
Enable whitespace symbols in View>Show Symbol>Show White Space and Tab
Expected Behavior
Only show whitespace when text is selected
Actual Behavior
Whitespace symbols are always visible
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the View > Show Symbol > Show White Space menu entry and trace how whitespace symbols are currently displayed and controlled. The work is done when whitespace symbols remain hidden in unselected text, appear for selected text, and the behavior can be enabled as an option without changing existing users’ settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100