From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11920 invoked by alias); 25 Sep 2016 03:48:02 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21972 Received: (qmail 22293 invoked from network); 25 Sep 2016 03:48:02 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f172.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.220.172):SA:0(1.1/5.0):. Processed in 0.300638 secs); 25 Sep 2016 03:48:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=DATE_IN_PAST_06_12, FREEMAIL_FROM,SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.172 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XLMG7e4gzVwfHjzu0hVr4A5x64AovuiAAqR1gOi/zU8=; b=hOy0UWP8ZVfUOECnF9gFt36/dRKW+SOM1KOObJZrBdJEbRWIe9sWwyV2U8/36MJIcs W5686HxM2DvVKIDbSI62irogRwkeH3Y096+v1xV7T8vB9YFvk1f5j94U3X0No2KS1ZsX nFxOkVTntCyMluiCdZ8T6zVn2y66TIUqB8yJqa9yoZvvZogGC4Nx/X7oDxRPuGg+UJb5 hHj4PaP95/q4mKuot6/aW9eZEoJM398KZrpHVZC46Y3bC4zu2mTxOPzHBY3o6ldWsz7B k+tiymnGZTG0M9auBD04NYbwkBjZy0JXX7yK/jAQHmKgSwfs7QE2JxEMYNJnhDihClUo kJYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=XLMG7e4gzVwfHjzu0hVr4A5x64AovuiAAqR1gOi/zU8=; b=Ba7+EW1xDIwi0fymNag3piWo/ViYV0bBN+1BTvTSlBjMVLvlrc01LiGtGgFXeVD1eC FtJVL6kI4dPq4e8LlrmOltQ6Us6A0AhTaU4CthUxnsbZznplu1B/IGHSr9dfdyPHBo07 TND9M28JhzDSe+aSrTO+aqNWv3QYiYizB6HRh2tjlhVL2JUNWgYoVZDqwWKj1b2FIxpu TRmbVl1nbyAkhTmYgIO0el4rSaG+xrSJCmORoZZrMx2/wXOEzy4swLxJz8zv+8ai3Qox TDOjW5S4Y7MZEoYC9XFaGLArXu8G/ACCYh+Xed7A068+LxgKMB+ZjIQrWo93FgmYFmMf FrBg== X-Gm-Message-State: AA6/9Rm5tfog+jwcd84+9BgfCIYHFfYYc/bulJp/cCM4ype33QwvVf7+n2d7++LPuHBTCvliEMx9PKfkRUxDeg== X-Received: by 10.55.170.215 with SMTP id t206mr14110138qke.42.1474749868938; Sat, 24 Sep 2016 13:44:28 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <2225F03B-B940-40CF-8582-2FF912CA01E6@macports.org> References: <4DC55226-A041-42E5-B8B1-3AB1E7E6AB53@macports.org> <2225F03B-B940-40CF-8582-2FF912CA01E6@macports.org> From: Sebastian Gniazdowski Date: Sat, 24 Sep 2016 22:44:08 +0200 Message-ID: Subject: Re: Feature request: set extension for =( ) created file To: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 24 September 2016 at 22:36, Lawrence Vel=C3=A1zquez wrote: >> On Sep 24, 2016, at 4:14 PM, Sebastian Gniazdowski >> wrote: >> Yeah, one of such programs is Vim and it fails recognizing e.g. >> ctags/awk.c as ft=3Dzsh. > > 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=3Dc 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