mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
make some order thing
This commit is contained in:
parent
85b84e22da
commit
ecc42e5953
3 changed files with 22 additions and 23 deletions
|
|
@ -20,24 +20,23 @@ ueberzug_offset = [ 0, 0, 0, 0 ]
|
||||||
cd_position = "top-center"
|
cd_position = "top-center"
|
||||||
cd_offset = [0, 2, 50, 3]
|
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_position = "top-center"
|
||||||
create_offset = [0, 2, 50, 3]
|
create_offset = [0, 2, 50, 3]
|
||||||
|
|
||||||
rename_position = "hovered"
|
rename_position = "hovered"
|
||||||
rename_offset = [0, 1, 50, 3]
|
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]
|
[select]
|
||||||
open_position = "hovered"
|
open_position = "hovered"
|
||||||
# height takes no effect
|
|
||||||
open_offset = [0, 1, 50, 3]
|
open_offset = [0, 1, 50, 3]
|
||||||
|
|
||||||
[opener]
|
[opener]
|
||||||
|
|
|
||||||
|
|
@ -8,21 +8,21 @@ pub struct Input {
|
||||||
// cd
|
// cd
|
||||||
pub cd_position: Position,
|
pub cd_position: Position,
|
||||||
pub cd_offset: Offset,
|
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
|
// create
|
||||||
pub create_position: Position,
|
pub create_position: Position,
|
||||||
pub create_offset: Offset,
|
pub create_offset: Offset,
|
||||||
// rename
|
// rename
|
||||||
pub rename_position: Position,
|
pub rename_position: Position,
|
||||||
pub rename_offset: Offset,
|
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 {
|
impl Default for Input {
|
||||||
|
|
|
||||||
|
|
@ -5,16 +5,16 @@ use serde::{Deserialize, Serialize};
|
||||||
pub enum Position {
|
pub enum Position {
|
||||||
#[serde(rename = "top-left")]
|
#[serde(rename = "top-left")]
|
||||||
TopLeft,
|
TopLeft,
|
||||||
#[serde(rename = "top-right")]
|
|
||||||
TopRight,
|
|
||||||
#[serde(rename = "top-center")]
|
#[serde(rename = "top-center")]
|
||||||
TopCenter,
|
TopCenter,
|
||||||
|
#[serde(rename = "top-right")]
|
||||||
|
TopRight,
|
||||||
#[serde(rename = "center")]
|
#[serde(rename = "center")]
|
||||||
Center,
|
Center,
|
||||||
#[serde(rename = "bottom-center")]
|
|
||||||
BottomCenter,
|
|
||||||
#[serde(rename = "bottom-left")]
|
#[serde(rename = "bottom-left")]
|
||||||
BottomLeft,
|
BottomLeft,
|
||||||
|
#[serde(rename = "bottom-center")]
|
||||||
|
BottomCenter,
|
||||||
#[serde(rename = "bottom-right")]
|
#[serde(rename = "bottom-right")]
|
||||||
BottomRight,
|
BottomRight,
|
||||||
#[serde(rename = "hovered")]
|
#[serde(rename = "hovered")]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue