delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/07/11:44:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
X-IronPortListener: Outbound_SMTP
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
CC: "'Csaba Raduly'" <rcsaba AT gmail DOT com>
Date: Fri, 7 May 2010 11:43:51 -0400
Subject: RE: Text editor with shell integration
Message-ID: <0105D5C1E0353146B1B222348B0411A208E108C119@NIHMLBX02.nih.gov>
References: <28472301 DOT post AT talk DOT nabble DOT com> <z2i1ef5a52f1005060458v722da89iddf33bb1ff0206c7 AT mail DOT gmail DOT com>
In-Reply-To: <z2i1ef5a52f1005060458v722da89iddf33bb1ff0206c7@mail.gmail.com>
MIME-Version: 1.0
X-IsSubscribed: yes
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

Csaba Raduly sent the following at Thursday, May 06, 2010 7:59 AM
>On Thu, May 6, 2010 at 1:22 PM, lood wrote:
>> Hi all. How could I integrate my text editor (e.g. Notepad++) to run
>> it easily from Cygwin?  I mean, something similar to "notepad
>> ./file.ext" - this works, I just want to use Notepad++ instead of
>> standard Windows editor ("notepad++ ./file.ext" or something like
>> that).  Where I can add this functionality?  Thanks.
>
>Do you want something like this?
>
>/cygdrive/c/Program\ Files/Notepad++/notepad++.exe ./file.ext &

Or maybe this bash shell function (in .bashrc).

notepad ()
{
    cygstart -d "$(dirname "$1")" '/cygdrive/c/Program Files/Notepad++/note=
pad++.exe' "$(cygpath -w "$1")"
}


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