Re: Multiple actions for -do command line option

Tony Balinski <[email protected]> Mon, 24 Jan 2011 07:59:10 +0100
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
Try including newlines in your -do argument:
   nedit -do 'find("TARGET")
   set_cursor_pos($selection_end)' thefile
A number of patches allow a ";" as a command separator. Let us know  
how you get on.
Tony



On Jan 23, 2011, at 1:28 PM, "[email protected]" <[email protected]>  
wrote:

> Hi there
>
> Newbie question here, although I promise I have looked for the
> answer... Basically is it possible to put multiple actions under the -
> do command line option?
>
>
>
> I am running Nedit from a REXX script running on Solaris 8 (SPARC) and
> call the editor to allow users to enter details into an options file.
> Once the user saves & quits control returns to the REXX script that
> then reads the options file and checks the validity of the user input
> data.  If out of range or invalid data has been entered a message is
> written to the screen and the user is returned to the options file via
> nedit with the cursor placed at the offending data item.  This all
> works with uni-Xedit but I am struggling getting it to work with
> Nedit.  I think I want to invoke the editor with something like;
>
>
>
> nedit -do 'find("TARGET")' NAME_OF_OPTION_FILE
>
>
>
> where TARGET is the 'tag' against which the user entered erroneous  
> data
> i.e. 'MONTH='
>
> Whilst the above works I really want the editor to place the cursor
> and/or select the erroneous text entered by the user ready for instant
> over-typing.  However, I reckon I need a second command following the
> find command for that.  Seperating commands by commas, semi-colons
> doesn't work and none of the examples I have seen show multiple
> commands for the -do option.
>
>
>
> Thanks in advance of any help you can give
>
> Ian
> -- 
> NEdit Discuss mailing list - [email protected]
> http://www.nedit.org/mailman/listinfo/discuss
>
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss