notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

Show whitespace symbols only when text is selected

Open
#7,913 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scintilla dependent
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.