Giter VIP home page Giter VIP logo

fzf-jump's Introduction

fzf-jump

This tiny script, inspired by fzf-marks, can be used to navigate folders in Bash. It is based on the command-line fuzzy-finder fzf written by Junegunn Choi. Although the script is very short and simple, it is very convenient and can very quickly become an important part of your workflow.

Instead of listing just a hardcoded list of bookmarks, this lists the directories in the current directory, and the directories on the pushd stack.

Installation

fzf is required to use this plugin. Once this condition is met, it is sufficient to source the script from your shell configuration file.

Usage

Most of the key mappings in the search window are the default fzf ones. The most relevant ones are:

  • Enter to accept a match.
  • ctrl-c do nothing.
  • ctrl-f recursively jump into selection.
  • ctrl-b recursively jump into the parent directory (..).
  • ctrl-g flip to the next directory on the pushd stack.
  • ctrl-h jump into the directory being listed, not the selection.
  • ctrl-x change to the directory exactly as typed

In Bash, the script creates a commands:

  • jump to jump to a given bookmark using fzf.
  • You can bind this to a shortcut in your configuration files, for example using bind '"\C-g":" jump\n"' . I recommend prefixing the command with a space, so jump will not appear in your history if you have HISTCONTROL=ignorespace set.

Sources

Author

Urbain Vaes (original), Neal Fultz (rewrite)

fzf-jump's People

Contributors

nfultz avatar michaelmior avatar urbainvaes avatar

Stargazers

Pablo avatar Rohan Ghige avatar  avatar A.Kalaverin avatar Scott avatar David Rees avatar  avatar Karina Antonio avatar Rachelle Gray avatar

Watchers

 avatar James Cloos avatar  avatar

fzf-jump's Issues

Ctrl-g binding removed, but still in doc

The commit 532c83c removed the Ctrl-g binding, but its still in the README.md. Assuming it was removed for a reason, perhaps the README.md should be updated with how to manually add it? Or a second script could be provided that users can source if that want the binding?

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.