diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-07-20 18:41:16 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-07-20 18:41:16 +0200 |
commit | 24d7d3e14ff14d6e43670023bd0862e82f9408e7 (patch) | |
tree | 79d0da401fac0dbc451f8c0ac63e2306d4c4ac16 /pkgs/by-name/ts/tskm/src/cli.rs | |
parent | modules/legacy/conf/iamb: Move to `by-name` and modernize (diff) | |
download | nixos-config-24d7d3e14ff14d6e43670023bd0862e82f9408e7.zip |
pkgs/tskm: Support raw paths in place of URLs
Otherwise, using `tskm` as an URL opener might fail (e.g., as `xdg-open /some/path`, would still invoke it).
Diffstat (limited to 'pkgs/by-name/ts/tskm/src/cli.rs')
-rw-r--r-- | pkgs/by-name/ts/tskm/src/cli.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/by-name/ts/tskm/src/cli.rs b/pkgs/by-name/ts/tskm/src/cli.rs index 23d9545f..359c1050 100644 --- a/pkgs/by-name/ts/tskm/src/cli.rs +++ b/pkgs/by-name/ts/tskm/src/cli.rs @@ -13,11 +13,11 @@ use std::{ffi::OsStr, path::PathBuf}; use anyhow::{bail, Result}; use clap::{builder::StyledStr, ArgAction, Parser, Subcommand, ValueEnum}; use clap_complete::{ArgValueCompleter, CompletionCandidate}; -use url::Url; use crate::{ interface::{ input::{Input, Tag}, + open::UrlLike, project::ProjectName, }, state, task, @@ -127,7 +127,7 @@ pub enum OpenCommand { project: task::Project, /// The URLs to open. - urls: Option<Vec<Url>>, + urls: Option<Vec<UrlLike>>, }, /// Open a selected project in it's Qutebrowser profile. @@ -136,7 +136,7 @@ pub enum OpenCommand { /// projects. Select { /// The URLs to open. - urls: Option<Vec<Url>>, + urls: Option<Vec<UrlLike>>, }, /// List all open tabs in the project. |