Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: dynamic directory name completion
- X-seq: zsh-workers 28027
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: dynamic directory name completion
- Date: Sat, 12 Jun 2010 00:30:24 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=ieHQDsrZDE/RFgF4v3ZiLyOpBX7FDy4ktwkOuK7GwiQ=; b=DNO5HQ2SQTrkYZQXrdwqEVaweHaJos197z7yIUOGJYM5lfOS8J967DKNCgAx9oDXkd DDFnGd3pZOPyIm93zs7hj8eUlrDPhle0QU4K8JdmiXOpTrglNOQatyEPAVPGwAE7v/Jk na0u3Pk4pBABYy8HtuJ47KoY1z9jzTOfsWhdM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=D0blPVwSxKBSqhr0FSKNZBLNQKM57SuEDEE+M+WbivUmTuteOA2DLSHuSa/kSsRPUJ OrEOx4GSO/GpW6PpyGxsiBP3OSZ7gKemUlxI1DFSWtsnHQ/+xFrQiB0MPjeUfvtr5cwK 0Y2AHruzAEIElc9xYR+IsyvGh6n/msiLUaV+M=
- In-reply-to: <8073.1276294725@pws-pc>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <8073.1276294725@pws-pc>
On 12 June 2010 00:18, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> I've been playing around with dynamic directory names for referring to
> recently used directories and in the process realised that rather than
> having to overload _dynamic_directory_name in order to complete dynamic
> directory names it would be much more natural to call the original
> function, zsh_directory_name, with a new code letter. You don't lose
> anything at all by this---you can still overload _dynamic_directory_name
> if you prefer.
>
> Here's the change with a tested (but rather less useful than the code
> I'm aiming at) example.
>
> Index: Doc/Zsh/expn.yo
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Doc/Zsh/expn.yo,v
> retrieving revision 1.115
> diff -p -u -r1.115 expn.yo
> --- Doc/Zsh/expn.yo 11 Jun 2010 20:08:02 -0000 1.115
> +++ Doc/Zsh/expn.yo 11 Jun 2010 22:12:37 -0000
> @@ -1451,6 +1451,12 @@ parts of the directory path, as describe
> length matched (16 in the example) is longer than that matched by any
> static name.
>
> +The completion system calls `tt(zsh_directory_name c)' in order to
> +completion dynamic names for directories. The code for this should be
completion -> complete
Messages sorted by:
Reverse Date,
Date,
Thread,
Author