From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id c14f01c7 for ; Fri, 13 Dec 2019 13:33:33 +0000 (UTC) Received: (qmail 10724 invoked by alias); 13 Dec 2019 13:33:23 -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: List-Unsubscribe: X-Seq: 24522 Received: (qmail 12715 invoked by uid 1010); 13 Dec 2019 13:33:23 -0000 X-Qmail-Scanner-Diagnostics: from 195-159-176-226.customer.powertech.no by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25656. spamassassin: 3.4.2. Clear:RC:0(195.159.176.226):SA:0(1.1/5.0):. Processed in 1.853373 secs); 13 Dec 2019 13:33:23 -0000 X-Envelope-From: gcszu-zsh-users@m.gmane.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at m.gmane.org does not designate permitted sender hosts) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: suffix alias on a generated file name Date: Fri, 13 Dec 2019 13:32:37 -0000 (UTC) Organization: Your Company Message-ID: User-Agent: Xnews/2009.05.01 X-Antivirus: Avast (VPS 191212-2, 12/12/2019), Outbound message X-Antivirus-Status: Clean Hi I want to open the most recently editted text file with vim using a suffix alias alias -s txt='gvim' alias NF='*(.om[1])' touch fred.txt NF *(.om[1]) So double-tabbing will then exercise the suffix alias and open fred.txt in gvim. BUT how do I do that without the manual TABing? -- zzapper https://twitter.com/dailyzshtip