diff --git a/yazi-config/preset/yazi.toml b/yazi-config/preset/yazi.toml index 968de7cd..b20e055e 100644 --- a/yazi-config/preset/yazi.toml +++ b/yazi-config/preset/yazi.toml @@ -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] diff --git a/yazi-config/src/popup/input.rs b/yazi-config/src/popup/input.rs index 6f4fd953..c0d98717 100644 --- a/yazi-config/src/popup/input.rs +++ b/yazi-config/src/popup/input.rs @@ -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 { diff --git a/yazi-config/src/popup/position.rs b/yazi-config/src/popup/position.rs index af517184..9de51f57 100644 --- a/yazi-config/src/popup/position.rs +++ b/yazi-config/src/popup/position.rs @@ -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")]