LaTeXTools icon indicating copy to clipboard operation
LaTeXTools copied to clipboard

Feature Request: Display citation item content

Open clsmt opened this issue 6 years ago • 8 comments

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.

clsmt avatar May 19 '18 04:05 clsmt

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

r-stein avatar May 20 '18 08:05 r-stein

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...)

r-stein avatar Jun 03 '18 11:06 r-stein

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?

clsmt avatar Jun 03 '18 17:06 clsmt

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

r-stein avatar Jun 03 '18 17:06 r-stein

Thanks! It works now.

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

clsmt avatar Jun 03 '18 17:06 clsmt

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.

r-stein avatar Jun 03 '18 17:06 r-stein

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

clsmt avatar Jun 03 '18 17:06 clsmt

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).

fliptanedo avatar Jul 10 '20 02:07 fliptanedo