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]" To: "cygwin AT cygwin DOT com" CC: "'Csaba Raduly'" 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> In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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