Skip to content

Support filtering search by folder with './' syntax #18334

Closed

Description

@roblourens

'files to include' maps the input 'foo' to globs like foo/**, **/foo, so it includes anything under the folder foo, or files named foo anywhere in the workspace. It would be helpful to have syntax like ./foo to limit this to folders from the root, especially for 'Find in folder' from the explorer. Related to #18123.

Activity

  1. added
    feature-request
    search
    on Jan 9, 2017
  2. added this to the April 2017 milestone on Apr 4, 2017
  3. roblourens commented on Apr 5, 2017

    @roblourens
    MemberAuthor
    • Multiple folders like - ./foo, ./bar - just search in the last one, since I don't want to deal with spawning multiple ripgrep processes and merging results right now.
    • A pattern like ./foo/bar/**/*.js - convert to ./foo/bar, **/*.js, somehow. Or, ignore it, and anything else that doesn't look exactly like a relative path to a folder in the workspace.
  4. roblourens commented on Apr 5, 2017

    @roblourens
    MemberAuthor

    Actually, ripgrep has no problem searching multiple folders, or searching patterns like ./foo/**/*.js.

  5. roblourens commented on Apr 5, 2017

    @roblourens
    MemberAuthor

    Except on Windows 😛 BurntSushi/ripgrep#234

  6. added
    verification-needed
    on Apr 26, 2017
  7. added
    verified
    and removed
    verification-needed
    on Apr 27, 2017
  8. aeschli commented on Apr 27, 2017

    @aeschli
    Contributor

    Marking as verified as find in folders works. But I filed some issues and I'm still confused on how './' is supposed to work. To search in the root, isn't the typical syntax to start with '/' (/foo searches in files and folders foo that are in the root)

  9. locked and limited conversation to collaborators on Nov 18, 2017
  10. added a commit that references this issue on Sep 6, 2026
    97a91e0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestsearchverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions