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

When tab characters appear in source code, make output from -F and -R easier to parse #1419

Open
nrnrnr opened this issue Jul 2, 2021 · 0 comments

Comments

@nrnrnr
Copy link

nrnrnr commented Jul 2, 2021

Related problem

I am using rtags to build an identifier cross-reference for literate C code. Output from rc -N -F --display-name --containing function --cursor-kind is positional, and the -N is necessary lest tabs in the source code confuse my parser.

The solution I'd like

I'd like the --json option to work with -F.

Alternatives I've considered

I'd also be delighted to have rc dump everything that the server knows about symbols, as a JSON object. That would also eliminate the tiresome necessity to query each symbol individually with its own -R option (to find uses).

Other reasonable options would be to escape tab characters that appear in source code.

Additional context

For what it's worth, I am querying every symbol in a program.

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

No branches or pull requests

1 participant