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

Option to not wrap search back to start of file #46504

Closed
garyking opened this issue Mar 25, 2018 · 8 comments
Closed

Option to not wrap search back to start of file #46504

garyking opened this issue Mar 25, 2018 · 8 comments
Assignees
Labels
editor-find Editor find operations feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code

Comments

@garyking
Copy link

garyking commented Mar 25, 2018

Please add an option to not wrap the search back to the start of the file.

So if I hit "Find Next" multiple times and I reach the end of the document, then I hit it once more, I don't want to return to the first search result at the top of the file. I want it to stop moving forward instead.

Or at the very least, show a "refresh" icon when the search goes back to the top. I forget where I see this, but some popular apps have this.

@vscodebot vscodebot bot added the search Search widget and operation issues label Mar 25, 2018
@roblourens roblourens assigned rebornix and unassigned roblourens Mar 25, 2018
@roblourens roblourens added editor-find Editor find operations and removed search Search widget and operation issues labels Mar 25, 2018
@DevGim
Copy link

DevGim commented Jun 28, 2018

Would you implement this feature please?
I also need it.

@anseki
Copy link

anseki commented Jul 10, 2018

I also need this option.
To check something, I press F3 key ("Find Next") repeatedly in long file. That is, I pressed F3 key, and I said "This is OK, and next!", and I pressed F3 key, and I said... Uh oh, I was not looking at the scroll bar, and I backed to top of the file before I even knew it, and I checked those again wastefully.

It should stop at last keyword by option, or a message should be shown near the cursor because a message in the bottom of window may be not looked.

@rebornix rebornix added the feature-request Request for new features or functionality label Sep 5, 2018
@rebornix rebornix added the *out-of-scope Posted issue is not in scope of VS Code label Sep 11, 2018
@vscodebot
Copy link

vscodebot bot commented Sep 11, 2018

This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

@vscodebot vscodebot bot closed this as completed Sep 11, 2018
@Ap0100L
Copy link

Ap0100L commented Mar 12, 2020

Please reOpen this issue

@timrobinson33
Copy link

This feature is important to me too

@SeerGiuS96
Copy link

You should really consider about implement that feature guys

@GustavoASC
Copy link
Contributor

@SeerGiuS96 @timrobinson33 @Ap0100L I've developed a setting on PR #92243 to solve this need. It is currently available on 1.45 Insiders, which will be released as the official VSCode version during this week.

There's a new setting 'editor.find.loop' which controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.

Hope it helps! 😄
Happy coding!

@tkimovski
Copy link

This feature is a great help, but it's still lacking the power of the Visual Studio search behavior: When you start a forward search in the middle of the file, it will keep searching to the end of the file, then it will wrap around starting at the top of the file and it will keep searching until it reaches the point where it started the search. The currently implemented feature in VS Code is only good if I know whether my search target is above or below my current line so I can direct the search accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-find Editor find operations feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

10 participants