Metadata-Version: 2.1
Name: autojmp
Version: 0.1
Summary: portable autojump
Home-page: https://github.com/thautwarm/autojmp
Author: thautwarm
Author-email: twshere@outlook.com
License: mit
Keywords: CLI,autojump
Platform: any
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: wisepy2 (>=1.0)

## autojmp

An autojump implementation applicable to **any shell** and **any OS** by restoring [Xython/rtpy](https://github.com/Xython/wisepy/tree/836b63c33685b6107e528256a3cc0a9600015140).

Keep things simple and portable, do not fuck your brain.

### Common Configurtions

```bash
export AUTOJMP_MAX_CACHE=999
export AUTOJMP_WORD_ANA_LEN=3 # 3-gram is precise enough!
```


### Zsh

Firstly install `autojmp`: `pip install autojmp`.

Then, append the following contents to your `~/.zshrc`:

```zsh
autoload -U add-zsh-hook

add-zsh-hook -Uz chpwd (){
  emulate -L zsh
  ajmp update "$pwd"
}

j(){
  cd "$(ajmp complete $@)"
} 
```

Using it in this way:

```zsh
j doc     # may jump to .../Project/docs
j githu   # may jump to .../github
j sec1 sec2
```




