Search for a resync match in Compare tool
Posted: 2024-12-30, 11:13 UTC
The idea came after this answer:
Second, at least one selection is often invisible being above or below the visible range of lines.
For the first case a partial solution could be highlighting the current line number (bold or colour), and this could be implemented.
But highlight would not help in the second case - unfortunately, quite common and inconvenient - scroll, sometimes a lot, or use Find, make selections and only then "Resync".
A possible solution could be to add two context menu items:
Resync, search down and Resync, search up.
The context menu is tied to one of the panes and search would be performed in the other pane.
The tool searches for the match of the current line contents (or maybe for the selected text, if there was any).
Possibly, successive resyncs of this kind could also try to search from the next line down or up (to avoid finding the same line), and iterate through existing matches for the preferred alignment of texts.
First, nothing would be seen if an existing empty line was selected.ghisler(Author) wrote: 2024-12-24, 10:39 UTC Because you can't see the cursor in the inactive pane, so you could accidentally resync the wrong lines.
Second, at least one selection is often invisible being above or below the visible range of lines.
For the first case a partial solution could be highlighting the current line number (bold or colour), and this could be implemented.
But highlight would not help in the second case - unfortunately, quite common and inconvenient - scroll, sometimes a lot, or use Find, make selections and only then "Resync".
A possible solution could be to add two context menu items:
Resync, search down and Resync, search up.
The context menu is tied to one of the panes and search would be performed in the other pane.
The tool searches for the match of the current line contents (or maybe for the selected text, if there was any).
Possibly, successive resyncs of this kind could also try to search from the next line down or up (to avoid finding the same line), and iterate through existing matches for the preferred alignment of texts.