Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 62 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ members = [
"crates/mds-config",
"crates/mds-default",
"crates/mds-dns-sd",
"crates/mds-ipinfo",
"crates/mds-ipinfo", "crates/mds-keybindings",
"crates/mds-log",
"crates/mds-netscan",
"crates/mds-tui",
Expand All @@ -82,6 +82,7 @@ rust-version = "1.88.0"

[workspace.dependencies]
mds-config.path = "crates/mds-config"
mds-keybindings.path = "crates/mds-keybindings"
mds-dns-sd.path = "crates/mds-dns-sd"
mds-log.path = "crates/mds-log"
mds-util.path = "crates/mds-util"
Expand All @@ -91,6 +92,7 @@ mds-netscan.path = "crates/mds-netscan"
mds-ipinfo.path = "crates/mds-ipinfo"
mds-collector.path = "crates/mds-collector"
mds-default.path = "crates/mds-default"
derive_deref = "1.1.1"
console = "0.16.1"
serde = { version = "1.0", default-features = false, features = ["derive"] }
axoupdater = { version = "0.9.1", default-features = false }
Expand All @@ -114,6 +116,7 @@ config = { version = "0.15.16", features = ["toml"], default-features = false }
rlimit = "0.10.2"
log = "0.4"
smallvec = "1.15.1"
toml = "0.9.8"

# Dev-dependencies
testresult = "0.4.1"
Expand Down
22 changes: 22 additions & 0 deletions crates/mds-keybindings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "mds-keybindings"
description.workspace = true
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
readme.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true

[dependencies]
ratatui.workspace = true
serde.workspace = true
derive_deref.workspace = true
strum.workspace = true
config.workspace = true
toml.workspace = true

[lints]
workspace = true
27 changes: 27 additions & 0 deletions crates/mds-keybindings/src/action.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
use serde::{Deserialize, Serialize};
use strum::Display;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Display, Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub enum Action {
Quit,
Close,
IncreaseVerbosity,
DecreaseVerbosity,
ToggleWindow,
NavigateSelect,
NavigateRight,
NavigateLeft,
NavigateDown,
NavigateUp,
NavigatePageup,
NavigatePagedown,
NavigateScrollToEnd,
NavigateScrollToBeginning,
IncreaseLayoutFill,
DecreaseLayoutFill,
Refresh,
CopyToClipboard,
Config,
Search,
}
Loading
Loading