The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Other CAD Tools >> Entry Tools >> Changing the text editors in Artist
https://designers-guide.org/forum/YaBB.pl?num=1139434902

Message started by Ken Kundert on Feb 8th, 2006, 1:51pm

Title: Changing the text editors in Artist
Post by Ken Kundert on Feb 8th, 2006, 1:51pm

Can anyone tell me how to set the default text editors used by Artist. In http://www.designers-guide.org/Forum/YaBB.pl?num=1127746857/8#8 Andrew shows how to change the editor by typing "editor=nedit" into the CIW, but I was hoping how to use the .cdsenv file to configure Artist to always use the editor I wanted, and I particularly wanted to find out how to change the text viewer (the thing it uses to show read-only files).

-Ken

Title: Re: Changing the text editors in Artist
Post by Frank Wiedmann on Feb 8th, 2006, 11:35pm

Just add the command to your .cdsinit file.

Title: Re: Changing the text editors in Artist
Post by Ken Kundert on Feb 9th, 2006, 1:04am

Any suggestions on how to change the read-only file viewer?

-Ken

Title: Re: Changing the text editors in Artist
Post by bernd on Feb 9th, 2006, 2:05am

For Artist I think this is not that trivial.
The only way I believe could work is to change the default Artist menu
callbacks in the e.g the 'spectre.menus' file found under
<installdir>/tools.lnx86/dfII/etc/tools/menus
or put a copy of it under your
- <workingDir>/menus/
- $HOME/menus
directory, you have to create the 'menus' directory first.

For editing rather than displaying the netlist the modified callback
could look like this:

modified 'spectre.menus' file entry for editing the netlist:
("Display" ?callback (edit (strcat (asiGetNetlistDir (asiGetCurrentSession)) "/input.scs" )))

original 'spectre.menus' file entry for displaying the netlist:
("Display" ?callback (sevNetlistFile ',session 'display) ?form t)

Bernd

Title: Re: Changing the text editors in Artist
Post by Andrew Beckett on Feb 9th, 2006, 3:46am

Ken,

There are PCRs galore on this. Unfortunately whilst many people dislike the default viewer, some applications use the fact that you can do fancier things when selecting stuff in the viewer. That said, most applications just use it as a simple viewer.

There isn't a global setting for this, and the most likely scenario is that some applications will start to allow other editors to be used instead. But right now, I don't think you can control this except by hacking, as Bernd said.

Any specific viewer case that you want to change?

Regards,

Andrew.

Title: Re: Changing the text editors in Artist
Post by Ken Kundert on Feb 9th, 2006, 11:04am

Andrew,
   At this point I can be considered an old dog, and it is hard for me to learn new tricks. I find having a completely different interface for viewing a file and editing a file problematic. Whenever I open the file for viewing I find myself trying to use vi commands, such as the motion or searching commands. When they don't work, I remember that it is more of a GUI based ui, and go back to that, but I find it very cumbersome. And of course I do it every time because I am both editing and viewing files. So I was hoping to set the editor to vi and the viewer to view.

Thanks to all of you for your help.
-Ken

Title: Re: Changing the text editors in Artist
Post by jbdavid on Aug 3rd, 2006, 3:48am

And of course the AMS Environment (in the HED) DOES by default use vi unless your $EDITOR is set to something else.  so viewing an AMS netlist here DOES get you vi..
Which I find as painful (no "search bar" there either!!) as the built-in file reader..

I love the zippy scroll bar, and incremental search.. as I START to type my search term, the selection moves to the first match in the file.. really handy to get to the "section mos_6T_g" or to find the first definition or use of nchlvt_g in my modelfiles.. "model nchl" probably gets me close enoug to see and "model nchlvt_" gets me there !!

In spite of 3 intensive years using vi for all my verilogA - I've used nedit since 2000 and it just keeps getting better.. the built in reader HASN't gotten any better!

Jonathan

Title: Re: Changing the text editors in Artist
Post by LRC on Oct 19th, 2006, 6:03pm

setenv CDS_TEXT_EDITOR xemacs

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.