Bug 387024 - manually update live preview and separate it from editor
Summary: manually update live preview and separate it from editor
Status: RESOLVED WORKSFORME
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.9.91
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-17 07:36 UTC by Stas
Modified: 2017-11-26 18:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stas 2017-11-17 07:36:10 UTC
1. It would be great to have an option to update live preview only manually but still show it all the time. While writing I often save my document after each sentence (just to be sure everything is saved when a crash happens, it is an old automatic behavior ;) ) but I do not want to compile my live preview each time I save a document. Often it is even a bad idea to compile after saving only one file (e. g. when I have a text file where I need a new command which I want to declare in the preamble). So adding a shortcut or a button for live preview while disable it on saving would be rely convenient.

2. It is related to the first part. How about make a temporary copy of the actual project and compile from that. In this way one could save a file and continue typing while the live preview will update to the saved version. For now the live preview just breaks when a file is modified while compiling. This feature could also solve the first problem I mentioned.

Thanks for such great software.
Comment 1 Michel Ludwig 2017-11-26 06:46:26 UTC
I'd suggest that you use the traditional LaTeX compilation mode, i.e. disable live preview and run LaTeX manually. You can configure ForwardPDF to display the PDF file in the integrated viewer.

By the way, the editor component in Kile makes backups of the file very frequently. There should be no need to manually save a file so often ;)
Comment 2 Stas 2017-11-26 18:41:36 UTC
Hello, thank you for the suggestion. However, this is not the same thing, as in case of normal compilation I loose the synchronization between source and preview. I want the preview to synchronize the position in the code and vice versa. 

To the save statement. The save for back-up is not the only issue. I often define new commands and they are in an extra mycommands.tex file. Now, when the live preview is enabled when I switch from the mycommands.tex file back to the text file, everything gets saved and the compilation of the live preview starts. But there is no need for me to update the preview as I have only added a commands without actually changing the real text. So I start to type in the text.tex file and the compilation breaks up Giving me some errors as output. Sometimes after such an error I have to run the live preview twice in order to have the preview compiled.

You see, there is more than just "saving" behind this wishlist.

I I can imagine that implementing this feature would not be a big deal as the functionality already exists and only a b´new button with a command has to be created.