Quellcode durchsuchen

Update scripts to use version agnostic pattern matching and corresponding documentation.

pull/131/head
William Ting vor 12 Jahren
Ursprung
Commit
183fa795d7
4 geänderte Dateien mit 12 neuen und 14 gelöschten Zeilen
  1. +3
    -1
      README.md
  2. +4
    -11
      bin/autojump.zsh
  3. +4
    -1
      docs/autojump.1
  4. +1
    -1
      docs/body.md

+ 3
- 1
README.md Datei anzeigen

@ -189,7 +189,9 @@ ADVANCED USAGE
KNOWN ISSUES KNOWN ISSUES
------------ ------------
- Does not support directories that begin with `-`.
- The jump function `j` does not support directories that begin with
`-`. If you want to jump a directory called `--music`, try using
`j music` instead of `j --music`.
- zsh (bug \#86) - zsh (bug \#86)

+ 4
- 11
bin/autojump.zsh Datei anzeigen

@ -35,17 +35,10 @@ typeset -ga preexec_functions
preexec_functions+=autojump_preexec preexec_functions+=autojump_preexec
function j { function j {
if is-at-least 4.3.5; then
if [[ ${@} =~ -.* ]]; then
autojump ${@}
return
fi
else
if [[ ${@} -pcre-match -.* ]]; then
autojump ${@}
return
fi
fi
if [[ ${@} == -* ]]; then
autojump ${@}
return
fi
local new_path="$(autojump $@)" local new_path="$(autojump $@)"
if [ -d "${new_path}" ]; then if [ -d "${new_path}" ]; then

+ 4
- 1
docs/autojump.1 Datei anzeigen

@ -121,7 +121,10 @@ All negative key weights are purged automatically.
.RE .RE
.SS KNOWN ISSUES .SS KNOWN ISSUES
.IP \[bu] 2 .IP \[bu] 2
Does not support directories that begin with \f[C]-\f[].
The jump function \f[C]j\f[] does not support directories that begin
with \f[C]-\f[].
If you want to jump a directory called \f[C]--music\f[], try using
\f[C]j\ music\f[] instead of \f[C]j\ --music\f[].
.IP \[bu] 2 .IP \[bu] 2
zsh (bug #86) zsh (bug #86)
.RS 2 .RS 2

+ 1
- 1
docs/body.md Datei anzeigen

@ -48,7 +48,7 @@ Options must be passed to 'autojump' and not the 'j' wrapper function.
## KNOWN ISSUES ## KNOWN ISSUES
- Does not support directories that begin with `-`.
- The jump function `j` does not support directories that begin with `-`. If you want to jump a directory called `--music`, try using `j music` instead of `j --music`.
- zsh (bug #86) - zsh (bug #86)

Laden…
Abbrechen
Speichern