The Options Dialog
The Options Dialog is where you specify what external editor you want to use for editing files. Here is what it looks like:

Specifying and external editor
The dialog has a drop-down combo box for editor selection. You may also type a new editor into the list if your favorite is not there. There is currently no support for saving this information, so you will either have to re-edit the information every time you open a new KGrep application (it is remembered for the entirety of the current session), or you can edit the source file kgrepoptiondlg.cc and recompile your binary (by typing make at the command line in the kgrep/src directory). If you do this, be sure to copy the new executable to the bin directory where all your KDE apps reside or you won't see your editor in the list.

If your editor supports specifying the line number to open the file at on the command line, type the argument in here. For instance, if I do man vi from the command line in a konsole window, under OPTIONS I find:

               +[num]      For the first file the cursor  will  be  posi-
                           tioned  on  line  "num".  If "num" is missing,
                           the cursor will  be  positioned  on  the  last
                           line.
        
Therefore, a + sign goes in the Line Number Argument Specifier field. Some editors, such as kwrite, do not support opening a file at a specific line. If that is the case, simply leave the field blank. If, when you click the Edit File button, you get a file with a number in it, that means you have put something incorrect in this field.

The checkbox should be clicked if your specified external editor is a native X application. For terminal-based applications, such as vi, this box must not be checked. Your editor will not start correctly (or at all) if this box is not checked appropriately. In general, X-based editors will start OK even if this box is unchecked, however, terminal-based editors will not start if the box is checked. The default editors are all set up correctly.

Back to the Help Contents


Copyright © 1999 Logikos Systems and Software, Inc.