From 2ee898ebd1b59557270af13925e484d9b0dd0b3f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 19 Jul 2026 14:30:58 +0300 Subject: Default YouTube links to chromium Change the --youtube-browser-cmd default from unset to "chromium" so youtube.com/youtu.be links open in a browser better suited for video, while the general --browser-cmd default stays firefox (open on macOS). Pass --youtube-browser-cmd "" to route YouTube links through --browser-cmd like any other URL. README updated accordingly. Co-Authored-By: Claude Opus 4.8 --- README.md | 2 +- cmd/tasksamurai/main.go | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 35f5992..ffd14b6 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ tasksamurai -- -excludetag +includetag ### Flags - `--browser-cmd `: command used to open URLs (default: firefox on Linux, open on macOS) -- `--youtube-browser-cmd `: command used to open `youtube.com` / `youtu.be` links with the `o` key (default: unset, so YouTube links use `--browser-cmd`). Set it to, e.g., `chromium` to play YouTube videos in a different browser than your default. +- `--youtube-browser-cmd `: command used to open `youtube.com` / `youtu.be` links with the `o` key (default: `chromium`, so YouTube videos play in a browser better suited for them than the general `--browser-cmd` default). Set it to `""` to route YouTube links through `--browser-cmd` like any other URL. - `--agent-hotkey `: hotkey used to toggle the `+agent` / `-agent` filter (default: `3`) - `--debug-log `: path to debug log file for Taskwarrior commands - `--debug-dir `: directory for runtime debug output (goroutine dumps, profiles) diff --git a/cmd/tasksamurai/main.go b/cmd/tasksamurai/main.go index 8d4924c..0326b2f 100644 --- a/cmd/tasksamurai/main.go +++ b/cmd/tasksamurai/main.go @@ -24,10 +24,11 @@ func main() { debugLog := flag.String("debug-log", "", "path to debug log file") debugDir := flag.String("debug-dir", "", "directory for runtime debug output (goroutine dumps, profiles)") browserCmd := flag.String("browser-cmd", browserCmdDefault, "command used to open URLs") - // Empty by default: YouTube links then open with --browser-cmd like any - // other URL. Set this to route youtube.com/youtu.be links to an - // alternative browser (e.g. chromium) that plays them better. - youtubeBrowserCmd := flag.String("youtube-browser-cmd", "", "command used to open youtube.com/youtu.be links (defaults to --browser-cmd)") + // Defaults to chromium so youtube.com/youtu.be links play in a browser + // better suited for video than the general default (firefox). Set to an + // empty string ("") to route YouTube links through --browser-cmd like any + // other URL. + youtubeBrowserCmd := flag.String("youtube-browser-cmd", "chromium", "command used to open youtube.com/youtu.be links (defaults to chromium; set to \"\" to use --browser-cmd)") agentHotkey := flag.String("agent-hotkey", "3", "key used to toggle the +agent/-agent filter") disco := flag.Bool("disco", false, "enable disco mode") ultra := flag.Bool("ultra", false, "start directly in ultra mode") -- cgit v1.2.3