From 7e23ec1c90f242bebc155728a260862b43d8062f Mon Sep 17 00:00:00 2001 From: Alexander Mohr Date: Fri, 1 Aug 2025 22:32:52 +0200 Subject: [PATCH] config cleanup unused and non supported options --- README.md | 3 +-- worf/src/lib/config.rs | 9 --------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/README.md b/README.md index 69b1f2f..a5c5659 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,6 @@ The command line options have precedence over the configuration file. | dynamic_lines_limit | bool | true | Dynamic lines do not exceed max height | | layer | Layer | Top | Defines the layer worf is running on | | single_click | bool | false | Single click selects entry | -| pre_display_exec | bool | None | Pre-display exec option | | fuzzy_min_score | float | 0.0 | Minimum score for fuzzy search | | row_box_orientation | Orientation | Horizontal | Orientation of items in row box | | line_wrap | WrapMode | None | Defines if lines should wrap | @@ -251,7 +250,6 @@ dynamic_lines = false dynamic_lines_limit = true layer = "Top" single_click = false -pre_display_exec = false fuzzy_min_score = 0.0 row_box_orientation = "Horizontal" line_wrap = "None" @@ -354,6 +352,7 @@ The possibilities are endless! Here are some powerful examples of what you can b - `exec-search` not supported - `parse-search` not supported - `pre_display_exec` not supported +- `pre-display-cmd` not supported - All custom keys that change the default bindings for navigation like up, down, page, etc. - key_custom_(n) is not supported, such specialized behaviour can be achieved via the API though. diff --git a/worf/src/lib/config.rs b/worf/src/lib/config.rs index eca2018..b4bdfbd 100644 --- a/worf/src/lib/config.rs +++ b/worf/src/lib/config.rs @@ -455,9 +455,6 @@ pub struct Config { #[clap(short = 'i', long = "insensitive")] insensitive: Option, - #[clap(short = 'q', long = "parse-search")] - parse_search: Option, // todo support this - /// set where the window is displayed. /// can be used to anchor a window to an edge by /// setting top,left for example @@ -501,9 +498,6 @@ pub struct Config { // #[clap(short = 'o', long = "monitor")] // monitor: Option, // todo support this - - // #[clap(short = 'r', long = "pre-display-cmd")] - // pre_display_cmd: Option, // todo support this /// Defines if window is aligned vertically or horizontally. #[clap(long = "orientation")] orientation: Option, @@ -578,9 +572,6 @@ pub struct Config { #[clap(long = "single-click")] single_click: Option, - #[clap(long = "pre-display-exec")] - pre_display_exec: Option, // todo support this - /// Minimum score for a fuzzy search to be shown #[clap(long = "fuzzy-min-score")] fuzzy_min_score: Option,