ProgerXP / Notepad2e

Word highlighting, simultaneous editing, split views, math evaluation, un/grep, comment reformatting, UAC elevation, complete regexps (PCRE), Lua lexers, DPI awareness and more (XP+)
Other
375 stars 52 forks source link

Edit Mode to highlight matches on screen in all split views #369

Closed ProgerXP closed 8 months ago

ProgerXP commented 3 years ago

Currently Edit Mode highlights occurrences seen on the screen of the focused split view (#316). Make it highlight them in screens of all split views. This does not affect Ctrl+Tab region (it still edits occurrences within the current view's screen). Let me know if it needs substantial refactoring (due to replacing single edit scope with multiple disconnected scopes).

It's possible that different views will use different highlight styles. Consider a window with 2 views: small and large. The small view highlights using "multiple occurrences, some invisible" style. The large view, whose first visible line is the same as small's (and last line is below last small's line), may highlight using "multiple occurrences, all visible" style.

If the small view is focused then Ctrl+Tab would edit only some of occurrences visible in the large view. If the large view is focused then Ctrl+Tab would edit all occurrences.

cshnik commented 1 year ago

Done.

ProgerXP commented 10 months ago

This does not affect Ctrl+Tab region (it still edits occurrences within the current view's screen).

If the small view is focused then Ctrl+Tab would edit only some of occurrences visible in the large view. If the large view is focused then Ctrl+Tab would edit all occurrences.

Currently Ctrl+Tab edits all regions in all views regardless if they're "visible" in the active view.

cshnik commented 8 months ago

Currently Ctrl+Tab edits all regions in all views regardless if they're "visible" in the active view.

Fixed.

ProgerXP commented 8 months ago

Memo: now Ctrl+Tab edits only current view's occurrences; highlighting in other views is disabled in Edit Mode except for visible edit regions (blue).