The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 4th, 2024, 11:58am
Pages: 1
Send Topic Print
Changing the text editors in Artist (Read 19537 times)
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Changing the text editors in Artist
Feb 08th, 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
Back to top
 
 
View Profile WWW   IP Logged
Frank Wiedmann
Community Fellow
*****
Offline



Posts: 678
Munich, Germany
Re: Changing the text editors in Artist
Reply #1 - Feb 8th, 2006, 11:35pm
 
Just add the command to your .cdsinit file.
Back to top
 
 
View Profile WWW   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Changing the text editors in Artist
Reply #2 - Feb 9th, 2006, 1:04am
 
Any suggestions on how to change the read-only file viewer?

-Ken
Back to top
 
 
View Profile WWW   IP Logged
bernd
Senior Member
****
Offline



Posts: 229
Munich/Germany
Re: Changing the text editors in Artist
Reply #3 - 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
Back to top
 
 

Just another lonesome cad guy
View Profile WWW   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Changing the text editors in Artist
Reply #4 - 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.
Back to top
 
 
View Profile WWW   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Changing the text editors in Artist
Reply #5 - 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
Back to top
 
 
View Profile WWW   IP Logged
jbdavid
Community Fellow
*****
Offline



Posts: 378
Silicon Valley
Re: Changing the text editors in Artist
Reply #6 - 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
Back to top
 
 

jbdavid
Mixed Signal Design Verification
View Profile WWW   IP Logged
lrc
Junior Member
**
Offline

Grrr....

Posts: 11
U.S.A
Re: Changing the text editors in Artist
Reply #7 - Oct 19th, 2006, 6:03pm
 
setenv CDS_TEXT_EDITOR xemacs
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.