Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Feature request: set extension for =( ) created file



On Sat, 24 Sep 2016 19:51:26 +0200 Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:

SG> Hello,
SG> when e.g. editing a file directly from git:
SG> 
SG> vim =( git -C /home/user/github/proj.git cat-file blob 1e08920 )
SG> 
SG> One will not get proper syntax highlighting because the file will be
SG> e.g.: /tmp/zshoF8Hlc, without extension like .java.

 How could the shell possibly do anything that would be better than the
usual workaround of

	vim -c 'setf java' =(...)

? You would still need to specify the extension somehow and specifying the
file type for Vim directly is exactly as simple and doesn't require any
changes to the shell.

 Regards,
VZ

Attachment: pgpQR8nBJoTZy.pgp
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author