zsh-users
 help / color / mirror / code / Atom feed
From: Borzenkov Andrey <Andrey.Borzenkov@siemens.com>
To: "'Oliver Kiddle'" <okiddle@yahoo.co.uk>,
	"'clemens fischer'" <ino-qc@spotteswoode.de.eu.org>
Cc: zsh-users@sunsite.dk
Subject: RE: bash convert: new completion system skeleton?
Date: Fri, 24 Jan 2003 14:19:04 +0300	[thread overview]
Message-ID: <6134254DE87BD411908B00A0C99B044F03A0B5FF@mowd019a.mow.siemens.ru> (raw)
In-Reply-To: <1715.1043406768@finches.logica.co.uk>


> 
> I could easily write a function to allow zsh to use completions written
> for bash:
> 
> local COMP_REPLY
> local COMP_CWORD=$CURRENT
> local -a COMP_WORDS
> COMP_WORDS=( $words )
> setopt localoptions
> emulate sh
> "$@"
> compadd - "${COMPREPLY[@]}"
> 

cool. I guess it could be really useful. 

> Would be enough for _qconfirm (I think). Would that be useful? Or do we
> have a perl guru who can write a program to convert the function? 

Or scan bash_profile/bashrc for complete -F and compdef all commands to use
wrapper unless already defined. It would allow almost transparent change
between bash and zsh. It could be added to compinstall then or even to
compinit with style to turn it off/on.

Would it be useful?

Of
> course it is better to rewrite the functions properly to make full use
> of zsh's greater power.
>

Sure.


-andrey


  reply	other threads:[~2003-01-24 11:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-17 13:16 clemens fischer
2003-01-24 10:37 ` Peter Stephenson
2003-01-24 10:42 ` Borzenkov Andrey
2003-01-24 11:12 ` Oliver Kiddle
2003-01-24 11:19   ` Borzenkov Andrey [this message]
2003-01-24 19:37     ` clemens fischer
2003-01-24 21:19     ` John Buttery
2003-01-27 10:08       ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6134254DE87BD411908B00A0C99B044F03A0B5FF@mowd019a.mow.siemens.ru \
    --to=andrey.borzenkov@siemens.com \
    --cc=ino-qc@spotteswoode.de.eu.org \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).