zsh-users
 help / color / Atom feed
* suffix alias on a generated file name
@ 2019-12-13 13:32 zzapper
  2019-12-14 11:17 ` Daniel Shahaf
  0 siblings, 1 reply; 6+ messages in thread
From: zzapper @ 2019-12-13 13:32 UTC (permalink / raw)
  To: zsh-users

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<tab>
*(.om[1])<TAB>
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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-13 13:32 suffix alias on a generated file name zzapper
2019-12-14 11:17 ` Daniel Shahaf
2019-12-15 16:20   ` zzapper
2019-12-16  3:58     ` Daniel Shahaf
2019-12-17 10:02       ` zzapper
2019-12-17 10:14         ` Daniel Shahaf

zsh-users

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git