This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: File associations in Windows [was: Re: Invoking Cygwin vim from Windows Explorer]
- From: Jarno Malmari <jarno dot malmari at vincit dot fi>
- To: maxpolk at gmail dot com, cygwin at cygwin dot com
- Date: Tue, 11 Feb 2014 07:44:56 +0200
- Subject: Re: File associations in Windows [was: Re: Invoking Cygwin vim from Windows Explorer]
- Authentication-results: sourceware.org; auth=none
- 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> <52F83DBD dot 5030704 at gmail dot com>
On 10 February 2014 04:47, Max Polk <maxpolk@gmail.com> wrote:
> The first problem is that Windows file associations have to be a single exe with no arguments. When you run that file (double click in Explorer), Windows passes the filename to that single .exe program.
Not exactly true. There's just no good tool for it anymore shipped
with Windows. You can do this by editing registry or use a tool
similar to what I suggested in my earlier post
<http://cygwin.com/ml/cygwin/2014-02/msg00171.html>.
For instance, you can edit the default action "Open" which opens .txt
files with cygwin nano using mintty as terminal, on double click. More
conservative approach would be to add new non-default action "Open in
nano" and do the same by picking that from the right-click menu in
explorer.
--
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