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

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



On 24 September 2016 at 20:43, Lawrence Velázquez <larryv@xxxxxxxxxxxx> wrote:
>> On Sep 24, 2016, at 1:55 PM, Vadim Zeitlin <vz-zsh@xxxxxxxxxxxx> wrote:
> I posit that it is not the shell's responsibility to guess file types
> just so an editor will show the right colors.

What vim does is a fancy ignorable thing for some, what other program
might do might not be. Extensions are vital parts of file names.

I'm doing git ls-tree and feed selected blob to $EDITOR =( ). Bam,
Github's "Browse files" implemented. Will be crying having to move to
mktemp or something different, =( ) "idiom" is great. But I rather
leave this as it is, user will rather not be offended when doing :w
~/extracted_file.java or :set ft=java. Extension-aware =( ) would be a
masterpiece feature for Zsh, though, IMO.

Best regards,
Sebastian Gniazdowski



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