You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,9 @@ These patterns are only usable with Exuberant Ctags. Universal Ctags is *not* cu
25
25
26
26
Note about disabling the default "kinds".
27
27
28
-
The option `--javascript-kinds=-c-f-m-p-v` in [ctags](ctags) will disable the default kinds, `c` (classes), `f` (functions), `m` (methods), `p` (properties), and `v` (global variables), for JavaScript files.
28
+
The option `--javascript-kinds=-c-f-m-p-v` in [ctagsrc](ctagsrc) will disable the default kinds, `c` (classes), `f` (functions), `m` (methods), `p` (properties), and `v` (global variables), for JavaScript files.
29
29
30
-
This means your ctags program's builtin regex patterns or any user defined patterns registered against these kinds will no longer function and the patterns defined in [ctags](ctags) will be the only patterns active for the JavaScript language.
30
+
This means your ctags program's builtin regex patterns or any user defined patterns registered against these kinds will no longer function and the patterns defined in [ctagsrc](ctagsrc) will be the only patterns active for the JavaScript language.
31
31
32
32
This is done to have a single source of patterns and avoid duplicated tags.
33
33
@@ -52,17 +52,17 @@ This is done to have a single source of patterns and avoid duplicated tags.
with `~/my/cool/stuff/ctags-patterns-for-javascript/ctags` being your actual path, of course.
59
+
with `~/my/cool/stuff/ctags-patterns-for-javascript/ctagsrc` being your actual path, of course.
60
60
61
61
3. Use this command to generate a `tags` file at the root of your JavaScript project:
62
62
63
63
$ ctags -R .
64
64
65
-
If for some reason the above instructions sound like Klingon to you, just copy the content of [this file](https://raw.githubusercontent.com/romainl/ctags-patterns-for-javascript/master/ctags) and paste it *into* your own `~/.ctags` file. If that file doesn't exist, create it.
65
+
If for some reason the above instructions sound like Klingon to you, just copy the content of [this file](https://raw.githubusercontent.com/romainl/ctags-patterns-for-javascript/master/ctagsrc) and paste it *into* your own `~/.ctags` file. If that file doesn't exist, create it.
66
66
67
67
## Tags
68
68
@@ -374,17 +374,17 @@ But we are hackers, right?
374
374
375
375
### Watch and re-index
376
376
377
-
The bundled `Makefile` has a very simple and very cheap `watch` phony target that will run `make tags` every second. In turn, the `tags` target will run `ctags --options=./ctags -f tags index.js`*only* if `ctags` or `index.js` have changed since last run.
377
+
The bundled `Makefile` has a very simple and very cheap `watch` phony target that will run `make tags` every second. In turn, the `tags` target will run `ctags --options=./ctagsrc -f tags index.js`*only* if `ctagsrc` or `index.js` have changed since last run.
378
378
379
379
This allows us to start the watcher in a terminal:
380
380
381
381
$ make watch
382
382
383
-
open `ctags`, `index.js`, and the `tags` file in Vim in another terminal:
383
+
open `ctagsrc`, `index.js`, and the `tags` file in Vim in another terminal:
0 commit comments