Giter Site home page Giter Site logo

ranger-zoxide's Introduction

ranger-zoxide

A zoxide (aka z) plugin for ranger.

Easily jump between commonly visited directories by running this in ranger:

:z <partial-name>

Or use interactive mode:

:zi <partial-name>

Features

  • Very simple & fast thanks to zoxide
  • Supports tab completion
  • Works with Python >= 2.7, or >= 3.1

Install

For ranger >= 1.9.3, use Git to clone this repository into your ~/.config/ranger/plugins folder. For example:

git clone [email protected]:jchook/ranger-zoxide.git ~/.config/ranger/plugins/zoxide

Legacy Install

For ranger versions older than 1.9.3, or to install without Git, download __init__.py to your ~/.config/ranger/plugins directory. For example:

mkdir -p ~/.config/ranger/plugins
wget -O ~/.config/ranger/plugins/zoxide.py https://raw.githubusercontent.com/jchook/ranger-zoxide/master/zoxide.py

Keyboard Shortcut

You may wish to add a keyboard shortcut to quickly z between common directories. Simply add a binding to your ~/.config/ranger/rc.conf file:

map cz console z%space

Or for interactive use:

map cz zi

See Also

License

MIT

ranger-zoxide's People

Contributors

anomalocaridid avatar fdw avatar foo-x avatar jchook avatar rc2dev avatar scottkosty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ranger-zoxide's Issues

Merge with another plugin?

Hi,

when I migrated to zoxide, I also migrated my old ranger-autojump plugin to ranger-zoxide. As you can guess, I now found your plugin, and I'm wondering if it makes sense to merge the two? The code differs just a bit, and mine also offers a zsh plugin to easily invoke ranger in a certain directory. What do you think?

mligy

[submodule ".config/ranger/plugins/zoxide"]
path = .config/ranger/plugins/zoxide
url = [email protected]:jchook/ranger-zoxide.git
[submodule ".hammerspoon/stackline"]
path = .hammerspoon/stackline
url = [email protected]:AdamWagner/stackline.git

Details

Add .gitignore file that ignores the __pycache__ directory #11

When using plugins by cloning their repos into Ranger's plugins folder, a directory named __pycache__ is created. Since it is currently not ignored, git thinks that my local copy of the ranger-zoxide repo has been modified. This isn't a very big problem, but it is somewhat annoying and I would appreciate a .gitignore file that ignores __pycache__.

Provide configuration option for command name

I prefer :j over :z to trigger Zoxide and would like to be able to configure the command in some way. Zoxide also allows to configure the command with zoxide init --cmd j.

I could try to implement it if there's interest in it.

zi in ranger does not jump to directory

When I use :zi dir inside ranger, it uses the fzf to choose the right path, but after I hit Enter, it doesn't jump to the directory.

zi inside my shell works OK.

Consider renaming zoxide.py to __init__.py

Hey, thanks for maintaining ranger-zoxide!

Ranger now supports plugin directories, allowing one to simply clone entire Git repositories straight into your plugin directory. This makes both installating and updating plugins a lot easier.

For this, your directory needs to be a proper Python package -- to do this, you can simply rename zoxide.py to __init__.py.

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.