mirror of
https://github.com/imgurbot12/rmenu.git
synced 2025-02-12 21:25:03 +01:00
fix: forgor rmenu-plugin and to actually update config
This commit is contained in:
parent
14373d9f12
commit
2e436401f3
2 changed files with 14 additions and 2 deletions
|
@ -120,15 +120,24 @@ impl Into<Entry> for EntryArgs {
|
|||
/// Arguments for Options CLI Command
|
||||
#[derive(Debug, Args)]
|
||||
struct OptionArgs {
|
||||
/// Override Applicaiton Theme
|
||||
/// Override Applicaiton CSS
|
||||
#[arg(short = 'C', long)]
|
||||
pub css: Option<String>,
|
||||
/// Override Default View Page-Size
|
||||
#[arg(short = 's', long)]
|
||||
pub page_size: Option<usize>,
|
||||
/// Override Default Percentage Completion Before Page Load
|
||||
#[arg(short = 'l', long)]
|
||||
pub page_load: Option<f64>,
|
||||
/// Override Selection Jump Distance
|
||||
#[arg(short = 'd', long)]
|
||||
pub jump_dist: Option<usize>,
|
||||
/// Override Select on Hover Option
|
||||
#[arg(long)]
|
||||
pub hover_select: Option<bool>,
|
||||
/// Override Single-Click Activation Option
|
||||
#[arg(long)]
|
||||
pub single_click: Option<bool>,
|
||||
// search settings
|
||||
/// Override Default Placeholder
|
||||
#[arg(short = 'P', long)]
|
||||
|
@ -184,7 +193,6 @@ struct OptionArgs {
|
|||
#[arg(short = 'w', long)]
|
||||
pub window_width: Option<f64>,
|
||||
/// Override Window Height
|
||||
#[arg(short = 'h', long)]
|
||||
pub window_height: Option<f64>,
|
||||
}
|
||||
|
||||
|
@ -196,6 +204,8 @@ impl Into<Options> for OptionArgs {
|
|||
page_load: self.page_load,
|
||||
jump_dist: self.jump_dist,
|
||||
placeholder: self.placeholder,
|
||||
hover_select: self.hover_select,
|
||||
single_click: self.single_click,
|
||||
search_restrict: self.search_restrict,
|
||||
search_min_length: self.search_min_length,
|
||||
search_max_length: self.search_max_length,
|
||||
|
|
|
@ -27,6 +27,8 @@ plugins:
|
|||
cache: onlogin
|
||||
options:
|
||||
css: ~/.config/rmenu/themes/launchpad.css
|
||||
hover_select: true
|
||||
single_click: true
|
||||
page_size: 500
|
||||
transparent: true
|
||||
window_width: 1200
|
||||
|
|
Loading…
Reference in a new issue