Skip to content

Commit aa460a3

Browse files
committed
Renamed ctags as ctagsrc
1 parent e5471dc commit aa460a3

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ OUT = @echo `date +[\ %F\ -\ %T\ ]`
66
all: tags
77
@true
88

9-
tags: ctags index.js
10-
@ctags --options=./ctags -f tags index.js
9+
tags: ctagsrc index.js
10+
@ctags --options=./ctagsrc -f tags index.js
1111
$(OUT) "'tags' file updated."
1212

1313
watch:

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ These patterns are only usable with Exuberant Ctags. Universal Ctags is *not* cu
2525

2626
Note about disabling the default "kinds".
2727

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.
2929

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.
3131

3232
This is done to have a single source of patterns and avoid duplicated tags.
3333

@@ -52,17 +52,17 @@ This is done to have a single source of patterns and avoid duplicated tags.
5252
$ cd ~/my/cool/stuff
5353
$ git clone https://github.com/romainl/ctags-patterns-for-javascript.git
5454

55-
2. In your shell, run the following command to tell Exuberant Ctags to use the options defined in the provided `ctags` file:
55+
2. In your shell, run the following command to tell Exuberant Ctags to use the options defined in the provided `ctagsrc` file:
5656

57-
$ echo "--options=~/my/cool/stuff/ctags-patterns-for-javascript/ctags" >> ~/.ctags
57+
$ echo "--options=~/my/cool/stuff/ctags-patterns-for-javascript/ctagsrc" >> ~/.ctags
5858

59-
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.
6060

6161
3. Use this command to generate a `tags` file at the root of your JavaScript project:
6262

6363
$ ctags -R .
6464

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.
6666

6767
## Tags
6868

@@ -374,17 +374,17 @@ But we are hackers, right?
374374

375375
### Watch and re-index
376376

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.
378378

379379
This allows us to start the watcher in a terminal:
380380

381381
$ make watch
382382

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:
384384

385-
$ vim -O tags ctags index.js +'set autoread' +'autocmd! CursorHold,CursorHoldI * checktime'
385+
$ vim -O tags ctagsrc index.js +'set autoread' +'autocmd! CursorHold,CursorHoldI * checktime'
386386

387-
and watch our `tags` file change as we edit existing patterns in `ctags` or add expressions in `index.js`.
387+
and watch our `tags` file change as we edit existing patterns in `ctagsrc` or add expressions in `index.js`.
388388

389389

390390
[//]: # ( Vim: set spell spelllang=en: )

ctags renamed to ctagsrc

File renamed without changes.

0 commit comments

Comments
 (0)