Skip to content

Binding to move search root to parent? #4186

Open
@akriegman

Description

@akriegman

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.57.0 (0476a65)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

Feature request: a binding to change the search root to the parent folder.
Use case: sometimes I enter fzf with alt-c or ctrl-t, and I then realize that the folder that I'm looking for is an ancestor or cousin. I then have to ctrl-c, cd ../.., and try again. It would be cool if there was a binding to restart fzf with .. as the new search root to make this quicker. My suggestion is alt-left because that's the binding for back in most browsers.

I think this can be hacked together using the existing very powerful binding features, but I wanted to suggest making this a default binding since it would be really useful in a common use case.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions