kitty_remote_bindings/command/options.rs
1use std::path::PathBuf;
2
3use kitty_remote_bindings_macros::KittyCommandOption;
4
5use crate::model::WindowId;
6
7/// Represents the `--match` option
8//e id, title, pid, cwd, cmdline, num, env, var, state, neighbor, and recent
9#[derive(Clone, Debug, PartialEq, KittyCommandOption)]
10pub enum Matcher {
11 /// Match by windows id `--match id:windows_id`
12 #[prefix]
13 Id(WindowId),
14 // Title(String),
15 // Pid(u32),
16 // Cwd(String),
17 // CmdLine(String),
18 // Num(u32),
19 // Env(String),
20 // Var(String),
21 // State(String),
22 // Neighbor(String),
23 // Recent(u32),
24}
25
26/// Represents the possible values of th launch command's `--type` option
27#[derive(Clone, Debug, PartialEq, KittyCommandOption)]
28pub enum LaunchType {
29 Window,
30 Tab,
31 OsWindow,
32 Overlay,
33 OverlayMain,
34 Background,
35 Clipboard,
36 Primary,
37}
38
39/// Represents the possible values of the `--cwd` option
40#[derive(Clone, Debug, PartialEq, KittyCommandOption)]
41pub enum Cwd {
42 Current,
43 LastReported,
44 Root,
45 Path(PathBuf),
46}