summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorLzzzzzt <101313294+Lzzzzzt@users.noreply.github.com>2023-08-05 06:36:38 +0800
committerGitHub <noreply@github.com>2023-08-04 18:36:38 -0400
commita97ca3027bf66dbf16db7737ad5288fa9aaa89f2 (patch)
tree0dbf25b3c658d109d195ca753e9b941c36e332f4 /config
parent48e42e21dd0c0774cdee649b2134a12ea9c5960e (diff)
feat: add user & group on foot and make linemode configturable and more options (#385)
* add user & group on footer * linemode have more options * linemode have more options * linemode have more options
Diffstat (limited to 'config')
-rw-r--r--config/joshuto.toml5
-rw-r--r--config/keymap.toml5
2 files changed, 9 insertions, 1 deletions
diff --git a/config/joshuto.toml b/config/joshuto.toml
index c106057..3986e35 100644
--- a/config/joshuto.toml
+++ b/config/joshuto.toml
@@ -22,6 +22,11 @@ tilde_in_titlebar = true
# none, absolute, relative
line_number_style = "none"
+# size, mtime, user, gourp, perm. can be combined with |.
+# `none` to disable, `all` to enable all
+# all and none can't be combined with other options
+linemode = "size"
+
[display.sort]
# lexical, mtime, natural, size, ext
sort_method = "natural"
diff --git a/config/keymap.toml b/config/keymap.toml
index 5e9e6d6..8a9f371 100644
--- a/config/keymap.toml
+++ b/config/keymap.toml
@@ -119,7 +119,10 @@ keymap = [
{ keys = ["m", "s"], command = "linemode size" },
{ keys = ["m", "m"], command = "linemode mtime" },
- { keys = ["m", "M"], command = "linemode sizemtime" },
+ { keys = ["m", "M"], command = "linemode size | mtime" },
+ { keys = ["m", "u"], command = "linemode user" },
+ { keys = ["m", "U"], command = "linemode user | group" },
+ { keys = ["m", "p"], command = "linemode perm" },
{ keys = ["g", "r"], command = "cd /" },
{ keys = ["g", "c"], command = "cd ~/.config" },