Skip to content

Commit

Permalink
➕ added path bar keyboard shortcut for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
gy-mate committed Aug 25, 2024
1 parent 48560a1 commit 6f57cdf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/moodle_to_vikwikiquiz/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,18 @@ def main() -> None:
match quiz.state_of_illustrations:
case StateOfIllustrations.YesAndAvailable:
upload_directory = quiz.get_illustrations_ready_for_upload()
if operating_system == "Darwin":
pyperclip.copy(str(upload_directory))
go_to_folder_keyboard_shortcuts = {
"Darwin": "Command-Shift-G",
"Linux": "Ctrl-L",
}
print(
f"""The batch upload page of the wiki will now be opened. After that, please...
• click on 'Fájlok kiválasztása...'"""
)
if operating_system == "Darwin":
if operating_system == "Darwin" or operating_system == "Linux":
pyperclip.copy(str(upload_directory))
print(
""" • press Command–Shift–G
f""" • press {go_to_folder_keyboard_shortcuts[operating_system]}
• paste the content of the clipboard
• press Enter"""
)
Expand Down

0 comments on commit 6f57cdf

Please sign in to comment.