zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: "Lawrence Velázquez" <larryv@macports.org>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Feature request: set extension for =( ) created file
Date: Sat, 24 Sep 2016 22:14:17 +0200	[thread overview]
Message-ID: <CAKc7PVB4dzK9Kpeco-aXvocr9i569AhOr8n7_AqFH3FDyxSZDQ@mail.gmail.com> (raw)
In-Reply-To: <A69FBAB9-747D-450C-8355-990DEB759801@macports.org>

On 24 September 2016 at 21:55, Lawrence Velázquez <larryv@macports.org> wrote:
>> On Sep 24, 2016, at 3:30 PM, Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
>>
>> 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.
>
> Not really. Any competently written program that cares about the
> structure of its input has some other way of validating said structure,
> like actually parsing it or checking for a file signature / header
> / magic number. Programs that process stdin already have to do this.

Yeah, one of such programs is Vim and it fails recognizing e.g.
ctags/awk.c as ft=zsh.

>> Extension-aware =( ) would be a masterpiece feature for Zsh, though,
>> IMO.
>
> Unless it were implemented using libmagic or something, I would consider
> it a massive waste of time and effort.

What time and effort? I guess it can be a beautiful few lines patch.
Modify name of file? Something like strcat. Parsing clever syntax that
would provide the extension? Also possibly basic.

Best regards,
Sebastian Gniazdowski


  reply	other threads:[~2016-09-24 23:02 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-24 17:51 Sebastian Gniazdowski
2016-09-24 17:55 ` Vadim Zeitlin
2016-09-24 18:43   ` Lawrence Velázquez
2016-09-24 19:30     ` Sebastian Gniazdowski
2016-09-24 19:55       ` Lawrence Velázquez
2016-09-24 20:14         ` Sebastian Gniazdowski [this message]
2016-09-24 20:36           ` Lawrence Velázquez
2016-09-24 20:44             ` Sebastian Gniazdowski
2016-09-24 21:06               ` Lawrence Velázquez
2016-09-24 21:24                 ` Bart Schaefer
2016-09-24 21:58                   ` Lawrence Velázquez
2016-09-25  0:05           ` Nikolay Aleksandrovich Pavlov (ZyX)
2016-09-25  5:17             ` Bart Schaefer
2016-09-25  6:17               ` Sebastian Gniazdowski
2016-09-25 15:21                 ` Lawrence Velázquez
2016-09-26 18:03                 ` Bart Schaefer
2016-09-25 16:58               ` Nikolay Aleksandrovich Pavlov (ZyX)
2016-09-25 22:37                 ` Bart Schaefer
2016-09-24 21:06         ` Bart Schaefer
2016-09-24 18:56   ` Sebastian Gniazdowski
2016-09-24 18:22 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKc7PVB4dzK9Kpeco-aXvocr9i569AhOr8n7_AqFH3FDyxSZDQ@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=larryv@macports.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).