Compare commits
10 Commits
0c217c5129
...
v0.3.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 14f1be5a2a | |||
| 49eac25d48 | |||
| 3459c67377 | |||
| 0ce858da5c | |||
| 84945b9d83 | |||
| 93c5c30021 | |||
| d52422d839 | |||
| ac7b67748d | |||
| 361df64b04 | |||
| 6eddd02fb4 |
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mould"
|
||||
version = "0.2.1"
|
||||
version = "0.3.0"
|
||||
edition = "2024"
|
||||
authors = ["Nils Pukropp <nils@narl.io>"]
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@ use std::fs;
|
||||
|
||||
/// Configuration for the application's appearance.
|
||||
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||
#[serde(default)]
|
||||
pub struct ThemeConfig {
|
||||
/// If true, skip rendering the background block to let the terminal's transparency show.
|
||||
#[serde(default)]
|
||||
pub transparent: bool,
|
||||
/// Color for standard background areas (when not transparent).
|
||||
pub crust: String,
|
||||
@@ -91,6 +91,7 @@ impl Default for ThemeConfig {
|
||||
|
||||
/// Custom keybindings for navigation and application control.
|
||||
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||
#[serde(default)]
|
||||
pub struct KeybindsConfig {
|
||||
pub down: String,
|
||||
pub up: String,
|
||||
|
||||
@@ -121,6 +121,7 @@ where
|
||||
self.app.running = false;
|
||||
} else if c_str == self.config.keybinds.search {
|
||||
self.app.mode = Mode::Search;
|
||||
self.app.search_query.clear();
|
||||
self.app.status_message = Some(format!("{} ", self.config.keybinds.search));
|
||||
} else if c_str == self.config.keybinds.next_match {
|
||||
self.app.jump_next_match();
|
||||
|
||||
Reference in New Issue
Block a user