diff options
| author | Paul Buetow <paul@buetow.org> | 2026-07-19 14:30:58 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-07-19 14:30:58 +0300 |
| commit | 2ee898ebd1b59557270af13925e484d9b0dd0b3f (patch) | |
| tree | 97cb45ede0fecdc011e30d923cc99118d104391b | |
| parent | 4c057d02a11a81579836e451e74c0e7ebb1649ea (diff) | |
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 <noreply@anthropic.com>
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | cmd/tasksamurai/main.go | 9 |
2 files changed, 6 insertions, 5 deletions
@@ -69,7 +69,7 @@ tasksamurai -- -excludetag +includetag ### Flags - `--browser-cmd <command>`: command used to open URLs (default: firefox on Linux, open on macOS) -- `--youtube-browser-cmd <command>`: 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>`: 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 <key>`: hotkey used to toggle the `+agent` / `-agent` filter (default: `3`) - `--debug-log <path>`: path to debug log file for Taskwarrior commands - `--debug-dir <directory>`: 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") |
