[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: configure Notepad++ as editor

From: Bob Archer <bob.archer_at_amsi.com>
Date: Fri, 23 Oct 2009 09:58:20 -0400

> -----Original Message-----
> From: Andrey Repin [mailto:anrdaemon_at_freemail.ru]
> Sent: Thursday, October 22, 2009 8:03 PM
> To: Bob Archer; Bob Archer
> Subject: Re: configure Notepad++ as editor
>
> Greetings, Bob Archer!
>
> >> >> > I am trying to set up my client so that it uses Notepad++ as
> the
> >> >> editor.
> >> >>
> >> >> > I have modified the config file and set it as follows:
> >> >>
> >> >> > editor-cmd = "/Program Files (x86)/Notepad++/notepad++.exe"
> >> >>
> >> >> > When I issue something like:
> >> >>
> >> >> > svn pe snv:mergeinfo .
> >> >>
> >> >> > The editor does open with the property values shown. But after
> >> about
> >> >> 5
> >> >> > seconds my editor tells me that the file svn-prop.tmp is
> gone...
> >> and
> >> >> when I
> >> >> > look at the cmd line it is at the command prompt again. Is
> there
> >> >> something
> >> >> > special I need to do to tell it to wait until I close the
> editor?
> >> >>
> >> >> Use bat file with something like
> >> >> start /wait "C:/Program Files (x86)/Notepad++/notepad++.exe"
> >> >>
> >>
> >> > That doesn't work. It just seems to open another cmd window... it
> >> never
> >> > opens the editor. If I close the cmd window it asks me about
> >> terminating the
> >> > batch. If I add a %1 to what you put above it tries to open the
> .tmp
> >> file
> >> > and wants me to find an app to open it with.
> >>
> >> ...
> >> Well... consider you caught me in a good mood.
> >>
> >> @echo off
> >> start "" /wait "C:/Program Files (x86)/Notepad++/notepad++.exe" %*
> >>
> >> "start /?" actually tell you this.
> >>
>
> > Thanks for that. But, it puts me right back where I started when I
> wasn't using the bat file.
>
> Then you did something wrong, or you did not gave the correct
> information to
> SVN. When you tell start to wait, it WILL wait until the launched
> process
> exits. I'm not using Notepad++ myself, can't tell if it has any non-
> standard
> behavior by itself. Far has much better editor for all my needs.

Well, my goal is not to change editors.

Anyway, I figured it out. Notepade++ is a tabbed editor. So, when it was already opened I had the problem. There is a command line switch to tell it to open a new instance. When I added that it all started working. I don't even need the batch file. Thanks for your help.

For others than may want to do this here is the final editor-cmd in my config file:

editor-cmd = "/Program Files (x86)/Notepad++/notepad++.exe" -nosession -multiInst

BOb

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2410649

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-23 15:59:21 CEST

This is an archived mail posted to the Subversion Users mailing list.