[Suggestion]: Ability to specify searching directories or files in the interactive picker

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

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
lua, neovim
Domain
tooling

Research direction

Start by tracing fff.nvim's interactive picker and comparing it with the existing programmatic option to search directories or files. Done means the interactive picker can select whether to search directories or files, including the directory-navigation use case described with fzf-lua and fd.

Written by the indexing model from the issue text.

Description

enhancement feature-request triaged
Which fff frontend(s)?

Neovim plugin (fff.nvim)

What problem are you trying to solve?

I see it's possible to specify whether to search directories or files programmatically but I don't see this option for the interactive picker. What I'm trying to build is the following (where I use fzf-lua):

vim.keymap.set('n', '<C-g>',
function()
  plugin.fzf_exec("fd --follow --type directory --hidden --max-depth 4 . $HOME", {
    prompt = "Goto -> ",
    actions = {
      ['default'] = function(selected)
        vim.cmd("cd " .. selected[1])
      end
    },
  })
end,
{desc = 'Change directory (home)'})
Proposed solution

No response

Dominant language
Rust
Stars
11.2k
Forks
473
Avg merge
2d 7h
Merged PRs (30d)
32

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from dmtrKovalenko/fff

All issues in dmtrKovalenko/fff

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.