shonenjump

command module
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

README

Shonenjump build Go Report Card GitHub release (latest by date)

shonenjump is a lightweight autojump clone written in Go.

What does it do?

Quote from the description of autojump:

autojump is a faster way to navigate your filesystem. It works by maintaining a database of the directories you use the most from the command line.

Directories must be visited first before they can be jumped to.

How to use it?

Once you have cd into a directory, shonenjump will save it in a list. The next time you can use the j shortcut to visit it.

For example, suppose that you have cd into a directory called /usr/local/Very-Long-Dir-Name/Sub-Dir/target after shonenjump is enabled. You can then use j long or j target or j vldn to visit it.

Sometimes the first matched directory is not what you want, you can type j <your key word> and then type Tab to trigger auto completion and see the options.

Installation

macOS

brew install suzaku/homebrew-shonenjump/shonenjump

Linux

Arch Linux

Arch Linux user can build/install from the AUR.

Other distros

Users of other distros can follow these steps:

  1. Download the shonenjump binary for your platform, place it in a directory in your $PATH.

  2. Download the setup script for your shell and include it in your shell profile.

    For example, if you are using zsh, you can do the following:

    wget -O ~/.shonenjump.zsh https://raw.githubusercontent.com/suzaku/shonenjump/master/scripts/shonenjump.zsh
    echo '. $HOME/.shonenjump.zsh' >> ~/.zshrc
    
  3. If you are using zsh, you'll need an extra step to setup tab completion.

    You need to place a script into the zsh/site-functions directory:

    cd <Your Zsh Site-functions Dir>
    wget https://raw.githubusercontent.com/suzaku/shonenjump/master/scripts/_j
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL