Re: [Bash-completion-devel] Get stuck

2011-05-23 Thread Raph
of _get_comp_words_by_ref(). (the -n flag excludes a character from COMP_WORDBREAK) good luck PS: let me know if you find a proper solution, I had a similar problem with completions starting by 'http://'. Raph ___ Bash-completion-devel mailing list Bash-completion-devel

Re: [Bash-completion-devel] Get stuck

2011-05-23 Thread Raph
=${cur%\%*}% suf=${cur##*%} COMPREPLY=( $( compgen -P ${pref} -W abc bbb cde -- $suf ) but I guess he would like the other way... and I'm interested too in knowing how to deals with COMP_WORDBREAK, (especially using properly the API) Raph

Re: [Bash-completion-devel] Get stuck

2011-05-23 Thread Raph
On Mon, May 23, 2011 at 10:57:14PM +0200, Raph wrote: [...] I'm interested too in knowing how to deals with COMP_WORDBREAK, (especially using properly the API) May be seen as a thread hijack but I think this is related: The attached completion, is the only way I found to have a consistent

Re: [Bash-completion-devel] some patches from a git repo

2011-05-03 Thread Raph
On Tue, May 03, 2011 at 09:22:00PM +0300, Ville Skyttä wrote: On 04/06/2011 04:29 PM, Raph wrote: Hi, here I put some bash-completion stuff there: https://gitorious.org/drzraf/bash-completion Sorry for taking so long, here are some comments and excuses ;) You'll find: - the patch

Re: [Bash-completion-devel] bug #311708: multiple bash_completion.d directories in $BASH_COMPLETION_DIR

2011-02-15 Thread Raph
just a ping (updated patch attached). For reference: [#311708] + http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01673.html May also help solving [#312795] regards Raph On Tue, Dec 29, 2009 at 11:05:27PM +0100, gibbo...@gmail.com wrote: Hi, I rewrote

[Bash-completion-devel] misc: compgen, colors, comp interruption

2011-02-14 Thread Raph
these subjects ? sorry for such a long oration. Raph # bash completion for test _comptest() { local cur COMPREPLY=() _get_comp_words_by_ref cur # ex1 COMPREPLY=( $( compgen -f -- $cur ) ) # ex2: no completion ($cur starts with a character, wordlist elements contains shell-color

Re: [Bash-completion-devel] bash-completion, known_hosts

2011-02-14 Thread Raph
=( ${COMPREPLY[@]} $( compgen -P $prefix$user -S $suffix -W $(awk '{for(i=1;i=NF;i++){if($i==machine){j=i+1;print $j}}}' $HOME/.netrc) -- $cur ) ) fi sincerely, Bandie +1 (http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01534.html) Raph

Re: [Bash-completion-devel] Non-completions

2011-02-08 Thread Raph
they expect to be completed, filenames or command arguments (tab or Alt+/) ? Raph ___ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel

Re: [Bash-completion-devel] tc completion attempt

2010-10-16 Thread Raph
[ putting the bash completion mailing-list in CC: ] On Sat, Oct 16, 2010 at 04:21:21PM +0200, Marek D. wrote: Hi, I tried to use tc completition and: and after tc and tab I've got: Hi, this attempt is now more than a year old. But I don't currently use 'tc' nor I expect any exhaustive or

Re: [Bash-completion-devel] Patch for #312458

2010-04-13 Thread Raph
On Tue, Apr 13, 2010 at 12:54:25PM +0100, Martin Eve wrote: Hi all, I attempted to submit a bug report to https://alioth.debian.org/tracker/index.php?func=detailaid=312458group_id=100114atid=413095 which did not attach my patch. Alioth is refusing to let me create a new account; hence the

Re: [Bash-completion-devel] Hardcoded /sbin/lsmod

2009-06-18 Thread Raph
needs another $PATH than the user's original one In this later case, we may use something like $(have -p $cmd) to get the absolute path echoed and use it if needed. Or a backward compatible solution : - echo the absolute path of the command if found - return 1 otherwise my 2c Raph On Thu, Jun 18

Re: [Bash-completion-devel] tc completion attempt

2009-05-31 Thread Raph
Hello, as my previous email didn't succeed, this time I attached a gzip'ed version. Raph On Sun, May 31, 2009 at 01:42:26AM +, Raph wrote: Hello, today was a bit rainy, a perfect weather to try tc and to begin the first percent of it's completion (300 lines) enjoy Raph tc.gz

[Bash-completion-devel] xsltproc completion

2009-05-24 Thread Raph
Hello, a quick attempt to make the completion of xsltproc. See attachement. Raph have xsltproc { _xsltproc() { local cur prev COMPREPLY=() cur=`_get_cword` prev=${COMP_WORDS[COMP_CWORD-1]} case $prev in -@(-output|o