Skip to content

Commit 22cc158

Browse files
authored
Merge pull request #226 from mnishz/tagsrch_for_Vim_8.1
Update tagsrch from Vim 8.0 to 8.1
2 parents db936bd + 725c365 commit 22cc158

File tree

2 files changed

+54
-52
lines changed

2 files changed

+54
-52
lines changed

doc/tagsrch.jax

+31-30
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tagsrch.txt* For Vim バージョン 8.0. Last change: 2016 Sep 20
1+
*tagsrch.txt* For Vim バージョン 8.1. Last change: 2018 May 04
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -34,30 +34,30 @@
3434
ことである。後述するタグスタックについても読むとよい。
3535

3636
*:ta* *:tag* *E426* *E429*
37-
:[count]ta[g][!] {ident}
38-
tagsファイル内の情報を用いて、{ident}の定義へジャンプ
39-
する。{ident}はタグスタックに積まれる。[!]については
37+
:[count]ta[g][!] {name}
38+
tagsファイル内の情報を用いて、{name}の定義へジャンプす
39+
る。{name}はタグスタックに積まれる。[!]については
4040
|tag-!|を参照。
41-
{ident}は正規表現を使用できる。|tag-regexp|を参照。
42-
{ident}に対してマッチするタグが複数ある場合、[count]
41+
{name}は正規表現を使用できる。|tag-regexp|を参照。
42+
{name}に対してマッチするタグが複数ある場合、[count]
4343
目のタグへジャンプする。[count]が指定されないときは最
4444
初のタグへジャンプする。他のマッチするタグへジャンプす
4545
るには|tag-matchlist|を参照。
4646

4747
g<LeftMouse> *g<LeftMouse>*
4848
<C-LeftMouse> *<C-LeftMouse>* *CTRL-]*
4949
CTRL-] カーソルの下のキーワードを定義している場所にジャンプす
50-
る。":tag {ident}" と同様であるが、{ident}はカーソルの
50+
る。":tag {name}" と同様であるが、{name}はカーソルの
5151
下、もしくは次に現われるキーワードである。
52-
{ident}に対してマッチするタグが複数ある場合、[count]
52+
{name}に対してマッチするタグが複数ある場合、[count]
5353
目のタグへジャンプする。[count]が指定されないときは最
5454
初のタグへジャンプする。他のマッチするタグへジャンプす
5555
るには|tag-matchlist|を参照。
5656
{Vi: identifier after the cursor}
5757

5858
*v_CTRL-]*
59-
{Visual}CTRL-] ":tag {ident}" と同様であるが、{ident}はハイライトされ
60-
ているテキストである。{Vi にはない}
59+
{Visual}CTRL-] ":tag {name}" と同様であるが、{name}はハイライトされて
60+
いるテキストである。{Vi にはない}
6161

6262
*telnet-CTRL-]*
6363
CTRL-]はtelnetの標準エスケープキーである。タグにジャンプしようとCTRL-]を打つと、
@@ -80,7 +80,7 @@ CTRL-]はtelnetの標準エスケープキーである。タグにジャンプ
8080

8181
カレントファイルが変わっても、優先度のリストはほとんどの場合変化しないので注意
8282
すること。これは ":tnext" を使うときの混乱を避けるためである。優先度のリストは
83-
":tag {ident}" を使ったときに変化する。
83+
":tag {name}" を使ったときに変化する。
8484

8585
以下の場合は ":tag " で大文字小文字を無視した検索は行われません:
8686
- 'ignorecase' オプションがオフで 'tagcase' が "followic" の時
@@ -165,7 +165,7 @@ FuncAの呼び出し部分の上でCTRL-]を使うことによって、mainか
165165
きる。同様にCTRL-]を使ってFuncCへ行くことができる。mainに戻るにはCTRL-Tを2回
166166
使う。そこでCTRL-]を使ってFuncBに行くことができる。
167167

168-
":ta {ident}" やCTRL-]コマンドは、タグスタック上の現在の位置にタグを追加する。
168+
":ta {name}" やCTRL-]コマンドは、タグスタック上の現在の位置にタグを追加する。
169169
もしスタックが満たされていた場合(スタックは20エントリまで保持できる)、最も古い
170170
エントリが削除され、古いものから順にひとつずつ上に移動する(インデックス番号は1
171171
ずつ減る)。もし最後に使われたエントリが一番下になかった場合、最後に使われたエ
@@ -188,13 +188,14 @@ FuncAの呼び出し部分の上でCTRL-]を使うことによって、mainか
188188
意すること。
189189

190190
*:ts* *:tselect*
191-
:ts[elect][!] [ident] タグファイルの情報を用いて、[ident]にマッチするタグをリ
191+
:ts[elect][!] [name] タグファイルの情報を用いて、[name]にマッチするタグをリ
192192
スト表示する。
193-
[ident]を省略した場合、タグスタック上の最後のタグが使
194-
われる。
193+
[name]を省略した場合、タグスタック上の最後のタグが使わ
194+
れる。
195+
[!]に関しては|tag-!|を参照。
195196
最初の列に '>' があるものはリスト中の現在の位置を指し
196197
示している(それがあるならば)。
197-
[ident]は正規表現を取り得る。|tag-regexp|を参照。
198+
[name]は正規表現を取り得る。|tag-regexp|を参照。
198199
リストに使われているプロパティは|tag-priority|を参照。
199200
{Vi にはない}
200201
出力例:
@@ -221,8 +222,8 @@ FuncAの呼び出し部分の上でCTRL-]を使うことによって、mainか
221222
"nr" の番号を入力すればよい。
222223

223224
*:sts* *:stselect*
224-
:sts[elect][!] [ident] ":tselect[!] [ident]" を実行し、ウィンドウを分割して
225-
選択されたtagを表示する。{Vi にはない}
225+
:sts[elect][!] [name] ":tselect[!] [name]" を実行し、ウィンドウを分割して選
226+
択されたtagを表示する。{Vi にはない}
226227

227228
*g]*
228229
g] CTRL-]と動作は似ているが、":tag" の代わりに ":tselect"
@@ -232,11 +233,11 @@ g] CTRL-]と動作は似ているが、":tag" の代わりに ":tselect"
232233
{Visual}g] "g]" と同じ。ただし、選択されたテキストが検索に使われ
233234
る。{Vi にはない}
234235
*:tj* *:tjump*
235-
:tj[ump][!] [ident] ":tselect" と動作は似ているが、適合するtagが1つだけの
236+
:tj[ump][!] [name] ":tselect" と動作は似ているが、適合するtagが1つだけの
236237
ときには直接移動する。{Vi にはない}
237238

238239
*:stj* *:stjump*
239-
:stj[ump][!] [ident] ":tjump[!] [ident]" を実行し、ウィンドウを分割して選択
240+
:stj[ump][!] [name] ":tjump[!] [name]" を実行し、ウィンドウを分割して選択
240241
されたtagを表示する。{Vi にはない}
241242

242243
*g_CTRL-]*
@@ -269,15 +270,15 @@ g CTRL-] CTRL-]と動作は似ているが、":tag" の代わりに ":tjump"
269270
|tag-!|を参照。{Vi にはない}
270271

271272
*:lt* *:ltag*
272-
:lt[ag][!] [ident] タグ[ident]にジャンプし、マッチするタグ全てをカレント
273+
:lt[ag][!] [name] タグ[name]にジャンプし、マッチするタグ全てをカレント
273274
ウィンドウの新しいロケーションリストに追加する。
274-
[ident]は正規表現でもよい(|tag-regexp|を参照)。[ident]
275-
が指定されないときはタグスタックにある最後のタグ名が使
276-
われる。タグにマッチする行を特定するための検索パターン
277-
には、特別な文字を全てエスケープするために "\V" がつけ
278-
られる(very nomagic)。マッチするタグを保持するロケー
279-
ションリストはタグスタックとは独立している。[!]につい
280-
ては|tag-!|を参照。{Vi にはない}
275+
[name]は正規表現でもよい(|tag-regexp|を参照)。[name]が
276+
指定されないときはタグスタックにある最後のタグ名が使わ
277+
れる。タグにマッチする行を特定するための検索パターンに
278+
、特別な文字を全てエスケープするために "\V" がつけら
279+
れる(very nomagic)。マッチするタグを保持するロケーショ
280+
ンリストはタグスタックとは独立している。[!]については
281+
|tag-!|を参照。{Vi にはない}
281282

282283
他にメッセージがないとき、Vimは今までに移動したtagとtagの数を表示する: >
283284
tag 1 of 3 or more
@@ -300,12 +301,12 @@ g CTRL-] CTRL-]と動作は似ているが、":tag" の代わりに ":tjump"
300301
{|+quickfix|が無効なときは利用できない}
301302

302303
*:pts* *:ptselect*
303-
:pts[elect][!] [ident] ":tselect[!] [ident]" を実行し、"Preview" ウィンドウに
304+
:pts[elect][!] [name] ":tselect[!] [name]" を実行し、"Preview" ウィンドウに
304305
新しいタグを表示する。詳細は|:ptag|を参照すること。
305306
{Vi にはない}
306307

307308
*:ptj* *:ptjump*
308-
:ptj[ump][!] [ident] ":tjump[!] [ident]" を実行し、"Preview" ウィンドウに新
309+
:ptj[ump][!] [name] ":tjump[!] [name]" を実行し、"Preview" ウィンドウに新
309310
しいタグを表示する。詳細は|:ptag|を参照すること。
310311
{Vi にはない}
311312

en/tagsrch.txt

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tagsrch.txt* For Vim version 8.0. Last change: 2016 Sep 20
1+
*tagsrch.txt* For Vim version 8.1. Last change: 2018 May 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -36,29 +36,29 @@ An easy way back is with the CTRL-T command. Also read about the tag stack
3636
below.
3737

3838
*:ta* *:tag* *E426* *E429*
39-
:[count]ta[g][!] {ident}
40-
Jump to the definition of {ident}, using the
41-
information in the tags file(s). Put {ident} in the
39+
:[count]ta[g][!] {name}
40+
Jump to the definition of {name}, using the
41+
information in the tags file(s). Put {name} in the
4242
tag stack. See |tag-!| for [!].
43-
{ident} can be a regexp pattern, see |tag-regexp|.
44-
When there are several matching tags for {ident}, jump
43+
{name} can be a regexp pattern, see |tag-regexp|.
44+
When there are several matching tags for {name}, jump
4545
to the [count] one. When [count] is omitted the
4646
first one is jumped to. See |tag-matchlist| for
4747
jumping to other matching tags.
4848

4949
g<LeftMouse> *g<LeftMouse>*
5050
<C-LeftMouse> *<C-LeftMouse>* *CTRL-]*
5151
CTRL-] Jump to the definition of the keyword under the
52-
cursor. Same as ":tag {ident}", where {ident} is the
52+
cursor. Same as ":tag {name}", where {name} is the
5353
keyword under or after cursor.
54-
When there are several matching tags for {ident}, jump
54+
When there are several matching tags for {name}, jump
5555
to the [count] one. When no [count] is given the
5656
first one is jumped to. See |tag-matchlist| for
5757
jumping to other matching tags.
5858
{Vi: identifier after the cursor}
5959

6060
*v_CTRL-]*
61-
{Visual}CTRL-] Same as ":tag {ident}", where {ident} is the text that
61+
{Visual}CTRL-] Same as ":tag {name}", where {name} is the text that
6262
is highlighted. {not in Vi}
6363

6464
*telnet-CTRL-]*
@@ -82,7 +82,7 @@ When there are multiple matches for a tag, this priority is used:
8282

8383
Note that when the current file changes, the priority list is mostly not
8484
changed, to avoid confusion when using ":tnext". It is changed when using
85-
":tag {ident}".
85+
":tag {name}".
8686

8787
The ignore-case matches are not found for a ":tag" command when:
8888
- the 'ignorecase' option is off and 'tagcase' is "followic"
@@ -167,7 +167,7 @@ You can get from main to FuncA by using CTRL-] on the call to FuncA. Then
167167
you can CTRL-] to get to FuncC. If you now want to go back to main you can
168168
use CTRL-T twice. Then you can CTRL-] to FuncB.
169169

170-
If you issue a ":ta {ident}" or CTRL-] command, this tag is inserted at the
170+
If you issue a ":ta {name}" or CTRL-] command, this tag is inserted at the
171171
current position in the stack. If the stack was full (it can hold up to 20
172172
entries), the oldest entry is deleted and the older entries shift one
173173
position up (their index number is decremented by one). If the last used
@@ -191,13 +191,14 @@ between them. Note that these commands don't change the tag stack, they keep
191191
the same entry.
192192

193193
*:ts* *:tselect*
194-
:ts[elect][!] [ident] List the tags that match [ident], using the
194+
:ts[elect][!] [name] List the tags that match [name], using the
195195
information in the tags file(s).
196-
When [ident] is not given, the last tag name from the
196+
When [name] is not given, the last tag name from the
197197
tag stack is used.
198+
See |tag-!| for [!].
198199
With a '>' in the first column is indicated which is
199200
the current position in the list (if there is one).
200-
[ident] can be a regexp pattern, see |tag-regexp|.
201+
[name] can be a regexp pattern, see |tag-regexp|.
201202
See |tag-priority| for the priorities used in the
202203
listing. {not in Vi}
203204
Example output:
@@ -225,7 +226,7 @@ the same entry.
225226
type 'q' and enter the number.
226227

227228
*:sts* *:stselect*
228-
:sts[elect][!] [ident] Does ":tselect[!] [ident]" and splits the window for
229+
:sts[elect][!] [name] Does ":tselect[!] [name]" and splits the window for
229230
the selected tag. {not in Vi}
230231

231232
*g]*
@@ -237,11 +238,11 @@ g] Like CTRL-], but use ":tselect" instead of ":tag".
237238
identifier. {not in Vi}
238239

239240
*:tj* *:tjump*
240-
:tj[ump][!] [ident] Like ":tselect", but jump to the tag directly when
241+
:tj[ump][!] [name] Like ":tselect", but jump to the tag directly when
241242
there is only one match. {not in Vi}
242243

243244
*:stj* *:stjump*
244-
:stj[ump][!] [ident] Does ":tjump[!] [ident]" and splits the window for the
245+
:stj[ump][!] [name] Does ":tjump[!] [name]" and splits the window for the
245246
selected tag. {not in Vi}
246247

247248
*g_CTRL-]*
@@ -276,9 +277,9 @@ g CTRL-] Like CTRL-], but use ":tjump" instead of ":tag".
276277
in Vi}
277278

278279
*:lt* *:ltag*
279-
:lt[ag][!] [ident] Jump to tag [ident] and add the matching tags to a new
280-
location list for the current window. [ident] can be
281-
a regexp pattern, see |tag-regexp|. When [ident] is
280+
:lt[ag][!] [name] Jump to tag [name] and add the matching tags to a new
281+
location list for the current window. [name] can be
282+
a regexp pattern, see |tag-regexp|. When [name] is
282283
not given, the last tag name from the tag stack is
283284
used. The search pattern to locate the tag line is
284285
prefixed with "\V" to escape all the special
@@ -310,12 +311,12 @@ the same as above, with a "p" prepended.
310311
{not available when compiled without the |+quickfix| feature}
311312

312313
*:pts* *:ptselect*
313-
:pts[elect][!] [ident] Does ":tselect[!] [ident]" and shows the new tag in a
314+
:pts[elect][!] [name] Does ":tselect[!] [name]" and shows the new tag in a
314315
"Preview" window. See |:ptag| for more info.
315316
{not in Vi}
316317

317318
*:ptj* *:ptjump*
318-
:ptj[ump][!] [ident] Does ":tjump[!] [ident]" and shows the new tag in a
319+
:ptj[ump][!] [name] Does ":tjump[!] [name]" and shows the new tag in a
319320
"Preview" window. See |:ptag| for more info.
320321
{not in Vi}
321322

0 commit comments

Comments
 (0)