From 3d507acb42554b2551024ee3ca8490c203a1a9f8 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 29 Jun 2025 10:32:13 +0200 Subject: pkgs/river-mk-keymap: Improve with key-chord support and which-key interface --- pkgs/by-name/ri/river-mk-keymap/src/cli.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'pkgs/by-name/ri/river-mk-keymap/src/cli.rs') diff --git a/pkgs/by-name/ri/river-mk-keymap/src/cli.rs b/pkgs/by-name/ri/river-mk-keymap/src/cli.rs index e3c49310..61646cfd 100644 --- a/pkgs/by-name/ri/river-mk-keymap/src/cli.rs +++ b/pkgs/by-name/ri/river-mk-keymap/src/cli.rs @@ -16,6 +16,16 @@ use clap::Parser; #[command(author, version, about, long_about = None)] /// A tool to manage your key mappings for the river window manager pub(super) struct Args { - /// Path to mappings JSON file - pub path: PathBuf, + #[command(subcommand)] + pub command: SubCommand, + + #[arg(long, short)] + /// Path to mapping config JSON file + pub keymap: PathBuf, +} + +#[derive(clap::Subcommand, Clone, Debug)] +pub(super) enum SubCommand { + Init {}, + ShowHelp {}, } -- cgit 1.4.1