CTags icon indicating copy to clipboard operation
CTags copied to clipboard

Feature request: Jump to definition in other focus group (panel)

Open haferburg opened this issue 8 years ago • 2 comments

While editing I always have two "focus groups" (I call them panels) open, arranged in 2 columns, as produced by Alt+Shift+2. When I look up a symbol in one panel, I'd like the jump location to open in the other panel, even if the symbol is in the same file.

I tried to hack it in myself, but I wasn't able to understand the code. I'd be very happy about some pointers on where in the code CTags actually finds out which file the symbol is in, and where it jumps to that location. There's some dark magic going on in JumpToDefinition.run(). I assume that CTags needs to prepare some window in case there's more than one jump possibility. But I didn't manage to understand how the actual jump location is reached. A few explaining words would be much appreciated.

haferburg avatar Oct 09 '16 15:10 haferburg

I have a similar question. I have noticed that JumpToDefinition.run() when opening a new file will not focus the cursor line in the view window. I have to move the cursor for it cursor line to come into view. How does JumpToDefinition.run() open the file and navigate to the correct line?

chuckfossen avatar Oct 20 '16 15:10 chuckfossen

An FYI, on_load is called when a file is loaded.

chuckfossen avatar Oct 21 '16 20:10 chuckfossen