Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
insert-tab (Re: Getting "parse error" from _path_files)
- X-seq: zsh-workers 11753
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: insert-tab (Re: Getting "parse error" from _path_files)
- Date: Mon, 5 Jun 2000 15:13:39 +0000
- In-reply-to: <200006051433.QAA04873@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200006051433.QAA04873@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Jun 5, 4:33pm, Sven Wischnowsky wrote:
} Subject: Re: Getting "parse error" from _path_files
}
} Bart Schaefer wrote:
}
} > if [[ "$compstate[insert]" = tab* && "$WIDGET" != *list* ]]; then
} > { zstyle -T ":completion:${curcontext}:" insert-tab &&
} > { [[ "$curcontext" != :* || -z "$compstate[vared]" ]] ||
} > zstyle -t ":completion:vared${curcontext}:" insert-tab } } && return 0
} >
} > Which reminds me to wonder why insert-tab is tested for *not* being set,
} > at that point?
}
} Err...? It is tested for being set (to true), with different defaults for
} not-in-vared and in-vared.
zagzig[38] zstyle ':completion:*' insert-tab true
zagzig[39] ls x<TAB>
Completing `file'
According to the doc for insert-tab, I should have gotten a tab inserted,
because there is a non-blank character to the left of the cursor.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author