syncMyMoodle icon indicating copy to clipboard operation
syncMyMoodle copied to clipboard

Add option to remove prefix "(VO)" or "(VU)"

Open autoantwort opened this issue 3 years ago • 5 comments

Or make this the default for everybody.
Reason:
When I am in the file browser I want to type the name of the course to select the corresponding folder, but this is currently not possible.

autoantwort avatar Jun 21 '21 20:06 autoantwort

while at it, the semester prefix 21ss/ etc could also be optional

HarHarLinks avatar Jul 06 '21 10:07 HarHarLinks

Hm Moodle (or rather the way the ITC names moodle courses) does not easily provide that information but I think a regex with a named capture group could solve this pretty well. The default might be (?P<course_name>.*) but one could overwrite that in the config

septatrix avatar Jul 07 '21 21:07 septatrix

Oh, I did something like that just yesterday. This should be fixable somewhere around here, I am just not sure about the full set of possible prefixes. (e.g. "SK" and "AG" and "RE", for "Sprachkurs", "Arbeitsgruppe" and "Rechenübung" respectively) also exist.

https://github.com/Romern/syncMyMoodle/blob/f8f10da7cf6f79cf25711dd690e756938c3ebf77/syncmymoodle/main.py#L760

n0toose avatar Aug 19 '22 06:08 n0toose

Feedback: Mind the conflicts. (e.g. Downloading all of the material from the Informatik/Computer Science B.Sc. course "Software Quality Assurance" that way would mean that both folders would have the same name without the prefix.)

n0toose avatar Aug 19 '22 07:08 n0toose

Idea: What if we were to put the suffixes in the end of the directory name?

n0toose avatar Oct 24 '22 12:10 n0toose