jumptag

Crates.iojumptag
lib.rsjumptag
version0.1.4
sourcesrc
created_at2024-11-05 07:50:37.467897
updated_at2024-11-07 01:56:18.196952
descriptionJump to directory using tags as shorthand.
homepage
repositoryhttps://github.com/Da1sypetals/jumptag
max_upload_size
id1436200
size29,663
(Da1sypetals)

documentation

README

Jumptag

Jump to directory using tags as shorthand.

Install

Use binary

  • Download the binary jumptag and script configure.sh from release, to the same directory.
  • Execute:
bash configure.sh <path_to_rc_file>

Compile from source

  • Please read before run:
bash build.sh <path_to_rc_file> -r

Use

Initialize

# add binary:
mkdir -p ~/.jumptag/bin
cp ./jumptag ~/.jumptag/bin
# initialize:
jumptag -init <your_rc_file>
# please restart your shell right after

Use

An example in an interactive shell (zsh) :

  • Currently we have bindings:
~/dev/rs > jt -ls
[jump-tag] (3 bindings)
desk => /mnt/a/Desktop
dev => /home/da1sypetals/dev
rs => /home/da1sypetals/dev/rs
  • Create a new one and jump to it!
~/dev/rs > jt desk

/mnt/a/Desktop > jt -add docs ~/dev/docs

/mnt/a/Desktop > jt docs
  • Now delete an existing one!
~/dev/docs > jt dev

~/dev > jt -del dev

~/dev > jt rs
  • And jump to it...
~/dev/rs > jt dev
[jump-tag] failed: tag not found: dev
  • Finally, see what we have now!
~/dev/rs > jt -ls
[jump-tag] (3 bindings)
desk => /mnt/a/Desktop
docs => /home/da1sypetals/dev/docs
rs => /home/da1sypetals/dev/rs
Commit count: 15

cargo fmt