mhinz / mhinz/vim-grepper

add example of how to grep in the directory of current file.

Open
#260 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
1.2k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

I've been trying to figure out how to wrangle Grepper w/ something like `%:p:h` to limit grep results to only those that are in the directory (or subdirectories) of the current file.

Still haven't figured it out, but maybe someone else has?

I think this would be a great example to add to https://github.com/mhinz/vim-grepper/wiki/example-configurations-and-mappings

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the linked wiki page, “example configurations and mappings,” as the documentation entry point. Investigate how `%:p:h` can scope Grepper searches to the current file’s directory and subdirectories, then add a working configuration or mapping example with enough context for users to apply it.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.