delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/09/20:50:39

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=uB3YOxbH44HG7Jxp
TjWS9xQJTh6nmX7P329Vh1SxE8F1FezjNxxLdjz4ig5sUVrZ3ZJWiOhLrrXKAFkk
Y69HBEBhCgVg5DbrJMTvd/E1sidzx8RJ7Yg8+pe3ZoBhiC78TIpA4V2NRkMwD5gz
xc3VOzqbOTNhej7p0FVSN/8NMiQ=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=/j0S+qdao2sxoyOy8fGWDw
vPotE=; b=XgyJx/P/yS9Yb64cBhFhROaEJIk9+ph8wPWJ4nGiU2eywIn/MDodNN
3qw7OhVFClo9xEsOThRsrfFsyBD1zN3bMmN1Tk2qmrcLL8G8h8ZtiTyICwFomMk7
c93K6ayiSO030Td0ovvAsUSZaimzMyjvLX+rRiDYT6PbZz5uFH7tc=
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.6 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Mon, 10 Feb 2014 05:49:16 +0400
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <1798057018.20140210054916@mtu-net.ru>
To: carolus <worwor AT bellsouth DOT net>, cygwin AT cygwin DOT com
Subject: Re: Invoking Cygwin vim from Windows Explorer
In-Reply-To: <ld92t1$jr1$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> <832507782 DOT 20140209183702 AT mtu-net DOT ru> <ld8cs9$789$1 AT ger DOT gmane DOT org> <1935757972 DOT 20140210000737 AT mtu-net DOT ru> <ld8s07$cie$1 AT ger DOT gmane DOT org> <1917455121 DOT 20140210021657 AT mtu-net DOT ru> <ld92t1$jr1$1 AT ger DOT gmane DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, carolus!

>> Just create a shell link in your personal "Send To..." folder with specified
>> command. On Windows XP, it is in "%USERPROFILE%/SendTo". Dunno about other,
>> This way, even though a bit convoluted, allow you to edit ANY file with your
>> chosen program. Regardless of extension, and even in absence of it, as it is
>> the case for many traditional shell scripts.

>    On Windows 7, %USERPROFILE$ points to my user folder.  But I get an 
> "access forbidden" message if I try to open the SendTo subdirectory from 
> Explorer.

It's likely a symlink... Let me find my netbook.

It's in "%AppData%/Microsoft/Windows/SendTo"

> There is no option to right-click and elevate, and I get the 
> same "access forbidden" message even if I switch to an administrator 
> account. Strangely, I can open that directory from the command line, but 
> the only way I know how to create a Windows link is by right-click 
> drag&drop from the GUI.

Yeah. Just make a copy of default Cygwin shortcut in SendTo, and edit it's
command line to suit your needs.

>>>> >>  I.e. just make an association to open a file with vi(m). In a usual Windows way.
>>> >  The only "usual Windows way" I know is for windows executables.
>> Cygwin applications are (surprize!) windows executables

> But not "normal" executables in the sense that they run when you click 
> on them from Explorer.

There's no more or less "normal" windows executables.

> Somehow you have to get into cmd.exe first.
No.

> And then you need to get the path and filename into vim.

As I said, you can just drop a file you want to edit over vim.exe and it'll
open it. In regular console, that's right, but it works.
If you want mintty instead of regular console, you gotta work for it a little
harder. 

> This is getting too complicated for a nonprogrammer like myself.

> Probably the subject is best dropped.  It is more a Windows problem than 
> a Cygwin one, and I have been getting by with the clumsy method for the 
> last ten years.  I just thought there might be an easy fix. Thanks for 
> the help.

One day, you ought to learn something to make your life easier. Why not start
today?


--
WBR,
Andrey Repin (anrdaemon AT yandex DOT ru) 10.02.2014, <05:38>

Sorry for my terrible english...


--
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