Skip to content

Allow additional fuzzy search within files found via CTRL+P #39542

@smuuf

Description

@smuuf
  • VSCode Version: 1.18.1
  • Feature request

How about allowing users to fine-tune their fuzzy searching within a project/workspace? This could be done by treating the : character (which AFAIK is not an allowed character in Windows and Unix filenames) as a separator.

Format: <fuzzy matching file paths>:<fuzzy matching text inside found files>
Examples/use cases:

  • function:getnode - Find files with path fuzzy-matching the string function that also contain lines that fuzzy-match string getnode.
  • controller:action - Same logic. Could be used for example to trivially find all controllers that define at least one action (yes, possibly with some false positives).

Example

Current behaviour

  1. ctrl+p, enter function
  2. Search would find these files: image

Proposed behaviour

  1. ctrl+p, enter function:getnode
  2. Seach would return these files: image

And would find only these two files, because contents of the files ...

  • ...\nikic\php-parser\lib\PhpParser\Builder\Function_.php
  • ...\nikic\php-parser\lib\PhpParser\Node\Stmt\Function_.php

... match getnode "fuzzily":

  1. First one contains a line with "getSubNodeNames" and
  2. Second file contains just "getNode"

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityquick-pickQuick-pick widget issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions