make some order thing

This commit is contained in:
sxyazi 2023-11-15 10:21:46 +08:00
parent 85b84e22da
commit ecc42e5953
No known key found for this signature in database
3 changed files with 22 additions and 23 deletions

View file

@ -20,24 +20,23 @@ ueberzug_offset = [ 0, 0, 0, 0 ]
cd_position = "top-center"
cd_offset = [0, 2, 50, 3]
search_position = "top-center"
search_offset = [0, 2, 50, 3]
find_position = "top-center"
find_offset = [0, 2, 50, 3]
shell_position = "top-center"
shell_offset = [0, 2, 50, 3]
create_position = "top-center"
create_offset = [0, 2, 50, 3]
rename_position = "hovered"
rename_offset = [0, 1, 50, 3]
find_position = "top-center"
find_offset = [0, 2, 50, 3]
search_position = "top-center"
search_offset = [0, 2, 50, 3]
shell_position = "top-center"
shell_offset = [0, 2, 50, 3]
[select]
open_position = "hovered"
# height takes no effect
open_offset = [0, 1, 50, 3]
[opener]

View file

@ -8,21 +8,21 @@ pub struct Input {
// cd
pub cd_position: Position,
pub cd_offset: Offset,
// search
pub search_position: Position,
pub search_offset: Offset,
// find
pub find_position: Position,
pub find_offset: Offset,
// shell
pub shell_position: Position,
pub shell_offset: Offset,
// create
pub create_position: Position,
pub create_offset: Offset,
// rename
pub rename_position: Position,
pub rename_offset: Offset,
// find
pub find_position: Position,
pub find_offset: Offset,
// search
pub search_position: Position,
pub search_offset: Offset,
// shell
pub shell_position: Position,
pub shell_offset: Offset,
}
impl Default for Input {

View file

@ -5,16 +5,16 @@ use serde::{Deserialize, Serialize};
pub enum Position {
#[serde(rename = "top-left")]
TopLeft,
#[serde(rename = "top-right")]
TopRight,
#[serde(rename = "top-center")]
TopCenter,
#[serde(rename = "top-right")]
TopRight,
#[serde(rename = "center")]
Center,
#[serde(rename = "bottom-center")]
BottomCenter,
#[serde(rename = "bottom-left")]
BottomLeft,
#[serde(rename = "bottom-center")]
BottomCenter,
#[serde(rename = "bottom-right")]
BottomRight,
#[serde(rename = "hovered")]