Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to get proper tags file for vim #13

Open
imiten opened this issue Aug 15, 2014 · 7 comments
Open

unable to get proper tags file for vim #13

imiten opened this issue Aug 15, 2014 · 7 comments

Comments

@imiten
Copy link

imiten commented Aug 15, 2014

Hi,

I tried on bunch of files as well as single file and generate tags file but seems vim will not find the tag.

https://github.com/Countly/countly-server/blob/master/api/api.js

jsctags api.js -f >> tags

Then in vim tried to CTRL + ] with cursor under "validateUserForWriteAPI" on line 248. It says tag not found.
E426: tag not found: validateUserForWriteAPI

I hope I am attempting the use of this module correctly.

Also to create a tags file for entire dir tree should I do:

find . -name "*.js" | xargs -n 1 -I {} jsctags {} -f >> tags

I tried above and it said tags file not sorted. cannot find tag.

Regards

Miten.

@mitermayer
Copy link

find . -name "*.js" | xargs -n 1 -I {} jsctags {} -f > tags

Seems to work for generating the tags, but still generate them with empty spaces in between rows and unsorted, which causes vim to complain

@mitermayer
Copy link

If you input this command you should get the output correct of the ctgas

find . "*.js" -exec jsctags {} -f \; | sed '/^$/d' | sort > tags

@faceleg
Copy link
Collaborator

faceleg commented Sep 28, 2015

@mitermayer does this still work? If so do you think it would be a good addition to the README?

@ianks
Copy link

ianks commented Oct 15, 2015

find . -type f -iregex .*\.js$ -exec jsctags {} -f \; | sed '/^$/d' | sort > tags might be a better option.

@faceleg
Copy link
Collaborator

faceleg commented Oct 15, 2015

@ianks is this worth adding to the README?

@ianks
Copy link

ianks commented Oct 15, 2015

Yes it would IMO. What would be even better was if the CLI had a better interface, though.

@faceleg
Copy link
Collaborator

faceleg commented Oct 15, 2015

PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants