75c02dd53e65357658f08bafaec99cc4b15a55ec

Author
Jannik Zschiesche <jz@becklyn.com>
Committer
ncanceill <nicolas.canceill@ens-cachan.org>
Date

Message

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)

Diff

 1diff --git a/plugins/jump/jump.plugin.zsh b/plugins/jump/jump.plugin.zsh
 2index 5096879d8dde01cf0f389bb368a15a5108e79dbe..1b23b5d427937f103ec948a09735b63952fbf8ab 100644
 3--- a/plugins/jump/jump.plugin.zsh
 4+++ b/plugins/jump/jump.plugin.zsh
 5@@ -39,7 +39,7 @@ marks() {
 6 
 7 _completemarks() {
 8 	if [[ $(ls "${MARKPATH}" | wc -l) -gt 1 ]]; then
 9-		reply=($(ls $MARKPATH/**/*(-) | grep : | sed -E 's/(.*)\/([_\da-zA-Z\-]*):$/\2/g'))
10+		reply=($(ls $MARKPATH/**/*(-) | grep : | sed -E 's/(.*)\/([_a-zA-Z0-9\.\-]*):$/\2/g'))
11 	else
12 		if readlink -e "${MARKPATH}"/* &>/dev/null; then
13 			reply=($(ls "${MARKPATH}"))