-
Notifications
You must be signed in to change notification settings - Fork 47
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
Allow multiple input files #22
Conversation
I've also added a commit that sorts the ctag output lines alphabetically. These two commits in combination should solve #13, allowing you to output a vim-compatible jsctags `find . -name "*.js"` -f > tags |
This looks awesome! One thing - could you please add a test? |
I've taken a look at the test cases in the I agree that it should be tested though. It seems that there was no automated testing set up in the
A couple of points to note about the tests:
I've also added a commit that enables ctags output when the input file is piped into stdin and the Let me know if this all makes sense! |
Holy crap. You sir, are a legend. Only with powerful testing can a project attain perfection. I am going to merge this in yesterday, and look at adding travis.ci. |
I'm getting "ext must be a string" on line 64 of test/runner.js when doing npm test. Looking into it |
OK fixed, pushing. Thanks again! This is awesome! Now we can make actual progress towards making this the ultimate JS ctags tool 💃 |
Glad I could help out! I've been learning Vim over the last week and the overall JS support seems a bit rough around the edges – this project looks really promising for the ctags side of things though so I thought I'd pitch in. One final thing to note is that the documentation examples are now slightly inaccurate due to the extra Good luck with the Travis integration – also happy to see semicolons have crept in there, that was driving me up the wall! ;) |
Hey, you put me in charge you get semicolons! |
This PR allows the
jsctags
executable to accept multiple input files, as follows:jsctags *.js -f
...it also removes the double line breaks in the
-f
ctags output mode.I've also added the
tagfile
field to the JSON output (to avoid ambiguity if there are multiple source files).Let me know if there's anything I can change to help get this merged!