You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Bob Archer <bo...@amsi.com> on 2009/10/22 15:41:25 UTC

configure Notepad++ as editor

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?

BOb

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: configure Notepad++ as editor

Posted by Bob Archer <bo...@amsi.com>.
> -----Original Message-----
> From: Andrey Repin [mailto:anrdaemon@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@subversion.tigris.org].

Re: configure Notepad++ as editor

Posted by Andrey Repin <an...@freemail.ru>.
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.


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 23.10.2009, <4:00>

Sorry for my terrible english...

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: configure Notepad++ as editor

Posted by Bob Archer <bo...@amsi.com>.
> >> > 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. 

BOb

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: configure Notepad++ as editor

Posted by Andrey Repin <an...@freemail.ru>.
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.


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 22.10.2009, <23:30>

Sorry for my terrible english...

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: configure Notepad++ as editor

Posted by Bob Archer <bo...@amsi.com>.
> 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.

BOb

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: configure Notepad++ as editor

Posted by Andrey Repin <an...@freemail.ru>.
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"

Or use console editors, like FAR manager.


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 22.10.2009, <20:41>

Sorry for my terrible english...

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].