split view with two different documents / how to open easily
Dear list, hello, I wonder if there ist a possibility, that LyX opens two documents more easily than the following procedure, I do at least daily to get a split view (divide view in left and right) with two different documents. I use OSX10.13.6 and LyX 2.3.1-1. • open LyX • one of the two lastly used documents is opened • I choose view/divide view into left and right (sorry, might only be analogous as I use LyX in German) • I open the second document, which opens in a separate window • I click into the divided document and open the second document again Now I have the desired split view with two different documents, while the second one also stays opened in the background. Thanks for help Jess
Re: split view with two different documents / how to open easily
On 12/8/18 4:02 AM, jezZiFeR wrote: Dear list, hello, I wonder if there ist a possibility, that LyX opens two documents more easily than the following procedure, I do at least daily to get a split view (divide view in left and right) with two different documents. I use OSX10.13.6 and LyX 2.3.1-1. * open LyX * one of the two lastly used documents is opened * I choose view/divide view into left and right (sorry, might only be analogous as I use LyX in German) * I open the second document, which opens in a separate window * I click into the divided document and open the second document again Now I have the desired split view with two different documents, while the second one also stays opened in the background. Thanks for help Jess First, if you have not already done so, turn on "Tools > Preferences... > Look & Feel > Document Handling > Load opened files from last session" and save the setting. Thereafter, if you have two documents open side-by-side in LyX and you exit LyX without closing either document, the same two documents will open the next time you start LyX (but not in a side-by-side view, which brings me to the next tweak). To get side-by-side view automatically, set up a new program launcher with the following command line (including the quotation marks): lyx -x "view-split horizontal" When you use that launcher (and assuming your last session had two documents (A and B) open, LyX will open up with two side-by-side views. A and B will both be open in the left view; whichever one was the active document (containing the cursor) on the left side in the previous session will also open in the right side. I don't use OSX, so I'm afraid I can't help with the launcher setup. It would be nice if there were a way to eliminate the duplicate copy in the left view of whichever document is in the right view, but the only way I can see to do that would require the ability to programmatically switch from a buffer in the right view to a buffer in the left view, and the buffer-move LFUNs apparently won't jump view boundaries. I suppose you could file an enhancement request if that's a significant pain point for you. Paul
Re: split view with two different documents / how to open easily
On Sat, Dec 8, 2018 at 3:03 AM jezZiFeR wrote: > I wonder if there ist a possibility, that LyX opens two documents more > easily than the following procedure, I do at least daily to get a split > view (divide view in left and right) with two different documents. I use > OSX10.13.6 and LyX 2.3.1-1. > >- open LyX >- one of the two lastly used documents is opened >- I choose view/divide view into left and right (sorry, might only be >analogous as I use LyX in German) >- I open the second document, which opens in a separate window >- I click into the divided document and open the second document again > > Now I have the desired split view with two different documents, while the > second one also stays opened in the background. > Hm, I'm not sure why opening your second document opens a second window. Here is what I do to get a single window split into left and right panes: 1. Open LyX (which brings up the files I was working on the last time I closed LyX) - Like you, I have set this option in my preferences. 2. Hit Cmd-Shift-S to split the window vertically on the current document. - This is a shortcut I set up in my preferences. 3. If the second document I want was one of the ones that loaded, I simply click on the tab for it and I'm done (perhaps optionally closing other tabs). 4. Otherwise, File → Open to open the second document. HTH. -chris