https://github.com/coldnew/eshell-autojump
autojump command for Eshell
https://github.com/coldnew/eshell-autojump
emacs emacs-lisp eshell
Last synced: about 1 year ago
JSON representation
autojump command for Eshell
- Host: GitHub
- URL: https://github.com/coldnew/eshell-autojump
- Owner: coldnew
- Created: 2014-06-27T15:48:56.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2022-10-21T20:20:55.000Z (over 3 years ago)
- Last Synced: 2025-04-12T15:04:44.797Z (about 1 year ago)
- Topics: emacs, emacs-lisp, eshell
- Language: Emacs Lisp
- Size: 6.84 KB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## eshell-autojump.el
*autojump command for Eshell*
---
[](http://www.gnu.org/licenses/gpl-3.0.html)
[](http://melpa.org/#/eshell-autojump)
[](http://stable.melpa.org/#/eshell-autojump)
Use the command j to list common directories and to jump to them.
### Function Documentation
#### `(eshell-autojump-load)`
Read the initial value of `eshell-autojump-map` from `eshell-autojump-file`.
The file format is a simple alist.
Ignore non-directories.
#### `(eshell-autojump-save)`
Save the value of `eshell-autojump-map` to `eshell-autojump-file`.
The file format is a simple alist.
Reduce values by 1% such that eventually unused items fall off the list
after not being used in a hundred sessions.
#### `(eshell-autojump-record)`
Record the current directory.
`curdir` is set by `eshell/cd`.
#### `(eshell-autojump-candidates)`
Return the most popular directories.
Return list of keys sorted by value, descending, from `eshell-autojump-map`.
#### `(eshell/j &rest ARGS)`
Jump to a directory you often cd to.
This compares the argument with the list of directories you usually jump to.
Without an argument, list the ten most common directories.
With a positive integer argument, list the n most common directories.
Otherwise, call `eshell/cd` with the result.
-----