GithubHelp home page GithubHelp logo

fish-fzf's Introduction

Fish FZF

Yet another fzf plugin for Fish.

Unlike the others, this plugin tries to pack as much as possible into a single "do what I mean" shortcut. Edit a file? cd to a directory? Just insert it into the command line? Many things like this can be determined from context.

Installation

Use Fisher:

fisher install mk12/fish-fzf

Keybindings

The main keybinding is CtrlO:

  • CtrlO calls __fzf_insert file to search files.

For convenience, you can also jump directly into a different mode with these keybindings:

  • CtrlQ calls __fzf_insert directory to search directories.
  • AltZ calls __fzf_insert z to search z directories.

This plugin also offers a fzf version of history-search-backward:

  • CtrlR calls __fzf_history to search command history.

Usage

Press CtrlO to launch fzf.

If you've already typed a path, or part of one, it will start there. Otherwise, it will start in the working directoy. Within fzf, you get these keybindings:

  • Enter selects a result.
  • Tab selects multiple results.
  • CtrlO switches to searching files.
  • CtrlQ switches to searching directories.
  • AltZ switches to searching z directories.
  • Alt goes up to the parent directory.
  • Alt goes into the current item's directory.
  • AltH goes to your home directory.
  • Alt. toggles showing hidden paths.
  • AltI toggles showing ignored paths.

When you make a selection, it will normally be inserted in the command line. But if the command line was empty before and you only selected one item:

  • If it's a directory, cd to it.
  • If it's a file, open it with $EDITOR.

To prevent this, use AltEnter.

Alternatives

License

© 2022 Mitchell Kember

Fish FZF is available under the MIT License; see LICENSE for details.

fish-fzf's People

Contributors

mk12 avatar clamydo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.