CVS: setedit/setedit editmain.cc,1.63,1.64 editmenu.cc,1.21,1.22
Brought to you by:
set
From: Salvador E. T. <se...@us...> - 2003-04-24 19:25:07
|
Update of /cvsroot/setedit/setedit/setedit In directory sc8-pr-cvs1:/tmp/cvs-serv18835/setedit Modified Files: editmain.cc editmenu.cc Log Message: * At last!! finally I added some basic supoprt for TAGS. I had some code I wrote in 1998, but I discarded it because ectags changed a lot. Currently you can setup which tag files to use (the list isn't stored to disk) and do a search pressing ^F2, for repited entries you'll even be able to jump to the line where the symbol is defined, but in most cases the position is obtained using regex and it isn't implemented yet. Be careful that's really experimental. Also: forget about using it if the editor is linked with efence and the tags file is big. I tried it with a 1.1 MB file and the editor died after eating more than 240 MB of memory (efence seems to need real memory, not swap). Index: editmain.cc =================================================================== RCS file: /cvsroot/setedit/setedit/setedit/editmain.cc,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** editmain.cc 21 Apr 2003 18:30:08 -0000 1.63 --- editmain.cc 24 Apr 2003 19:24:28 -0000 1.64 *************** *** 702,706 **** } } ! void TSetEditorApp::handleEvent( TEvent& event ) { --- 702,706 ---- } } ! void TagsBrowseAll(); void TSetEditorApp::handleEvent( TEvent& event ) { *************** *** 1038,1041 **** --- 1038,1049 ---- case cmeSaveAll: SaveAllEditors(); + break; + + case cmeTagFiles: + EditTagFiles(); + break; + + case cmeSearchTag: + SearchTag(GetWordUnderCursor(80)); break; Index: editmenu.cc =================================================================== RCS file: /cvsroot/setedit/setedit/setedit/editmenu.cc,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** editmenu.cc 21 Apr 2003 18:25:38 -0000 1.21 --- editmenu.cc 24 Apr 2003 19:24:29 -0000 1.22 *************** *** 303,312 **** _("Sc~r~oll Up") _("Scroll ~D~own") - // Colors Window - _("~G~roup") - _("~I~tem") - _("~F~oreground") - _("~B~ackground") - _("~T~ry") _("Cop~y~ to file Clipboard") _("Paste ~f~rom file Clipboard") --- 303,306 ---- *************** *** 316,318 **** --- 310,314 ---- _("Sa~v~e as DOS...") _("S~h~ell") + _("T~a~g files ...") + _("Jump ~t~o symbol") #endif |