Focus option in Forward search DDE command #5118
-
|
I'm trying out the forward search feature (trying to work it into the Zed LaTeX extension) but I can't seem to find a way to do this without refocusing the preview window (instead of keeping the editor window in focus to keep typing without alt-tab). Right now I'm doing: (...)\SumatraPDF.exe -dde "[ForwardSearch(\"PDF\", \"TEXFILE\", 2, 0, 0, 0)]"(which forward searches correctly, just refocuses the sumatraPDF window every time) Based on the docs, I'm assuming that the last 0 is meant to precisely avoid the preview refocusing. Can I confirm whether this is the intended behaviour? Or am I misinterpreting what "focus" here means? SumatraPDF 3.5.2 64bit commit 646d1fe |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.




You don't have to use DDE but if you do -Forward-Search is very specific ability. So you are firing an instruction into the memory which tells a server ("Sumatra") to "control" its viewport and display in the GUI a given line (with optional highlighting). This means SumatraPDF will rise to be the foreground app.
Thus, I guess that is your question? How to inverse search the editor so it is refocused and that is generally use double click to go back to either the CLI OR DDE caller. SumatraPDF in its settings can store ONCE (avoid using the inverse command every time) the Tex command to return via reverse (inverse) search. double click on the long word in SumatraPDF returns control to the N…