Compare commits

...

2 Commits

Author SHA1 Message Date
Maximilian Keßler
1a595c7ad1 use termite as shell 2021-09-16 22:55:49 +02:00
Maximilian Keßler
20a146d96c change \lecture command and corresponding regex 2021-09-16 22:55:37 +02:00
2 changed files with 5 additions and 5 deletions

View File

@ -19,5 +19,5 @@ DEFAULT_MASTER_FILE_NAME = 'master.tex'
MAX_LEN = 40
LECTURE_START_MARKER = 'start lectures'
LECTURE_END_MARKER = 'end lectures'
DEFAULT_NEW_LECTURE_HEADER = r'\lecture{{{number}}}{{{date}}}{{{title}}}'
DEFAULT_LECTURE_SEARCH_REGEX = r'lecture{(.*?)}{(.*?)}{(.*)}'
DEFAULT_NEW_LECTURE_HEADER = r'\lecture[]{{{date}}}{{{title}}}'
DEFAULT_LECTURE_SEARCH_REGEX = r'lecture.*({\d*})?{(.*?)}{(.*)}'

View File

@ -45,9 +45,9 @@ class Lecture:
def edit(self):
subprocess.Popen([
"x-terminal-emulator",
"-e", "zsh", "-i", "-c",
f"\\vim --servername kulak --remote-silent {str(self.file_path)}"
"termite",
"-e",
f"vim --servername tex-vorlesung --remote-silent {str(self.file_path)}"
])
def __str__(self):