Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

insert-tab (Re: Getting "parse error" from _path_files)



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