Add examples to App command dialog

Show platform-specific examples when adding or editing an App command:
- Windows: notepad.exe, paths with quotes
- Linux: firefox with URL
- macOS: open -a Safari

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-03 18:56:24 -08:00
parent 063949cd7d
commit a1a7334772

View File

@@ -243,7 +243,15 @@ class CommandBuilder(QWidget):
elif cmd_type == "app": elif cmd_type == "app":
from PySide6.QtWidgets import QInputDialog from PySide6.QtWidgets import QInputDialog
cmd, ok = QInputDialog.getText(self, "App Command", "Enter application command:") cmd, ok = QInputDialog.getText(
self, "App Command",
"Enter application command:\n\n"
"Examples:\n"
" Windows: notepad.exe\n"
" Windows: \"C:\\Program Files\\App\\app.exe\"\n"
" Linux: firefox https://example.com\n"
" macOS: open -a Safari"
)
if not ok or not cmd: if not ok or not cmd:
return return
command["command"] = cmd command["command"] = cmd
@@ -314,7 +322,13 @@ class CommandBuilder(QWidget):
elif cmd_type == "app": elif cmd_type == "app":
text, ok = QInputDialog.getText( text, ok = QInputDialog.getText(
self, "Edit App", "Enter application command:", self, "Edit App",
"Enter application command:\n\n"
"Examples:\n"
" Windows: notepad.exe\n"
" Windows: \"C:\\Program Files\\App\\app.exe\"\n"
" Linux: firefox https://example.com\n"
" macOS: open -a Safari",
text=cmd.get("command", "") text=cmd.get("command", "")
) )
if ok and text: if ok and text: