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: Display citation item content #1328

Open
clsmt opened this issue May 19, 2018 · 8 comments
Open

Feature Request: Display citation item content #1328

clsmt opened this issue May 19, 2018 · 8 comments

Comments

@clsmt
Copy link

clsmt commented May 19, 2018

Request

When moving the cursor or mouse over an cited item, e.g. in \cite{abc98}, open a small window displaying the title, author etc. of that item.

Reason

This would be very helpful in revising a paper when one needs to recheck references, and moving them around.

@r-stein
Copy link
Member

r-stein commented May 20, 2018

I already thought of a popup for jump-top-anywhere, which would give some contextual information about the jumptarget.

@r-stein
Copy link
Member

r-stein commented Jun 3, 2018

I started with the concept of a hover popup here.
If you want to use the first version you can download it here: jumpto_anywhere.py and replace the file in your LaTeXTools package folder (Preferences > Browse Packages...)

@clsmt
Copy link
Author

clsmt commented Jun 3, 2018

How do I use this feature again? I installed the LatexTools 4.0 alpha, located jumpto_anywhere.py, then inserted the codes in class JumptoAnywhereHelper(object) and class JumptoAnywhereCiteHelper(JumptoAnywhereHelper).

But when I move cursor or hover over the citation items, nothing happens?

@r-stein
Copy link
Member

r-stein commented Jun 3, 2018

You need to replace the whole file. There are imports at the top and a hover listener at the bottom.

@clsmt
Copy link
Author

clsmt commented Jun 3, 2018

Thanks! It works now.

It seems the info in the popup is repeated like this:
image

@r-stein
Copy link
Member

r-stein commented Jun 3, 2018

Yes in the first approach it just reuses the information of the cite_panel_format setting (because that is easily available), which is by default:

"cite_panel_format": ["{author_short} {year} - {title_short} ({keyword})","{title}"],

In the future we may add an additional setting for this popup.

@clsmt
Copy link
Author

clsmt commented Jun 3, 2018

Oh I see.
Thanks for the effort! This is very helpful to me.

@fliptanedo
Copy link

I just wanted to add that this feature is one of my favorite tweaks to LaTeXTools. It is a big help with my workflow. Thank you @r-stein (and @clsmt for requesting this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants