Feature #4933 2010-01-20 06:25
evincarofautumn
Update line numbers in search results.
In a file for which there are "Find in Files" results, whenever text containing newlines (i.e., a typed newline character or pasted multi-line text) is inserted or lines are removed, the line numbers of results are invalidated for all lines following the edit point. This is a slight usability issue for which a fix would be a significant usability enhancement.
Relevant line numbers should be offset by the number of lines added or removed to prevent their invalidation, and entries pertaining to deleted lines should be removed. Updating of line numbers should occur whenever newlines are added or removed from the text.
Updating can optionally take place only while the "Search Results" panel is visible, if it can be assumed that closing the results means that the user is done using them. That is probably not the case, although if such behaviour is desired then results could simply be re-evaluated whenever the panel becomes visible, for all files that have changed since the search was run.
- Category
- Editing
- Status
- Open
- Close date
- Assigned to
- tpetrov