mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
60515b996b
commit
52ae8fb22b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user