zsh-users
 help / color / mirror / code / Atom feed
From: James Devenish <j-devenish@users.sourceforge.net>
To: zsh-users@sunsite.dk
Subject: Re: Reinsertion of file prefix for accepted completion?
Date: Fri, 3 Jan 2003 14:35:32 +0800	[thread overview]
Message-ID: <20030103063532.GA17025@gulag.guild.uwa.edu.au> (raw)
In-Reply-To: <1030103055654.ZM28760@candle.brasslantern.com>

In message <1030103055654.ZM28760@candle.brasslantern.com>
on Fri, Jan 03, 2003 at 05:56:53AM +0000, Bart Schaefer wrote:
> On Jan 3, 12:33pm, James Devenish wrote:
> } Is there some way...to reinsert a compadd -W file prefix when
> } the completion is accepted?
> Not really, no. // It's a completion system, not an abbreviation
> system.  The focus is on producing on the command line an argument
> in the form that is expected by the command.

At least are such special cases as $cdpath (thankfully)!

> If you have a particular command for which you'd like to be able to use
> abbreviated file names as arguments, then write a wrapper function
[...]
> However, you don't both get to use the abbreviations *and* see the full
> paths in the command history.
[...]
> If you *really* wanted to work for it, you could write a new ZLE widget
> to replace accept-line,

I am tempted to look into the latter, but the number of users who could
benefit from it (as opposed to having no use for it or being harmed by
it) is so small, the wrapper sounds fine. It is specifically to do with
the BSD ports management commands, so there are a few restrictions that
it (the thing I wanted to achieve) both pertinent and relatively risk
free. I will be asking for comments presently, so I guess I'll get some
reactions then. I have a compromise in mind.

PS. I am really impressed with the quality of the answers I've received
from people on the zsh mailing lists (including off-list). Thank you.



      reply	other threads:[~2003-01-03  6:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-03  4:33 James Devenish
2003-01-03  5:56 ` Bart Schaefer
2003-01-03  6:35   ` James Devenish [this message]

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=20030103063532.GA17025@gulag.guild.uwa.edu.au \
    --to=j-devenish@users.sourceforge.net \
    --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).