nvim-tree / nvim-tree/nvim-tree.lua

Navigate tree using fuzzy search

Open
#2,251 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request PR please
Dominant language
Lua
Stars
8.6k
Forks
639
Avg merge
1d 14h
Merged PRs (30d)
2

Description

When you have multiple dirs, you can reach your destination much faster using the following method ( I implemented it in my config for vim-netranger plugin so I know :) ) :

It will look something like that. You press key to start fuzzy-search* files in current directory. As you type it will display only the files/directories that match the search.
You should have mappings that either->

  1. set as root your current selection and start fuzzy search in this directory .
  2. go back to previous fuzzy search
  3. open the file of course
    (optionally expanding all subtree could be nice too).

I didn't check the api , but I know I don't want to implement this myself again as this is tricky.

PS
I might be able to upload a gif.

*(non-fuzzy is possible but a bit lame)

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

No implementation files, tests, or entry points are named in the issue. Start by locating nvim-tree's existing navigation and key-mapping code, then investigate the available fuzzy-search API; the work is done when the proposed search, root-selection, backtracking, and file-opening mappings are implemented and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.