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

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

Open
haferburg opened this issue Oct 9, 2016 · 2 comments
Open

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

haferburg opened this issue Oct 9, 2016 · 2 comments

Comments

@haferburg
Copy link

haferburg commented Oct 9, 2016

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.

@chuckfossen
Copy link

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
Copy link

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

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

2 participants