merged stack_home_as_tilde & book_home_as_tilde to
`show_home_as_tilde`
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user