merged stack_home_as_tilde & book_home_as_tilde to

`show_home_as_tilde`
This commit is contained in:
2025-01-28 00:01:17 +01:00
parent f4676eb2c3
commit 5f0121a404
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ impl Bookmarks {
);
let mut path = apply_format(path.to_str().unwrap(), &config.styles.bookmarks_path_style);
if config.format.book_home_as_tilde {
if config.format.show_home_as_tilde {
let home = match home_dir() {
Some(value) => match value.into_os_string().into_string() {
Ok(value) => value,
+1 -3
View File
@@ -35,11 +35,9 @@ pub struct FormatSettings {
#[default_value(" - ")]
pub stack_separator: String,
#[default_value(false)]
pub stack_home_as_tilde: bool,
pub show_home_as_tilde: bool,
#[default_value(" - ")]
pub bookmarks_separator: String,
#[default_value(false)]
pub book_home_as_tilde: bool,
}
#[derive(Debug, Clone, Default, ConfigParser)]
+1 -1
View File
@@ -50,7 +50,7 @@ impl Stack {
&config.styles.stack_separator_style,
);
let mut path = apply_format(item.to_str().unwrap(), &config.styles.stack_path_style);
if config.format.stack_home_as_tilde {
if config.format.show_home_as_tilde {
let home = match home_dir() {
Some(value) => match value.into_os_string().into_string() {
Ok(value) => value,