1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00
wting_autojump/docs/autojump.1

135 lines
2.7 KiB
Groff
Raw Normal View History

2014-01-07 18:32:35 +00:00
.TH autojump 1 "10 April 2012" "release-v22"
.SS NAME
.PP
2014-01-07 18:32:35 +00:00
autojump - a faster way to navigate your filesystem
.SS DESCRIPTION
.PP
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.
.PP
2014-01-07 18:32:35 +00:00
\f[I]Directories must be visited first before they can be jumped to.\f[]
.SS USAGE
.PP
\f[C]j\f[] is a convenience wrapper function around \f[C]autojump\f[].
Any option that can be used with \f[C]autojump\f[] can be used with
\f[C]j\f[] and vice versa.
2013-02-01 20:45:47 +00:00
.IP \[bu] 2
2014-01-07 18:32:35 +00:00
Jump To A Directory That Contains \f[C]foo\f[]:
2013-02-01 20:45:47 +00:00
.RS 2
.IP
.nf
\f[C]
2014-01-07 18:32:35 +00:00
j\ foo
2013-02-01 20:45:47 +00:00
\f[]
.fi
.RE
.IP \[bu] 2
Jump To A Child Directory:
2013-02-01 20:45:47 +00:00
.RS 2
.PP
Sometimes it\[aq]s convenient to jump to a child directory
2014-01-07 18:32:35 +00:00
(sub-directory of current directory) rather than typing out the full
2013-02-01 20:45:47 +00:00
name.
.IP
.nf
\f[C]
2014-01-07 18:32:35 +00:00
jc\ bar
2013-02-01 20:45:47 +00:00
\f[]
.fi
.RE
.IP \[bu] 2
2014-01-07 18:32:35 +00:00
Open File Manager To Directories (instead of jumping):
2013-02-01 20:45:47 +00:00
.RS 2
.PP
Instead of jumping to a directory, you can open a file explorer window
2014-01-07 18:32:35 +00:00
(Mac Finder, Windows Explorer, GNOME Nautilus, etc.)
to the directory instead.
2013-02-01 20:45:47 +00:00
.IP
.nf
\f[C]
jo\ music
\f[]
.fi
2013-02-01 20:45:47 +00:00
.PP
Opening a file manager to a child directory is also supported:
2013-02-01 20:45:47 +00:00
.IP
.nf
\f[C]
jco\ images
\f[]
.fi
.RE
.IP \[bu] 2
2014-01-07 18:32:35 +00:00
Using Multiple Arguments:
.RS 2
.PP
2014-01-07 18:32:35 +00:00
Let\[aq]s assume the following database:
2013-02-17 16:49:31 +00:00
.IP
.nf
\f[C]
2014-01-07 18:32:35 +00:00
30\ \ \ /home/user/mail/inbox
10\ \ \ /home/user/work/inbox
2013-02-17 16:49:31 +00:00
\f[]
.fi
2013-05-15 00:14:03 +00:00
.PP
2014-01-07 18:32:35 +00:00
\f[C]j\ in\f[] would jump into /home/user/mail/inbox as the higher
weighted entry.
However you can pass multiple arguments to autojump to prefer a
different entry.
In the above example, \f[C]j\ w\ in\f[] would then change directory to
/home/user/work/inbox.
.RE
.PP
2014-01-07 18:32:35 +00:00
For more options refer to help:
.IP
.nf
\f[C]
2014-01-07 18:32:35 +00:00
autojump\ --help
\f[]
.fi
2014-01-07 18:32:35 +00:00
.SS KNOWN ISSUES
.IP \[bu] 2
2014-01-07 18:32:35 +00:00
autojump does not support directories that begin with \f[C]-\f[].
.IP \[bu] 2
2014-01-07 18:32:35 +00:00
For bash users, autojump keeps track of directories by modifying
\f[C]$PROMPT_COMMAND\f[].
Do not overwrite \f[C]$PROMPT_COMMAND\f[]:
.RS 2
.IP
.nf
\f[C]
2014-01-07 18:32:35 +00:00
export\ PROMPT_COMMAND="history\ -a"
\f[]
.fi
.PP
2014-01-07 18:32:35 +00:00
Instead append to the end of the existing $PROMPT_COMMAND:
.IP
.nf
\f[C]
2014-01-07 18:32:35 +00:00
export\ PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND\ ;}\ history\ -a"
\f[]
.fi
2014-01-07 18:32:35 +00:00
.RE
.SS REPORTING BUGS
.PP
2014-01-07 18:32:35 +00:00
For any questions or issues please visit:
.IP
.nf
\f[C]
2014-01-07 18:32:35 +00:00
https://github.com/joelthelion/autojump/issues
\f[]
.fi
.SS AUTHORS
.PP
autojump was originally written by Joël Schaerer, and currently
maintained by William Ting.
2014-01-07 18:32:35 +00:00
More contributors can be found in \f[C]AUTHORS\f[].
.SS COPYRIGHT
.PP
2016-05-04 06:44:43 +00:00
Copyright © 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.