Latex-workshop: [Feature Request] Forward synctex with Ctrl+LeftClick

Created on 23 Jul 2018  路  8Comments  路  Source: James-Yu/LaTeX-Workshop

Reverse synctex currently supports this. What about forward synctex?

feature-request

Most helpful comment

Now one needs to right click and selects SyncTex from cursor to go from tex file to pdf file.
Is there any way to define a shortcut or hotkey for that?

All 8 comments

Not possible since vscode does not provide related API.

Now one needs to right click and selects SyncTex from cursor to go from tex file to pdf file.
Is there any way to define a shortcut or hotkey for that?

Can we request this upstream? I am also looking for this feature.

Ctrl/Command-Click on .tex source to get forward synctex.

@GNHua I'm pretty sure you can define a hot-key to run latex-workshop.synctex, it's probably that command.

https://github.com/James-Yu/LaTeX-Workshop/blob/master/package.json#L37

@James-Yu Could this perhaps be implemented with this?

https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition

@carstenhag The extension already has go-to-definition on labels. Re-assigning it to synctex will 1) break the feature 2) make it troublesome for systems without synctex. An upstream request is absolutely good, yet I myself doubt if the core team would adopt it.

I'm also looking for this feature, which I think would prove extremely popular. I would gladly give up the ability to go-to-definition on labels to have working forward synctex via click. Perhaps this could be considered as an option that the user needs to enable?

Related: the right-click option for synctex appears to have been removed since the time this issue was created.

Also related: there's an upstream VS Code issue for customizing mouse click keybindings at https://github.com/microsoft/vscode/issues/3130.

To get the right click menu back, set latex-workshop.showContextMenu: true.
Forward synctex is also accessible via a keybinding alt+cltr+j.

Was this page helpful?
0 / 5 - 0 ratings