Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Autocomplet with compdef _precommand
- X-seq: zsh-users 21825
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Autocomplet with compdef _precommand
- Date: Tue, 30 Aug 2016 20:45:42 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=ONjtlS1fKtKaD2ikKW36aLVmjK0VgW/tu3PepWrHh60=; b=T7pYPm8SFcuwrE6T9JN5tXe2bukcAywGjfhlAyUzsEUNn1CtgYAQiktOUef65lK410 GTekO8wC8i0JiQU7P7iDfxykChBYhoHCPUDHMr/uUlvrS//VGrHNYKVnR0aiMXCW/vRI bbnRAMxNgz36BTGjcXPWL3bD+V8ChFMlV7jqDkyYIMRdHEMzOLq6aXuPoRTwddiVpXN8 nOwkt7glF/3nwLOpvcJaiHxr3urPAaHaZVTvNjVf+Kw437Ol6j91rl2/lO0K2osZ5d5I t5MfPAJ8ZAWuiG58sc+VASlSt4JY9h5bWg+NUYBnLj0xxM8qomK9X/M931v0vli1TL/B RRLw==
- In-reply-to: <20160831023510.GB30557@fujitsu.shahaf.local2>
- 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: <CADprNY=V7FJPkpFQGSLfTVN=qTE5R-pQaHQ3Y3qN3PpD2GLYew@mail.gmail.com> <160830105636.ZM25657__30145.0480045334$1472579856$gmane$org@torch.brasslantern.com> <20160831023510.GB30557@fujitsu.shahaf.local2>
On Aug 31, 2:35am, Daniel Shahaf wrote:
} Subject: Re: Autocomplet with compdef _precommand
}
} Bart Schaefer wrote on Tue, Aug 30, 2016 at 10:56:36 -0700:
} > Question for zsh-workers: Is it worth adding a style to _precommand
} > to selectively turn off autocd? If so, what should it be called?
}
} Isn't that already possible? -
}
} zstyle -e :completion::complete:-command-:: tag-order \
} '(( $precommands[(I)start] )) && reply=("!local-directories" -)'
It would be nice not to need to use -e and to know about $precommands.
E.g. I was asking about something like
zstyle :completion::complete:precommand-start:: autocd off
Or perhaps
zstyle :completion::complete:precommand-start:: localoptions noautocd
which would be a more generic style name that other cases might use. But
what to make the context is also a problem.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author