Looking up symbol documentation in Counterclockwise - clojure

In Counterclockwise, if I use CTRL-Space to complete a symbol name, and there are more than one possibility, it gives me a list, and on the right and side of the list is a box with the documentation for each symbol as I scroll through the names.
Is there any way to get this documentation window without using completion, or if there is only one option for the completion? Right now I am looking up documentation by deleting enough letters for the symbol to be ambiguous, then reselecting the symbol I want, but this is pretty inefficient. Usually I just want to know what order the arguments are. I'm not a huge emacs fan, but one thing I like about slime is that I seem to remember when I used it the status bar had a little list of the arguments for whatever function I was calling.
I've googled the problem and also looked on the counterclockwise web page, but I must be using the wrong search terms because I haven't come up with anything.
-Harry

You should be able to hover the mouse over the symbol, and the documentation will popup. Or press F2 while the cursor is over the symbol.

Related

VS Code C++ rename symbol, skip comments

I'm using VS Code v1.51.1 on Ubuntu 18.04.5. I'm trying to refactor a C++ project. When I use Rename Symbol on grid symbol, its instances in comments are to be renamed too, see the right pane on the screenshot below (preview mode). I don't want that. Find All References is able to skip grid occurrences in comments as shown in the left pane below:
Is there a way to use Find All References list to guide the renaming?

Navigating to C++ function definition

I'm looking for an easy way to find a C++ function definition in Visual Studio Code.
If I search with 'Find in Files' (shift-cmd-F) then it shows me ALL occurrences of the string pattern. This can sometimes give too many results, thus taking longer to locate the definiton.
I do know about the 'Go To Definition' feature, but that's if you find function symbol references. But I'm looking for a way to quickly type in the symbol and jump to all known definitions. I tried Palette Search (cmd-P) and the function definition isn't showing up there either.
I believe emacs has a feature like this. You would think vscode can do the same?
I found you can use symbol search, which works well only if you know the file to search.
Open the file. In the editor right-click and select "Go To Symbol In Editor" (shift-cmd-O on Mac) will open a symbol search and type in the function name.
Arrow down to the function name in the symbol list.
Even better than my other answer. You can "Go To Symbol In Workspace" (cmd-T on mac). Type in the symbol, arrow down to the right one, and hit enter.
I found initially it can take a few seconds to load symbols for a larger project, but subsequent searches for the same symbol are much faster.

Function Browsing In Spacemacs And CIDER

In Spacemacs, with an active CIDER REPL, is there a way to browse and jump to the functions in the current clojure-mode buffer?
I have tried cider-browse-ns. However, that appears to just display the functions and variables in the current namespace, along with their docstrings. The list cannot be used to jump directly to the function/var in the source code. I am also aware that g d will jump directly to the definition of the function under point. So the pieces of what I am looking for seem to all be available, I just cannot find how to wire them together.
An analogy to what I am looking for is IntelliJ's Structure sidebar.
It would be awesome if IntelliJ's Navigate -> Symbol functionality was possible as well. Searching for the function name, using /, comes pretty close (albeit without the handy fuzzy matching).
would SPC s j (help-jump-in-buffer) be what you search ?
Pressing backslash then S \s will help you jump to the definition.
Here is the list of the available commands in browse-ns. But since Spacemacs puts you in evil-mode by default, you should precede each command by a \ which temporarily disables it.

clang matchers. find the corresponding node in ast by translation unit, line number, and column

hello and thx in advance for your help.
i recently made some efforts to understand the clang matching system and got stuck on a specific problem.
having a source file in an editor with a cursor set to a position in a line, thus having a precise location, is there a way to find, and return, the corresponding node in the clang ast by this information?
as user scenario think of me clicking into the code in an editor and identifing the exact node and type of node from the corresponding ast.
i think it is in some way possible using a visitor, but can i use the matching mechanism too?
i studied the given matchers, but i don't seem to get anywhere...
thx
frithjofh
Resolved. I wasn't aware of cursors, thanks to Benjamin for pointing me in the right direction.See cursors for the function clang_getCursor which, providing it with a precise location in source code, returns the corresponding cursor into the AST, which then can be queried for kind, name, children, and location of the referred to node.Sorry too for my English, i am not a native speaker.Greetings too to the sad, sorry, and bitter lad who down voted my question without even stating any reason. That is ever so encouraging for new comers like me.

How to always show the comment of the current function?

Okay,
I have this slightly annoying problem with the code assistance of Eclipse CDT.
Whenever you hover the mouse over a function, a window pops up to show you the comment of that function. That is good.
Now, unfortunately, when the source file for that function is also available, it shows that instead of the comment. But I really don't want to see the source of the function, I always want to see the comment in the header. Who thought it would be a good idea to show source code when you just want a short description of what a function does? Not especially well suited for C++, is it? ;)
And another issue:
This window that pops up when you hover with mouse over a function... I really don't want to hover my mouse everytime I want to have that window.
I think the solution to my problems would be if there was a way to always show the header comment of a function as soon as the text cursor is on that function. Maybe in a permanent window that I can place wherever I want. Is there a way to achieve this? Maybe a plugin?
And if there is no way to do that: What is the shortcut for opening that window and how can I force it to show the header comment instead of the source code?
From this thread, it looks like the hover issue is intentional design. It probably results from eclipse originally being a Java IDE (where function definition equals declaration in source code).
The only workaround seems to be to exclude the source code by compiling it away into a *.lib without debug information and including it via lib and headers. Which is kind of impossible when your project is the one that generates the library in the first place.
What you could do is to make Documentation in the sense of the property page avaliable. That seems somewhat complicated from what I found in the eclipse forums:
The 'Documentation Hover' type listed in the preference page only
displays help content which has been contributed to the
org.eclipse.cdt.ui.CHelpProvider extension point.