You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to hover over the relevant entries in the ToC corresponding to labels and then yank the label key. Can this be easily done with a shortcut?
To be honest, I'm not sure what you mean. First, what is "hover" here? Do you mean with your mouse?
Perhaps you could create a mapping within vimtex-toc filetypes? Labeled stuff typically has as its text only the label, right? So, you could just copy that. Something like this:
autocmdFileTypevimtex-tocnnoremap02Wvt(by
You may want to experiment with this. The idea is:
0 go to beginning of line
2W jump two WORDS to get to start of label
vt( enter visual mode and move to the paranthesis
b go back to last character of the label
y yank selected text
Description
I'd like to hover over the relevant entries in the ToC corresponding to labels and then yank the label key. Can this be easily done with a shortcut?
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
no
VimtexInfo
N/A
The text was updated successfully, but these errors were encountered: