Skip to content

Support multi-line search for Global search #13155

Closed

Description

Support multi-line search for Global search

  • Background search implementation for multi-line search
  • Adopt results for multi-line. Eg: Matches
  • Adopt Replace functionality for multi-line. Eg: Matches

Activity

  1. added
    feature-request
    search
    on Oct 3, 2016
  2. ocaraveo commented on Apr 13, 2017

    @ocaraveo

    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.

  3. rshpeley commented on Apr 29, 2017

    @rshpeley

    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.

  4. d-akara commented on Apr 29, 2017

    @d-akara

    Currently, VS Code is dependent on ripgrep supporting multiline. If you are interested in this capability, you probably want to follow:
    BurntSushi/ripgrep#176

  5. gerwitz commented on Sep 1, 2017

    @gerwitz

    This use case is clearly much more important to vscode than to ripgrep. Perhaps this dependency needs to be reconsidered.

  6. Ngranger commented on Sep 2, 2017

    @Ngranger

    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.

  7. self-assigned this
    on Oct 28, 2017
  8. jez9999 commented on Nov 20, 2017

    @jez9999

    I'm not quite sure why VS Code can't just use built-in JS regular expressions for this?

  9. boyangwang commented on Jan 4, 2018

    @boyangwang

    +1 on this, much needed

  10. gerwitz commented on Mar 1, 2018

    @gerwitz

    I have reviewed the project's process documentation, and have found no way to "appeal" an issue's labelling. Given the content of comments here and, especially, the content of the many duplicate issues, I believe this should be labeled bug.

    (Yes, I understand it is caused by a dependency, but don't believe that should be relevant to the planning process.)

  11. tommai78101 commented on Apr 30, 2018

    @tommai78101

    Hans Gerwitz (@gerwitz) May I ask which dependency is causing it? Just trying to follow the discussion.

  12. 33 remaining items

  13. added 2 commits that reference this issue on Oct 9, 2018
  14. rshpeley commented on Oct 10, 2018

    @rshpeley
  15. mesqueeb commented on Oct 10, 2018

    @mesqueeb

    raymond shpeley (@rshpeley) I think that's because he finished adding the functionality.

  16. rshpeley commented on Oct 10, 2018

    @rshpeley
  17. OliverJAsh commented on Oct 10, 2018

    @OliverJAsh
    Contributor

    If this is closed, where can we find more information about the solution?

  18. mesqueeb commented on Oct 10, 2018

    @mesqueeb

    Oliver Joseph Ash (@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.
    🤗

  19. Quitch commented on Oct 10, 2018

    @Quitch

    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).

  20. roblourens commented on Oct 10, 2018

    @roblourens
    Member

    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 \n in your regex, same as in the editor.

    Multiline matches include a UI hint that the match includes more lines, in the form of e.g. +3 if the match is 4 lines long.

  21. tommai78101 commented on Oct 11, 2018

    @tommai78101

    roblourens Would it differentiate between \r\n, \n, and \n\r if you only specify \n?

  22. jamesone commented on Oct 18, 2018

    @jamesone

    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'

  23. roblourens commented on Nov 15, 2018

    @roblourens
    Member

    That issue is fixed in insiders @gsrafael01

  24. locked and limited conversation to collaborators on Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature-requeston-testplansearch

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions