On 04/14/2010 10:09 PM, Pavel Sanda wrote:
diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp
index 053680a..32a2604 100644
--- a/src/LyXAction.cpp
+++ b/src/LyXAction.cpp
@@ -2825,6 +2825,23 @@ void LyXAction::init()
   */
                { LFUN_SERVER_GOTO_FILE_ROW, "server-goto-file-row", ReadOnly | 
NoBuffer, System },
  /*!
+ * \var lyx::FuncCode lyx::LFUN_FORWARD_SEARCH
+ * \li Action: Sets the cursor position in the previewed (e.g. dvi) file based 
on the row
+               number in LyX window.
+ * \li Notion: The external program used for forward search call can be 
specified in
+               \\forward_search RC setting. By default its value is\n
+              "xdvi -sourceposition $$n:$$t $$o"\n
+              The values replaced in the call: $$n for row number, $$t for
+              exported temporary .tex file, $$o exported output file, either
+              dvi or pdf, depending on the argument of #LFUN_FORWARD_SEARCH.
+ * \li Syntax: forward-search [dvi|pdf]
+ * \li Params: By default dvi route is taken.
+ * \li Origin: sanda, 14 Apr 2010
+ * \endvar
+ */

Would it be possible somehow to set this based upon which viewer the user has selected? It seems a pain to have to configure the viewer and then also configure its forward search command. We'd have to have some map somewhere from possible viewers to commands....

rh

Reply via email to