X-Recipient: archive-cygwin@delorie.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@free.fr>
To: lood <loodzieknvm@yahoo.com>
Cc: cygwin@cygwin.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
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hello,

"lood" <loodzieknvm@yahoo.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

