From ac06e0f5676c70687156201b943b892c28687b44 Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Wed, 24 Oct 2018 17:08:13 +0200 Subject: removed texopen.py --- texopen.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 texopen.py diff --git a/texopen.py b/texopen.py new file mode 100755 index 0000000..26baaf8 --- /dev/null +++ b/texopen.py @@ -0,0 +1,16 @@ +#!/usr/bin/python + +import sys +import subprocess + +if len(sys.argv) >= 3: + file = sys.argv[1] + line = sys.argv[2] + + print(file) + print(line) + + if file.endswith('.tikz'): + subprocess.call(['tikzit', file]) + else: + subprocess.call(['subl', file + ':' + line]) -- cgit v1.2.3