Activate LyX window after reverse search (#10196)

"lyxclient -g" now calls the just implemented lyx-activate (see
previous commit) after server-goto-file-row. This allows the PDF
viewer to switch to LyX after executing a reverse search.
This commit is contained in:
Scott Kostyshak 2016-08-04 01:25:36 -04:00
parent 60515b996b
commit 52ae8fb22b
2 changed files with 6 additions and 4 deletions

View File

@ -504,9 +504,11 @@ int g(vector<docstring> const & arg)
<< endl;
return -1;
}
singleCommand = "LYXCMD:server-goto-file-row "
+ arg[0] + ' '
+ arg[1];
singleCommand = "LYXCMD:command-sequence "
"server-goto-file-row "
+ arg[0] + ' '
+ arg[1] + "; " +
"lyx-activate";
return 2;
}

View File

@ -53,7 +53,7 @@ LyX commands documentation can be found in LyX Help menu.
send a single \fIcommand\fR, print LyX information to standard output and exit. LYXCMD prefix is needed in the given command.
.TP
.BI \-g " file line"
this is simply a wrapper for the command 'server\-goto\-file\-row \fIfile\fR \fIline\fR'. It is used by the DVI previewer to elicit inverse DVI search.
this is simply a wrapper for the command 'command-sequence server\-goto\-file\-row \fIfile\fR \fIline\fR; lyx-activate'. It is used by the PDF and DVI previewer to elicit inverse search and focus the LyX window.
.PP
If neither \fB\-c\fR nor \fB\-g\fR are used, \fBlyxclient\fR will regard any
standard input as commands to be sent to LyX, printing LyX's responses to