Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Option to define "favourite" folders to look for matches within, on completion request?
- X-seq: zsh-users 15054
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: Eugene Dzhurinsky <bofh@xxxxxxxxxxx>
- Subject: Re: Option to define "favourite" folders to look for matches within, on completion request?
- Date: Wed, 5 May 2010 18:49:32 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Rf7KKNMxXeRiasJo43+9+BskeG9eOAXLIndRZkfwYf4=; b=lC8teI0zzUr1aD8HsDo2Mx8A88WgmyVFv+QSsW86pJL6uLXgm9H6umQPmWAXUBMXwT B6BMPC9keiBXn01RMOkcQfCbEOWR1qkSd42FQTfujBNlHwyr7dnLd91KEX041VekowNb +8lA28kC7Ol0V7ua1rwWoEYjWbkfIDh3iqMeM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=HJZZ/Dnz9pNhu80VhKHCCnMWWilwGK15/XtTHFJZjKCbD6wqJ9Vsu2wbK5tqgea8YA 0lkOFXDx1jgL983skCIC+wJRWeUq5oJRkxbCs+dKONMeCkx/p9Zovgj9EqMG8EvFNSQa 1MbheqXKLF/KGwea3eQg9T8jHAZ7aJvelWZK0=
- In-reply-to: <20100505164044.GD78982@xxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20100505164044.GD78982@xxxxxxxxxxxxxxxxxx>
Hello,
2010/5/5 Eugene Dzhurinsky <bofh@xxxxxxxxxxx>:
> I have some (strange?) question about completion in ZSH: is it possible to
> define some folders, being inspected on completion request for match?
>
> For example, if I define the folder "/home/user/workspace/" as "favourite",
> and there is the sub-folder "/home/user/workspace/project1" - if current folder
> is '/var/lib/something' and I do type
>
> cd proj[tab]
>
> then the completion '/home/user/workspace/project1' will be suggested.
>
> Also multiple such "favourite" folder will be good to have.
For the cd command, you may use the $cdpath colon-separated list, see
`man zshparam'
Best regards,
--
Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author