Does cscope have a search history or a search query stack function?

I usually dig c source code with cscope from method to method over level 4-5, and I need to step back and forth between the methods.

How can I view the search history in cscope, so I don’t need to remember the previous method name. or it would be better if it is a stack.

+4
source share
3 answers

Yes Yes. Help explains this. [Click? in the main window.]

Ctrl + b - return to the search history.

Ctrl + f - a step forward in the search history.

+13
source

I mainly use the front-end cbrowser http://sourceforge.net/projects/cbrowser/ GUI in cscope and it has a drop-down list in which it remembers the last 15 requests.

Alternatively, if you use Vim or Emacs / XEmacs editors, they have built-in cscope support. I am not familiar with how Emacs integration works, but in Vim it works almost like a regular tag stack where you can jump to a character and then go back to the previous character. Here is some information about Vim integration http://cscope.sourceforge.net/cscope_vim_tutorial.html . There is some information about emacs integration on the cscope homepage http://cscope.sourceforge.net/ .

+2
source

At the cscope prompt, you can type Ctrl-b to return to previous queries. If you move to another field that says “search for a character” from “search for a definition”, you can repeat the query for the same character by pressing Ctrl-y . NTN.

+2
source

Source: https://habr.com/ru/post/1303645/


All Articles