Clearcase view in macro
Tony Balinski
ajbj at free.fr
Wed Sep 24 06:10:21 CEST 2008
Quoting YT Lim <ytlim23 at yahoo.com.au>:
> Thanks Tony. That helps. It's a bit strange that the string returned is
> /view/cc_view_tag instead of cc_view_tag alone.
>
> /Y.T.
Oops, you're right: it cut off everything upto the last slash so:
clearcaseviewtag = replace_in_string(getenv("CLEARCASE_ROOT"), \
".*/", "", "regex", "copy")
should do the job. Either way CLEARCASE_ROOT is the environment variable
used,
Tony
> ----- Original Message ----
> From: Tony Balinski <ajbj at free.fr>
> To: General NEdit discussion list <discuss at nedit.org>
> Sent: Sunday, 21 September, 2008 1:38:26 AM
> Subject: Re: Clearcase view in macro
>
> Quoting YT Lim <ytlim23 at yahoo.com.au>:
>
> > Nedit currently displays active Clearcase view in the title bar and all
> > files opened in the same view go into new tabs of the editor. Is there a
> > way to retrieve the name of the Clearcase view in a macro?
> >
> > Regards,
> > /Y.T.
>
> Yes: clearcaseviewtag = getenv("CLEARCASE_ROOT")
>
> Tony
> --
> NEdit Discuss mailing list - Discuss at nedit.org
> http://www.nedit.org/mailman/listinfo/discuss
>
>
>
> Make the switch to the world's best email. Get Yahoo!7 Mail!
> http://au.yahoo.com/y7mail
> --
> NEdit Discuss mailing list - Discuss at nedit.org
> http://www.nedit.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list