Crate kitty_remote_bindings
source ·Expand description
Kitty remote command bindings for rust
This crate provides access to the Kitty terminal’s remote control functionality. At the moment
this is achieved ! by creating std::process::Command objects through a convenient API interface.
Examples:
Send text to Window 1
use std::process::Command;
use kitty_remote_bindings::{Matcher, MatcherExt, SendText, model::WindowId};
let mut send_text = SendText::new(r#"echo "Hello world""#.to_string());
send_text.matcher(Matcher::Id(WindowId(2)));
Command::from(&send_text)
.status()
.expect("failed to execute send-text");Modules
Structs
- Represents the “focus-window” remote command: kitty @ focus-window
- Represents the “ls” remote command: kitty @ ls
- Represents the “send-text” remote command: kitty @ send-text
Enums
- Represents the
--matchoption
Traits
- Parse and decode the output of Kitty’s remote commands.
- Provides convenience function to set the matcher of commands that supports this option.