summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml4
-rw-r--r--src/filesystems/filesystems_state.rs14
-rw-r--r--website/docs/conf_verbs.md3
4 files changed, 13 insertions, 12 deletions
diff --git a/Cargo.lock b/Cargo.lock
index e71dff8..4b15586 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1633,9 +1633,9 @@ dependencies = [
[[package]]
name = "terminal-clipboard"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e2f39144c8166526298d0d398008de92ab16be2ef8ba0a299a173b9cfe20579c"
+checksum = "58a7bd0c28e9221173c7d32e774bc3c5432fe788f91984dd1b78c501b5e7d1df"
dependencies = [
"clipboard-win",
"once_cell",
diff --git a/Cargo.toml b/Cargo.toml
index 987e046..bc18ca1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "broot"
-version = "1.7.0"
+version = "1.7.1"
authors = ["dystroy <denys.seguret@gmail.com>"]
repository = "https://github.com/Canop/broot"
documentation = "https://dystroy.org/broot"
@@ -55,7 +55,7 @@ strict = "0.1.4"
syntect = "4.5"
tempfile = "3.2"
termimad = "0.17.0"
-terminal-clipboard = { version = "0.3.0", optional = true }
+terminal-clipboard = { version = "0.3.1", optional = true }
toml = "0.5"
umask = "1.0"
unicode-width = "0.1.8"
diff --git a/src/filesystems/filesystems_state.rs b/src/filesystems/filesystems_state.rs
index aba110b..41ed07f 100644
--- a/src/filesystems/filesystems_state.rs
+++ b/src/filesystems/filesystems_state.rs
@@ -324,8 +324,6 @@ impl PanelState for FilesystemState {
cw.queue_g_string(&styles.default, format!("{:^width$}", "type", width = w_type))?;
cw.queue_char(border_style, '│')?;
}
- cw.queue_g_string(&styles.default, "size".to_string())?;
- cw.queue_char(border_style, '│')?;
if e_use {
cw.queue_g_string(&styles.default, format!(
"{:^width$}", if wc_use > 4 { "usage" } else { "use" }, width = wc_use
@@ -334,6 +332,8 @@ impl PanelState for FilesystemState {
}
cw.queue_g_string(&styles.default, "free".to_string())?;
cw.queue_char(border_style, '│')?;
+ cw.queue_g_string(&styles.default, "size".to_string())?;
+ cw.queue_char(border_style, '│')?;
cw.queue_g_string(&styles.default, "mount point".to_string())?;
cw.fill(border_style, &SPACE_FILLING)?;
//- horizontal line
@@ -409,9 +409,6 @@ impl PanelState for FilesystemState {
// size, used, free
if let Some(stats) = mount.stats.as_ref().filter(|s| s.size() > 0) {
let share_color = super::share_color(stats.use_share());
- // size
- cw.queue_g_string(txt_style, format!("{:>4}", file_size::fit_4(mount.size())))?;
- cw.queue_char(border_style, '│')?;
// used
if e_use {
cw.queue_g_string(txt_style, format!("{:>4}", file_size::fit_4(stats.used())))?;
@@ -432,10 +429,10 @@ impl PanelState for FilesystemState {
share_style.set_fg(share_color);
cw.queue_g_string(&share_style, format!("{:>4}", file_size::fit_4(stats.available())))?;
cw.queue_char(border_style, '│')?;
- } else {
// size
- cw.repeat(txt_style, &SPACE_FILLING, w_size)?;
+ cw.queue_g_string(txt_style, format!("{:>4}", file_size::fit_4(mount.size())))?;
cw.queue_char(border_style, '│')?;
+ } else {
// used
if e_use {
cw.repeat(txt_style, &SPACE_FILLING, wc_use)?;
@@ -444,6 +441,9 @@ impl PanelState for FilesystemState {
// free
cw.repeat(txt_style, &SPACE_FILLING, w_free)?;
cw.queue_char(border_style, '│')?;
+ // size
+ cw.repeat(txt_style, &SPACE_FILLING, w_size)?;
+ cw.queue_char(border_style, '│')?;
}
// mount point
let s = &mount.info.mount_point.to_string_lossy();
diff --git a/website/docs/conf_verbs.md b/website/docs/conf_verbs.md
index 95bc9b1..9e245ef 100644
--- a/website/docs/conf_verbs.md
+++ b/website/docs/conf_verbs.md
@@ -423,7 +423,8 @@ internal = ":input_del_word_right"
## Copy, Cut, Paste, in input
-By default, only pasting into input is bound (with <kbd>ctrl</kbd><kbd>V</kbd>), because you don't usually write long texts here, but you may bind copying and cutting too:
+Pasting into input is bound to <kbd>ctrl</kbd><kbd>V</kbd> but copying from input and cutting aren't bount by default, because you don't usually write long texts here.
+You may add those bindings if you wish:
```hjson
{ key: "ctrl-c", internal: ":input_selection_copy" }