From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4417 invoked by alias); 16 Sep 2011 14:07:07 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16374 Received: (qmail 7160 invoked from network); 16 Sep 2011 14:06:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9RsukJqyQrH/kA/GOZszoGEJqyW642sRYS6Iw36AXFA=; b=GiV6DK8tqNlBao10GHnQbG2tZ94a6oKKDr6VuDpKncaVCMtdZMAia59epBZQ9SsVMq kp9bnCxYlI0sEFZXcsPEEz88n4dgZ03Jx66LfN5uoaPxloKX4ZVSQEw4YLRxKFyJPe7x AW6pjMuLsXhrHBqEkNv4+t8nI7PbmOTkinRww= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 16 Sep 2011 16:06:45 +0200 Message-ID: Subject: Re: Customizing completion, omit urls From: Mikael Magnusson To: Daniel Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 16 September 2011 15:01, Daniel wrote: > Newbie to zsh here, > > Is it possible to make the mplayer completion omit urls? I don't want > those emtpy cdda://, file: etc. I am looking at the source, but cannot > really discern wether I can use zstyle to modify tags/requested > urls/files in some way. zstyle ':completion:*:mplayer:argument*' tag-order '! urls' This will still offer the protocols when you're completing in an empty directory, if you don't want that, you can do this instead: zstyle ':completion:*:mplayer:argument*' tag-order - '! urls' -- Mikael Magnusson