Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chmouel/chmoujump
FZF and ZSHZ cd jumper tool
https://github.com/chmouel/chmoujump
fzf-scripts zplug zsh
Last synced: about 1 month ago
JSON representation
FZF and ZSHZ cd jumper tool
- Host: GitHub
- URL: https://github.com/chmouel/chmoujump
- Owner: chmouel
- Created: 2021-12-14T17:39:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T19:09:36.000Z (4 months ago)
- Last Synced: 2024-11-22T01:47:57.654Z (3 months ago)
- Topics: fzf-scripts, zplug, zsh
- Language: Shell
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chmoujump - 🚀
A combinaison of [zshz](https://github.com/agkozak/zsh-z), favourite
directorie path and aliases.I used to have an hacky function which did the thing in a non elegant way and somehow dicsovered the much nicer :
https://github.com/andrewferrier/fzf-z
so I merged some of my code with andrew's plugin and made it my own with a narcissic prefix
(i have no idea what to use otherwise)## Install
with [zplug](https://github.com/zplug/zplug)
```sh
zplug 'chmouel/chmoujump'
```or whatever is your zsh plugin manager,
## Usage
C-g is bound to it and will show you the last directories from zsh-z combined with your favourites directories, you can define with the env variable:
```shell
CHMOUJUMP_DIRS="/dir1 /dir2"
```By default, this goes to `$GOPATH/src/github.com` and if it doesn't exist to `$HOME`.
With [fd](https://github.com/sharkdp/fd) it will grab the first two subdir
levels of those directories use [fzf](https://github.com/junegunn/fzf) to ask
you which one you want and show a preview with [exa](https://the.exa.website/)
if avail or ls/treeIt can as well match an alias, for example
```shell
-% declare -A CHMOUJUMP_ALIASES=([fav]=$HOME/project/fav)
-% chmoujump fav
ALIAS: $HOME/project/fav
```### Options
* `-P`: show a preview pan of file or directory.
* `-f`: use fuzzy search (by default it sets as exact)
* `-p`: just print the path don't cd it
* `-n`: force using fzf search instead of zshz history
* `-a`: Choose from alias via fzf
* `-A`: Just list the aliases sorted by the git index modification times