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:44:08 +0200	[thread overview]
Message-ID: <CAKc7PVAXct5FPBd0GP2S6+-SSXWUjvE3K4-PjFk_4zhZXDVnHQ@mail.gmail.com> (raw)
In-Reply-To: <2225F03B-B940-40CF-8582-2FF912CA01E6@macports.org>

On 24 September 2016 at 22:36, Lawrence Velázquez <larryv@macports.org> wrote:
>> On Sep 24, 2016, at 4:14 PM, Sebastian Gniazdowski
>> <sgniazdowski@gmail.com> wrote:
>> Yeah, one of such programs is Vim and it fails recognizing e.g.
>> ctags/awk.c as ft=zsh.
>
> Then vim's file detection logic needs work. (Or maybe your vim is not
> configured correctly. I downloaded ctags literally 30 seconds ago and
> opened awk.c, and my vim set filetype=c correctly.) Not zsh's problem.

I looked at the temporary file and it has "zsh" in it, my fault. Vim
probably doesn't check for ".zshrc" / ".zshenv" but for *zsh*. But if
I did cp awk.c ~/O3R9qv; vim ~/O3R9qv then it didn't detect the file
type.

> A few lines (of C!) to reliably detect dozens/hundreds/thousands of file
> formats? Okay.
>
> (FWIW, file(1) -- a whole program/library made expressly for this
> purpose -- gives me hilariously bad results on a regular basis.)

If someone approaches this or if a green light will be given I might try

Best regards,
Sebastian Gniazdowski


  reply	other threads:[~2016-09-25  3:48 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
2016-09-24 20:36           ` Lawrence Velázquez
2016-09-24 20:44             ` Sebastian Gniazdowski [this message]
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=CAKc7PVAXct5FPBd0GP2S6+-SSXWUjvE3K4-PjFk_4zhZXDVnHQ@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).