[Openroad-users] external Editor, continuation on Ians mail
Simon Lovell
simonl at unwired.com.au
Mon Mar 19 09:36:02 EST 2007
You must exit the editor so that the batch file can change the file back to its original name. The main thing that annoys me about doing it this way is that it adds another task to your taskbar, and my recollection is that it makes it possible to lose your whole script, otherwise a problem of yester year. Perhaps the last part wouldn't be too much of a problem if the original file were left in place.
If you do decide to go down this path, best option is to map your editor's save & close key to whatever you would've used for save. Obviously, you must be able to disable openning another file in the same instance of the editor for this approach to be usable.
-----Original Message-----
From: "Kim Ginnerup" [kgi at bording.dk]
Date: 16/03/2007 05:12 PM
To: "International OpenROAD Users" <openroad-users at peerlessit.com>
Subject: Re: [Openroad-users] external Editor, continuation on Ians mail
Put it into a bat file and rename the tempfile why haven't I thought of that.
But can OpenROAD figure that out on its way back ?
Kim
-----Oprindelig meddelelse-----
Fra: openroad-users-bounces at peerlessit.com [mailto:openroad-users-bounces at peerlessit.com] På vegne af Colin Hay
Sendt: 15. marts 2007 23:39
Til: International OpenROAD Users
Emne: Re: [Openroad-users] external Editor, continuation on Ians mail
We get around this (using EditPlus in this example) by
Setting II_WINDOWEDIT to C:\Progra~1\EditPl~1\ed.cmd %f %l %e %t -n
ed.cmd contains the following which renames the temp file to a more meaningful one
@echo off
cls
color F1
rem Invoke System Editor with Script Name in WindowTitle
rem ----------------------------------------------------
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º º
echo º OpenROAD - Edit Script. º
echo º º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
echo OR File - %1
echo Line No. - %2
echo Edit Cmd - %3
echo New File - %6.%4
if exist "%II_TEMPORARY%\%6.%4" del "%II_TEMPORARY%\%6.%4"
rename %1 "%6.%4"
echo.
echo Editor activated...
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º º
echo º Do not close this window !!! º
echo º º
echo º OpenROAD will close this window when editing has finished. º
echo º º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
rem Change your editior here...
c:\Progra~1\EditPl~1\EditPlus.exe %9 -cursor %2 "%II_TEMPORARY%\%6.%4"
copy "%II_TEMPORARY%\%6.%4" %1
echo.
Colin Hay
Fintechnix
-----Original Message-----
From: openroad-users-bounces at peerlessit.com [mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Kim Ginnerup
Sent: Thursday, 15 March 2007 11:39 PM
To: International OpenROAD Users
Subject: [Openroad-users] external Editor, continuation on Ians mail
I have started using SCite.
It is not as fancy as Ian describes, but it gives some syntax checking and context coloring.
The problem with external editors is the save before compile that can be quite irritating.
I have also used vim, but I like scite better.
A problem is the way that OpenROAD name the file extension.
.e01 .e02 .e03 ...
The dynamic part should be in the name and not the extension. That will make it much easier to integrate with external editors, because they often choose language-config based on the extension.
Kim
_______________________________________________
Openroad-users mailing list Openroad-users at peerlessit.com
To unsubscribe please click on this link mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
To subscribe please click on this link
mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
Specialist providers of back and front office systems for the financial services industry.
Featuring: Fintechnix(r)
Disclaimer:
Notice: This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it.
Any views expressed in this message are those of the individual sender,except where the sender specifically states them to be the views of Fintechnix Pty Ltd.
_______________________________________________
Openroad-users mailing list Openroad-users at peerlessit.com
To unsubscribe please click on this link
mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
To subscribe please click on this link
mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe
_______________________________________________
Openroad-users mailing list Openroad-users at peerlessit.com
To unsubscribe please click on this link
mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
To subscribe please click on this link
mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe
More information about the Openroad-users
mailing list