Navigation:  Using iKog >

Using an external editor

Previous pageReturn to chapter overviewNext page

from version 1.77

 

It is possible to use an external editor to edit your tasks.  It is normally faster to try to learn the editing commands built into ikog.py but if you want to use an editor you can.

 


You can only use this feature on Linux and Windows.


To use an external editor, you must have enabled system calls using the SYS ON command. See Running system commands.

 

The format of the command is EDIT [N] or ED [N] where N is the number of the task you want to edit.  If you omit N, a new task is created.  When you save the task from the external editor, the task is created or modified as appropriate.

 

The default editors for Linux are nano, pico, vim and finally emacs. IKog uses the first editor it finds starting with nano.  For Windows, the default editor is edit.  If you want to change the editors, use the SETEDPOSIX editor command for the Linux editors and SETEDNT editor for Windows.  If you want to enter a number of editors to search for, separate them with commas.

 

So to set the default editor on Linux to Vim and only use pico if Vim isn't found, enter:

>>>SETEDPOSIX vim,pico

 

To set the default editor on Windows to notepad, enter:

>>>SETEDNT notepad

 


Because a temporary file is used to allow the external editor to be used, do not enter secret or private data.  Although ikog.py deletes the temporary file, if your computer crashed you could finish up with your private data visible in a file on your computer.