diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-03-12 21:53:48 -0300 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-07-02 19:06:34 -0300 |
commit | b1dd01f67a48785678209b90c1b0e4f44621c146 (patch) | |
tree | 31561c12003443104d8ad5017e47026904349ff0 /xedit.c | |
parent | 3468f9f2cb65294771e1095a14b7263ae0a6a043 (diff) |
Add a tags interface to xedit.
To use the tags, first create a tags file with a command like "ctags -R".
The interface can be disabled with resources, see the updated man page.
Tag files are searched descending to the root directory.
Multiple tags files are properly handled, and multiple symbol definitions
can be searched.
Diffstat (limited to 'xedit.c')
-rw-r--r-- | xedit.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -60,7 +60,8 @@ static XtActionsRec actions[] = { {"xedit-keyboard-reset",XeditKeyboardReset}, #endif {"ispell", IspellAction}, -{"line-edit", LineEditAction} +{"line-edit", LineEditAction}, +{"tags", TagsAction} }; #define DEF_HINT_INTERVAL 300 /* in seconds, 5 minutes */ @@ -109,6 +110,10 @@ static XtResource resources[] = { Offset(position_format), XtRString, "L%l"}, {"autoReplace", "Replace", XtRString, sizeof(char*), Offset(auto_replace), XtRImmediate, NULL}, + {"tagsName", "TagsName", XtRString, sizeof(char *), + Offset(tagsName), XtRString, "tags"}, + {"loadTags", "LoadTags", XtRBoolean, sizeof(Boolean), + Offset(loadTags), XtRImmediate, (XtPointer)TRUE}, }; #undef Offset |