delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/07/12:10:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Date: Fri, 7 May 2010 18:09:54 +0200 (CEST)
From: Luc Hermitte <hermitte AT free DOT fr>
To: lood <loodzieknvm AT yahoo DOT com>
Cc: cygwin AT cygwin DOT com
Message-ID: <8358945.15754861273248594484.JavaMail.root@spooler3-g27.priv.proxad.net>
In-Reply-To: <28472301.post@talk.nabble.com>
Subject: Re: Text editor with shell integration
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-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Hello,

"lood" <loodzieknvm AT yahoo DOT com> wrote :

> How could I integrate my text editor (e.g. Notepad++) to run
> it easily from Cygwin? I mean, something similiar 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.

I have written cyg-wrapper.sh to answer this need.
    http://hermitte.free.fr/cygwin/#Win32

The alias I give as example in the documentation is for gvim.

If your editor does not have special parameters that must not be 
handled as pathnames that need translation, you can simply play
with $(cygpath -l "$@") as others have already told you.

HTH,

-- 
Luc Hermitte
http://lh-vim.googlecode.com/
http://hermitte.free.fr/vim/

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