Comments (3)
Hi @pidgeon777
It's a bit hard because existing plugins for vim and visual studio code depend on the current output format of cqsearch CLI.
Do you have any use cases for this, from cqsearch CLI?
i think you can get the same information from CodeQuery GUI.
from codequery.
@pidgeon777
The first column is not redundant. If you do a non-exact search for "button", it will also show "clickbutton", "smallbutton", "buttonclick" and so on.
from codequery.
Hi @ruben2020
It's a bit hard because existing plugins for vim and visual studio code depend on the current output format of cqsearch CLI.
I think it could be easily solved by adding a further option argument to cqsearch
. For example:
-F : Show the function name where the searched symbol/function call occurs.
By doing so, my proposed "enhanced" output format would be enabled only when specifying that switch, leaving the default cqsearch
behaviour untouched.
Do you have any use cases for this, from cqsearch CLI?
Yes, cqsearch
is very useful for example to look for symbol references or function calls.
Anyway, by also displaying the function where the symbol is referenced and applying some further filtering (for example with grep
), it would be very easy to detect:
- Functions where a symbol is read.
- Functions where a symbol is written.
- Functions where a function is called (also doable with Graph mode, but textual through CLI is more powerful under certain circumstances).
For example, one could want to verify that a variable is read or written only in one function, and not in more of them.
Or check in which functions, and how many times, a function is called.
With my proposed output, it would be much easier to check for that, for example.
Finally, with CodeQuery GUI
you are limited to the GUI itself.
With cqsearch
output results being pure text could be further processed with interesting results.
The first column is not redundant. If you do a non-exact search for "button", it will also show "clickbutton", "smallbutton", "buttonclick" and so on.
My fault. If then, a new column could be added and resulting in this new output:
<Symbol Name> <Function where it occurs> <File:line> <Line Text>
Where <Symbol Name>
could be partial or exact.
Again, all of this could be enabled by specifying the -F
switch, for example.
from codequery.
Related Issues (20)
- Documentation doesn't list all the required dependencies. Code fails silently when missing them HOT 1
- Why didn't the option to compile without GUI wasn't merged to v0.21.1? HOT 1
- java finding implementations of interface HOT 2
- Any open API for batch operation to generate function called graphs instead of GUI? HOT 3
- Compilation error HOT 2
- Missing a QT5 library in Ubuntu 18.04 HOT 2
- [Feature] Visual Studio Code extension HOT 3
- [Enhancement] Update of cscope to 15.9 version HOT 3
- [Feature] Highlight current function HOT 4
- Icon theme "elementary" not found. HOT 11
- Unable to get codequery on go project to cover all files HOT 3
- update german language translation HOT 1
- Unsupported cscope parameters: -c is required. -q, -b and -R are optional. The rest should not be used. HOT 8
- [Enhancement] Import\configure project through compile_commands.json file HOT 2
- Call Graph is not working correctly HOT 1
- Call Graph is not working correctly HOT 1
- [ENHANCEMENT] Please add the scripts for building the database HOT 1
- On macbook, window width is too wide and cannot be resized HOT 11
- CQSearch does not seem to work with special characters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codequery.