3 The nvi tags structure has been reworked to handle the notion of multiple
4 locations per tag. This supports cscope, which returns multiple locations
5 per query. It will hopefully support ctags programs that create databases
6 with multiple locations per tag as well.
8 There is now a list of "tag queues" chained from each screen. Each tag
9 queue has one or more "tag locations".
11 +----+ +----+ +----+ +----+
12 | EP | -> | Q1 | <-- | T1 | <-- | T2 |
13 +----+ +----+ --> +----+ --> +----+
23 In the above diagram, each "Q" is a "tag queue", and each "T" is a
24 tag location. Generally, the commands:
28 :cscope find create a new Q
29 :tagnext move to the next T
30 :tagprev move to the previous T
31 :tagpop discard one or more Q's
32 ^T discard the most recent Q
33 :tagtop discard all Q's
37 :cs[cope] a[dd] cscope-dir
39 Attach to the cscope database in cscope-dir.
41 :cs[cope] f[ind] c|d|e|f|g|i|s|t buffer|pattern
43 Query all attached cscopes for the pattern. The pattern is a
44 regular expression. If the pattern is a double-quote character
45 followed by a valid buffer name (e.g., "t), then the contents
46 of the named buffer are used as the pattern.
48 c: find callers of name
49 d: find all function calls made from name
51 f: find files with name as substring
52 g: find definition of name
53 i: find files #including name
54 s: find all uses of name
55 t: find assignments to name
57 The find command pushes the current location onto the tags stack,
58 and switches to the first location resulting from the query, if
59 the query returned at least one result.
61 :cs[cope] h[elp] [command]
63 List the cscope commands, or usage help on one command.
65 :display c[onnections]
67 Display the list of cscope connections
71 The tags display has been enhanced to display multiple tag
72 locations per tag query.
76 Kill cscope connection number #.
79 Kill all attached cscopes. Useful if one got hung but you don't
84 Move to the next tag resulting from a query.
88 Return to the previous tag resulting from a query.
92 Return to the previous tag group (no change).
96 Discard all tag groups (no change).
100 " ^N: move to the next tag
102 " ^P: move to the previous tag
105 " Tab+letter performs a C-Scope query on the current word.
106 " C-Scope 12.9 has a text-string query (type t).
107 " C-Scope 13.3 replaces it with an assignment query; hence a==t.
108 map
\x16<tab>a "tye:csc find t"t
\r
109 map
\x16<tab>c "tye:csc find c"t
\r
110 map
\x16<tab>d "tye:csc find d"t
\r
111 map
\x16<tab>e "tye:csc find e"t
\r
112 map
\x16<tab>f "tye:csc find f"t
\r
113 map
\x16<tab>g "tye:csc find g"t
\r
114 map
\x16<tab>i "tye:csc find i"t
\r
115 map
\x16<tab>s "tye:csc find s"t
\r
116 map
\x16<tab>t "tye:csc find t"t
\r
118 To start nvi with an initial set of cscope directories, use the environment
119 variable CSCOPE_DIRS. This variable should contain a <blank>-separated
120 list of directories containing cscope databases. (This MAY be changed to
121 be an edit option, I haven't really decided, yet.)
123 Each cscope directory must contain a file named "cscope.out" which is the
124 main cscope database, or nvi will not attempt to connect to a cscope to
125 handle requests for that database.
127 The file "cscope.tpath" may contain a colon-separated directory search
128 path which will be used to find the files reported by cscope. If this
129 cscope.tpath does not exist, then the paths are assumed to be relative to
130 the cscope directory itself. This is an extension to the standard cscope,
131 but seems important enough to keep.
133 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
136 UNIXWare System V Release 4.0 variants such as Sun Solaris 2.x
137 (/opt/SUNWspro/bin) have version 11.5, and UNIXWare System V
138 Release 4.1 has version 12.10 with an option for much faster
141 You can buy version 13.3 source with an unrestricted license
142 for $400 from AT&T Software Solutions by calling +1-800-462-8146.