delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/09/10:10:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=Xi
i1IAOmFRiVma30yWov/GVDxbfT0BInSpOrctfKFj05KEdjg+ckakKw2ki/v//893
c20Tu/AG5P7GZ/1bncQGjRsbiCNCBNwDXKR/i88uBVfqdsCLtDI4zDd51WOvBflv
xpwf33BrELCPN09KdKWEQmeWZkjGOQ0mDy6nhTJ68=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=23ACm95u
M2bWq74gdg3miUMeBaM=; b=em6nP8crhgFbYfLITDxQkN6r8S9HSRwqy0b9m74l
XitLDfYai38tCa/F+PXm8fO1KAd0vdbS2xtBCcg7UEnfwkRl6r/IAB3uV+RG8R59
XwQcF9olG6HswxDW6pO2xHVumkq6hVTL2HtiQ+o/X/ZOnmE/Q5w5qfqQ/hx4Ru2h
LvM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2
X-HELO: mail-we0-f172.google.com
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:date :message-id:subject:from:to:content-type; bh=o+6+mNR0GweRIoliDNuNtdX7iGtUIOvzr1JgFljcMb8=; b=FfwtTCoJwvLsiDZ2WCMyiCxYnvW3z7qOrzfTI+29zURorawrFNPMAfg6tf+uCl36dW RCDzpyYsxquFgzPaC7sJgN9qCziI94/ige6Huene1brU/vMl9KKaFmBqnKVE35AJ1ngU vJ4+iloIgd6PFRix0W1qmcHNsJrZ3m20re39f4QnD7JHkbVnWQnF9TrL87SwVk+5UrLI +2qkATtaf2pJe6ggnPfr4DU0ovXnVeQlfW9OJS5rn9E/96cMIwU+szOpitxFiSehH7Ma gGvwoyQovi3vo7PAi5uQ6Ql3F5mN1XasqOXkVDzA+sDXqlSBvsDJuRGOi+NFj894fwGg nQbw==
X-Gm-Message-State: ALoCoQnYd4tRB1kHSeXmnPR1iqVNRWAsjWO0LNVeg4TooTqeHiYxo2r6mBHbKBUGM2y4kGuu+BDU
MIME-Version: 1.0
X-Received: by 10.180.189.169 with SMTP id gj9mr7100642wic.17.1391958606125; Sun, 09 Feb 2014 07:10:06 -0800 (PST)
In-Reply-To: <ld81nr$im5$1@ger.gmane.org>
References: <ld6vd9$jnr$1 AT ger DOT gmane DOT org> <1527769059 DOT 20140209090943 AT mtu-net DOT ru> <ld81nr$im5$1 AT ger DOT gmane DOT org>
Date: Sun, 9 Feb 2014 17:10:06 +0200
Message-ID: <CAAM7ENk4==zyHXps5oXHEbEC+djEm9kC7tYqONRZB4QqXNK3tQ@mail.gmail.com>
Subject: Re: Invoking Cygwin vim from Windows Explorer
From: Jarno Malmari <jarno DOT malmari AT vincit DOT fi>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

> I don't know how to pass the filename and directory from an Explorer
> left-click to a Cygwin shell script. (I'm not a programmer, just a dumb
> engineer.)
I'd suggest you use http://defaultprogramseditor.com/ to either change
existing "Open" action for .txt files or to create a new one.
Start the app and go to the context menu settings for .txt files. For
the "Program path", use something similar to
    C:\cygwin64\bin\mintty.exe" --exec C:\cygwin64\bin\vim  "%1"

Pro tip: if you intend to use network shares by IP address, e.g.
"\\192.168.0.2\share\mytxtfile.txt", set the environment variable
CYGWIN to include "noglob". Otherwise Cygwin's file name globbing
breaks your path argument.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019