From: Florian H. <flo...@gm...> - 2018-11-14 16:46:32
|
Hi there! I'm kind of new to texstudio and I'm struggeling to achive a simple function: I want to run a git commit and a git push everytime I hit the "Compile and View" button. To implement that feature I created the following lines to a "User Macro": %SCRIPT buildManager.runCommand("git commit -a -m \"autosave\"", editor.fileName()) buildManager.runCommand("git push origin master", editor.fileName()) and I set the trigger to ?after-command-run. But for some reason texstudion crashes as soon as I try it (with the "Compile and view button", the "Run script" button seems to work fine.) I'm also interested if it is possible to include a timestamp into the commit message and maybe redirect the output of the commands to the "Messages" Tab. Thanks for helping Flo |