-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Support multi-line search for Global search #13155
Comments
This feature/bug-fix should be prioritized better. I use global search to find type definitions and make code refactoring decisions based on results, e.g. "find all uses of ..." some particular piece of code. I've seen, tested, and verified specific scenarios where searching for a search-term using Global Search (with Match Whole Word -on) doesn't turn up a matching result, even though there's a file with that search-term in it. If I open the known file, Global Search will only then start showing the matching result. -- #13068, #9051, #18671 In short, Global Search is a critical feature for helping refactor code, without this improvement I can't trust VS Code search functionality to help me produce quality code. Thanks for the effort. Please get this in. |
Komodo edit gets this right, but I'd like to switch to vsc. I use multiple line search/replace in files all the time and vsc should support it. |
Currently, VS Code is dependent on ripgrep supporting multiline. If you are interested in this capability, you probably want to follow: |
This use case is clearly much more important to vscode than to ripgrep. Perhaps this dependency needs to be reconsidered. |
I use multiline/regex frequently in both global and single file searches, mostly for find/replace operations, which forces me to use Dreamweaver to count match instances over 999 or for multiline search and replace when I would prefer being able to just stay in vscode for such things. |
I'm not quite sure why VS Code can't just use built-in JS regular expressions for this? |
+1 on this, much needed |
@klepon I like then people are threatening they will use another tool, it's very funny 😄 Just try to realize you're using a free tool from Microsoft with such great features and amazing support for almost all programming languages. Instead of help and motivation for the team, you're spreading the negative and toxic things around this community instead of supporting each other. If you think this is very easy to develop such features into existing tool with such large codebase then why you're not creating a PR by yourself since you're paying zero money to use it... |
The only reason I pull up NotePad++ anymore instead of using VS Code for most things all seem to be related to search. NP++ allows for multiline search and replace and I use it a great deal. |
libripgrep team closed their issue on August 20. Looks like it was fixed in this PR: BurntSushi/ripgrep#1017 When will we be able to see this in vsc? |
@winzig Give it time. I supposed this will be in for the next major version release, as this is quite a big change. |
They haven't added it to the backlog yet. I don't think they plan on adding it (correct me if I overlooked something). |
|
Oh, weird. Why haven't they added it to the backlog yet? |
I think it is a unnecessary feature |
haha!! you're kidding right?
after all the work done to support the feature, and all of the support,
some arbitrary decision is made to close the issue....
…On Tue, Oct 9, 2018, 9:45 PM Rob Lourens ***@***.***> wrote:
Closed #13155 <#13155>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#13155 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ARpg3nfEgIhNPuHkIfYhvAGhMnlIcycrks5ujW1FgaJpZM4KMbAP>
.
|
@rshpeley I think that's because he finished adding the functionality. |
oh! my bad then...
…On Tue, Oct 9, 2018, 10:01 PM Luca Ban ***@***.***> wrote:
@rshpeley <https://github.com/rshpeley> I think that's because he
finished adding the functionality.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13155 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARpg3qf0mKtr1UivGoUJTBYTsS7AVLpLks5ujXEDgaJpZM4KMbAP>
.
|
If this is closed, where can we find more information about the solution? |
@OliverJAsh it was just closed today so please be patient for a few days. I'm sure it'll be added to the release notes of a next release of VSCode. |
I mean, you can see it's closed because code was committed, and as if that wasn't enough it was added to the October 2018 milestone, which may hint that perhaps we'll see this in the October release (which means early November). |
I tweeted the documentation 🐦 https://twitter.com/roblourens/status/1049866207292088321 It's in Insiders now. You can search in multiline mode if you explicitly include a Multiline matches include a UI hint that the match includes more lines, in the form of e.g. |
@roblourens Would it differentiate between |
You can checkout this: https://marketplace.visualstudio.com/items?itemName=axlan.multiline-find-and-replace It allows you to copy the formatted multi line regexp. I also noticed that you cannot do multiline regex searches via the GLOBAL SEARCH bar -> It prints an error saying 'Literal \n currently not supported' |
That issue is fixed in insiders @gsrafael01 |
Support multi-line search for Global search
The text was updated successfully, but these errors were encountered: