summaryrefslogtreecommitdiffstats
path: root/src/verb/builtin.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-03-31 20:51:11 +0200
committerCanop <cano.petrole@gmail.com>2022-03-31 20:51:11 +0200
commit51153d26ce0c4ab80c7b0678ddbec03b3b01b34a (patch)
treef9b0468a580d0ae854101eb389953ab6eba8c7f8 /src/verb/builtin.rs
parent7019073b69a03aeb633ab0fabc84fecbf3482c2b (diff)
Sort by type, with dirs either first or last
3 new internals. With `:st` you can select to sort by type with directories first, sort by type with directories last, or not sorting. Fix #467
Diffstat (limited to 'src/verb/builtin.rs')
-rw-r--r--src/verb/builtin.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/verb/builtin.rs b/src/verb/builtin.rs
index 8bf70d6..69fc310 100644
--- a/src/verb/builtin.rs
+++ b/src/verb/builtin.rs
@@ -214,6 +214,7 @@ pub fn builtin_verbs() -> Vec<Verb> {
internal(sort_by_count).with_shortcut("sc"),
internal(sort_by_date).with_shortcut("sd"),
internal(sort_by_size).with_shortcut("ss"),
+ internal(sort_by_type).with_shortcut("st"),
external("rm", "rm -rf {file}", StayInBroot),
internal(toggle_counts).with_shortcut("counts"),
internal(toggle_dates).with_shortcut("dates"),