This plugin integrates z with ranger. It uses the .z database to enable quick directory jumping inside ranger. You can watch a demo in this screencast.
Note: This branch supports only z. If you want to use zsh-z, see the master branch.
- Set the
_Z_SRCenvironment variable to the path ofz.sh.
cd "${XDG_CONFIG_HOME:-$HOME/.config}/ranger/plugins"
git clone https://github.com/ask1234560/ranger-zjumper.git
echo -e "# z jumper\nmap cz console z%space" >> "${XDG_CONFIG_HOME:-$HOME/.config}"/ranger/rc.confRestart ranger after installation.
-
Run
:z dirto jump to directories matching.*/dir -
Run
:z dir1 dir2 ... dirnto jump to directories matching.*/dir1.*/dir2....*/dirn -
Alternatively:
- Press
c, thenz, then type your directory query
- Press
-
Directory matching is case-insensitive.
To update the plugin:
cd "${XDG_CONFIG_HOME:-$HOME/.config}/ranger/plugins/ranger-zjumper"
git pull