AJ_jmp

Crates.ioAJ_jmp
lib.rsAJ_jmp
version
sourcesrc
created_at2024-12-01 01:24:22.105514
updated_at2024-12-01 01:24:22.105514
descriptionjump to a directory
homepage
repository
max_upload_size
id1467106
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(marine32)

documentation

README

How to use jmp: On its own, rust cannot change your current directory, so you will need to get some bash involved.

  1. open your .bashrc, commonly in your home folder ~/.bashrc
  2. add this block: jmp() { cd "$(path/to/AJ_jmp/target/release/AJ_jmp "$1" "$2")" } Change "path/to/" to your filepath running up to the jmp project folder
  3. save your .bashrc source .bashrc

Now when you want to run it, simply type from anywhere jmp The path can be relative or full.

Example: jmp goal.txt /C/Some/File/Path this will take you to the directory containing the file goal.txt

Limitation: This does not work "up" the filetree, if you are trying to jump to a folder outside of the folder you are running it from, you will need to give some sort of starting file path, you cant just start from ../../ or so on.

Commit count: 0

cargo fmt