1

Right now I can right-click on a cross-reference, then click on "Go to Label".

Is there a quicker way I can do this? (For example, maybe something like Ctrl + Left mouse click.)

It says there "Ctrl + >" but I am having trouble figuring out how that shortcut works.

enter image description here

  • 1
    Exactly how the keyboard shortcut works depends on your keyboard layout. For example on my American layout (en.wikipedia.org/wiki/British_and_American_keyboards#/media/…) the key between the left shift and Z has < and >. To get the > I need to hold down Shift. So to use the go to label shortcut, I hold down Ctrl and Shift, then hit the mentioned key. A quick test indicates that the cursor has to be left of the cross-reference, when on the right it doesn't work. – Torbjørn T. Apr 27 '18 at 9:07
  • @TorbjørnT. good explanation. The reason why it only works on the left is because if there is e.g. two references, LyX needs some way to decide on which it should act, so by default it acts on whatever thing is on the right. It might be interesting to introduce functionality such as "well there is no inset on the right, so try the thing on the left", but right now such smart functionality doesn't exist. – scottkosty Apr 27 '18 at 19:15
  • @TorbjørnT.: I see now how that shortcut works. But it seems to require that the cursor be directly to the left of the cross-reference, so it's no improvement over Right-Click + click "Go to Label". I wonder if there's something like Alt-Click or Ctrl-Click. If not, I would recommend it; I don't imagine it's too hard to implement. – dtcm840 Apr 30 '18 at 0:51
  • I know it only works with the cursor on the left, I said as much. And @scottkosty explained the reason. Also, no point in addressing such a recommendation to me, I'm not a LyX developer, feature requests should be posted on lyx.org/trac. I don't know if it's possible to configure LyX to use alt-click or similar, but scottkosty might know. – Torbjørn T. Apr 30 '18 at 6:40
  • I don't think it's currently possible to configure custom mouse clicks. – scottkosty Apr 30 '18 at 13:56
2

(Summarizing comments.)

Exactly how the keyboard shortcut works depends on your keyboard layout. For example on my American layout the key between the left Shift and Z has < and >. To get the > I need to hold down Shift. So to use the go-to-label shortcut, I hold down Ctrl and Shift, then hit the mentioned key.

Note that the cursor has to be placed on the left side of cross-reference for this to work. As scottkosty says, this is so that it's clear which label to go to, if there are two cross-references side by side.

It is not currently possible to configure a mouse click, e.g. Ctrl + click, to achieve this it seems. You could make a feature request to the developers by creating a new ticket at https://www.lyx.org/trac

0

One shortcut is: Right-click, then "g".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.