Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection not updating in replace ("Find in selection" is weird) #29883

Closed
danebou opened this issue Jun 29, 2017 · 2 comments
Closed

Selection not updating in replace ("Find in selection" is weird) #29883

danebou opened this issue Jun 29, 2017 · 2 comments
Assignees
Labels
editor-find Editor find operations under-discussion Issue is under discussion for relevance, priority, approach

Comments

@danebou
Copy link

danebou commented Jun 29, 2017

The "Find in Selection" in replace (Ctrl +H) is a weird hybrid of a single action, and a toggleable mode. It should either be one or the other.

The UI button and the text suggest that it should be a single action and not a mode. The fact that the selection doesn't update (in the find UI) also suggests this. However, when pressed a second time, instead of performing the same action with a different selection, it acts as if it "exited" a selection mode and returns to finding every keyword in the file. It's not very intuitive.

  • VSCode Version: Code 1.12.1 (f6868fc, 2017-05-04T21:26:50.689Z)
  • OS Version: Windows_NT ia32 10.0.14393
  • Extensions:
Extension Author Version
python donjayamanne 0.6.5
cpptools ms-vscode 0.11.4
csharp ms-vscode 1.10.0
code-spell-checker streetsidesoftware 1.1.0

Steps to Reproduce:

  1. Create a test file with multiple instances of the same keyword. Ex:
    test1
    test2
    test3
  1. CTRL+F to enter replace mode.
  2. Enter the keyword ("test") into the "Find" box.
  3. Highlight a single keyword.
  4. Click "Find in selection".
  5. Select other lines with different keywords. (Notice the lack of updating)
  6. Click "Find in selection" again. (Notice that instead of finding all keywords in selection, it goes back to finding all in the file).
@vscodebot vscodebot bot added editor editor-find Editor find operations labels Jun 29, 2017
@danebou danebou changed the title Selection Not Updating in Replace ("Find in Selection" is weird) Selection not updating in replace ("Find in selection" is weird) Jun 29, 2017
@rebornix rebornix self-assigned this Jun 29, 2017
@danebou
Copy link
Author

danebou commented Jun 30, 2017

Possibly related issue: #27083

@rebornix rebornix added the under-discussion Issue is under discussion for relevance, priority, approach label Aug 14, 2017
@rebornix
Copy link
Member

yes, it shares the same root cause. Let's track it in 27083

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-find Editor find operations under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

2 participants