Pulsar-Edit-Highlights / selected

@Pulsar-Edit package for highlighting occurrences of your selection.

Home Page:https://web.pulsar-edit.dev/packages/highlight-selected

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimizing code when highlighting option

valtido opened this issue · comments

This is a feature suggestion ...

  • As a user I want to have an option on the package settings Boolean minimise code.
  • if true, when I double click on a word.
    -- I want the code to fold and hide all code except the lines where the occurrence is present.

On single click undo the folding (when nothing is highlighted if any)

This will cancel out a lot of noise and need to scroll up/down to find that part of the file.

BONUS: as a bonus another option to indicate how many lines (before and after the lines should be displayed to help with some context about that line and where the code folds an ellipsis can be displayed to indicate code has been folded).

I have an additional suggestion regarding folding.

When a would-be-highlighted occurrence is within a block of code that is currently folded, what if that folded block of code was highlighted? When the block of code is unfolded, the block is unhighlighted.

An example of what this could look like:
full view
edited