diff --git a/src/bin/xplr.rs b/src/bin/xplr.rs index 027ef30..fa94f0a 100644 --- a/src/bin/xplr.rs +++ b/src/bin/xplr.rs @@ -15,32 +15,32 @@ fn main() { xplr [FLAG]... [OPTION]... [PATH] [SELECTION]..."###; let flags = r###" - - Reads new-line (\n) separated paths from stdin - -- Denotes the end of command-line flags and options - --force-focus Focuses on the given , even if it is a directory - -h, --help Prints help information - -m, --pipe-msg-in Helps safely passing messages to the active xplr - session, use %%, %s and %q as the placeholders - -M, --print-msg-in Like --pipe-msg-in, but prints the message instead of - passing to the active xplr session - --print-pwd-as-result Prints the present working directory when quitting - with `PrintResultAndQuit` - --read-only Enables read-only mode (config.general.read_only) - --read0 Reads paths separated using the null character (\0) - --write0 Prints paths separated using the null character (\0) - -0 --null Combines --read0 and --write0 - -V, --version Prints version information"###; + - Reads new-line (\n) separated paths from stdin + -- Denotes the end of command-line flags and options + --force-focus Focuses on the given , even if it is a directory + -h, --help Prints help information + -m, --pipe-msg-in Helps safely passing messages to the active xplr + session, use %%, %s and %q as the placeholders + -M, --print-msg-in Like --pipe-msg-in, but prints the message instead of + passing to the active xplr session + --print-pwd-as-result Prints the present working directory when quitting + with `PrintResultAndQuit` + --read-only Enables read-only mode (config.general.read_only) + --read0 Reads paths separated using the null character (\0) + --write0 Prints paths separated using the null character (\0) + -0 --null Combines --read0 and --write0 + -V, --version Prints version information"###; let options = r###" - -c, --config Specifies a custom config file (default is - "$HOME/.config/xplr/init.lua") - -C, --extra-config ... Specifies extra config files to load - --on-load ... Sends messages when xplr loads - --vroot Treats the specified path as the virtual root"###; + -c, --config Specifies a custom config file (default is + "$HOME/.config/xplr/init.lua") + -C, --extra-config ... Specifies extra config files to load + --on-load ... Sends messages when xplr loads + --vroot Treats the specified path as the virtual root"###; let args = r###" - Path to focus on, or enter if directory, (default is `.`) - ... Paths to select, requires to be set explicitly"###; + Path to focus on, or enter if directory, (default is `.`) + ... Paths to select, requires to be set explicitly"###; let help = format!( "xplr {}\n{}\n{}\n\nUSAGE:{}\n\nFLAGS:{}\n\nOPTIONS:{}\n\nARGS:{}", diff --git a/src/init.lua b/src/init.lua index ee27d8f..f03a565 100644 --- a/src/init.lua +++ b/src/init.lua @@ -801,7 +801,7 @@ xplr.config.node_types.symlink.meta.icon = "§" -- xplr.config.node_types.mime_essence = { -- application = { -- -- application/* --- ["*"] = { meta = { icon = "a" } } +-- ["*"] = { meta = { icon = "a" } }, -- -- -- application/pdf -- pdf = { meta = { icon = "" }, style = { fg = "Blue" } }, @@ -2465,7 +2465,6 @@ xplr.config.modes.builtin.sort = { "ExplorePwdAsync", }, }, - ["c"] = { help = "by created", messages = { @@ -2473,7 +2472,6 @@ xplr.config.modes.builtin.sort = { "ExplorePwdAsync", }, }, - ["C"] = { help = "by created reverse", messages = { @@ -2481,7 +2479,6 @@ xplr.config.modes.builtin.sort = { "ExplorePwdAsync", }, }, - ["l"] = { help = "by last modified", messages = { @@ -2489,7 +2486,6 @@ xplr.config.modes.builtin.sort = { "ExplorePwdAsync", }, }, - ["L"] = { help = "by last modified reverse", messages = {