diff options
author | Jannik Zschiesche <jz@becklyn.com> | 2014-05-23 10:52:37 +0200 |
---|---|---|
committer | ncanceill <nicolas.canceill@ens-cachan.org> | 2014-06-28 10:12:20 +0200 |
commit | 75c02dd53e65357658f08bafaec99cc4b15a55ec (patch) | |
tree | 2bcb511abd7c9ee04617865fb96e097579f4a882 /plugins/jump | |
parent | bc2e3ff15a55fd21c6eabd502981e035dd5629c1 (diff) | |
download | zsh-75c02dd53e65357658f08bafaec99cc4b15a55ec.tar.gz zsh-75c02dd53e65357658f08bafaec99cc4b15a55ec.tar.bz2 zsh-75c02dd53e65357658f08bafaec99cc4b15a55ec.zip |
Plugin jump: autocompletion for numbers and dots
This change fixes the autocompletion for marks which contain numbers or dots.
Fixes #2578
`\d` in sed regular expressions doesn't work (see http://stackoverflow.com/questions/14671293/why-does-d-doesnt-work-in-regular-expression-in-sed)
Diffstat (limited to 'plugins/jump')
-rw-r--r-- | plugins/jump/jump.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jump/jump.plugin.zsh b/plugins/jump/jump.plugin.zsh index 5096879d8..1b23b5d42 100644 --- a/plugins/jump/jump.plugin.zsh +++ b/plugins/jump/jump.plugin.zsh @@ -39,7 +39,7 @@ marks() { _completemarks() { if [[ $(ls "${MARKPATH}" | wc -l) -gt 1 ]]; then - reply=($(ls $MARKPATH/**/*(-) | grep : | sed -E 's/(.*)\/([_\da-zA-Z\-]*):$/\2/g')) + reply=($(ls $MARKPATH/**/*(-) | grep : | sed -E 's/(.*)\/([_a-zA-Z0-9\.\-]*):$/\2/g')) else if readlink -e "${MARKPATH}"/* &>/dev/null; then reply=($(ls "${MARKPATH}")) |