Search does not expand selection left when appropriate
See original GitHub issueConsider the following terminal buffer:
blah blah tt
Searching for “t” will select the second “t” (because of backwards search), doing an incremental search for “tt” will find no results:
We should cover this edge case where the only result is expanding the selection left. Additionally, if there were 2 results, the selection should be expanded left instead of going to the next one as it’s still technically the same match.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
I lost my "expand selection" option when sorting - Super User
As a workaround, you may try to Press Ctrl + A to choose all the region that you want to sort. Besides, if...
Read more >Reader Question: Cannot select single cell, row, or column
Apparently, according to this Microsoft Answers entry, if you press the F8 key, you're toggled into something called Extend Selection Mode. This basically...
Read more >How to Sort in Excel Rows or Columns Avoid Sort Problems
In the Sort Options dialog box, under Orientation, select Sort Left to Right. Click OK, to close the Options dialog box.
Read more >Video: Advanced filter details - Microsoft Support
Training: You can use the Advanced Filter to create more powerful filters, such as filtering for unique records and using operators such as...
Read more >Resize a table by adding or removing rows and columns
You can use the Resize command in Excel to add rows and columns to a table: ... select the range on the worksheet,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Tyriar I opened a PR #3125. Please review it when you have time.
Sorry, I found L156-L161 is not unnecessary. We need to check whether the selection can expand to right or not first. Otherwise, the selection moves around each time words are input.
I ended up simply changing search position to selection end after the first search. The final result is here.