Documentation fixes and cli help improvement

pull/611/head
Arijit Basu 1 year ago
parent 4f0db1f3e3
commit 252a1f5c37
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

@ -15,32 +15,32 @@ fn main() {
xplr [FLAG]... [OPTION]... [PATH] [SELECTION]..."###; xplr [FLAG]... [OPTION]... [PATH] [SELECTION]..."###;
let flags = r###" let flags = r###"
- Reads new-line (\n) separated paths from stdin - Reads new-line (\n) separated paths from stdin
-- Denotes the end of command-line flags and options -- Denotes the end of command-line flags and options
--force-focus Focuses on the given <PATH>, even if it is a directory --force-focus Focuses on the given <PATH>, even if it is a directory
-h, --help Prints help information -h, --help Prints help information
-m, --pipe-msg-in Helps safely passing messages to the active xplr -m, --pipe-msg-in Helps safely passing messages to the active xplr
session, use %%, %s and %q as the placeholders session, use %%, %s and %q as the placeholders
-M, --print-msg-in Like --pipe-msg-in, but prints the message instead of -M, --print-msg-in Like --pipe-msg-in, but prints the message instead of
passing to the active xplr session passing to the active xplr session
--print-pwd-as-result Prints the present working directory when quitting --print-pwd-as-result Prints the present working directory when quitting
with `PrintResultAndQuit` with `PrintResultAndQuit`
--read-only Enables read-only mode (config.general.read_only) --read-only Enables read-only mode (config.general.read_only)
--read0 Reads paths separated using the null character (\0) --read0 Reads paths separated using the null character (\0)
--write0 Prints paths separated using the null character (\0) --write0 Prints paths separated using the null character (\0)
-0 --null Combines --read0 and --write0 -0 --null Combines --read0 and --write0
-V, --version Prints version information"###; -V, --version Prints version information"###;
let options = r###" let options = r###"
-c, --config <PATH> Specifies a custom config file (default is -c, --config <PATH> Specifies a custom config file (default is
"$HOME/.config/xplr/init.lua") "$HOME/.config/xplr/init.lua")
-C, --extra-config <PATH>... Specifies extra config files to load -C, --extra-config <PATH>... Specifies extra config files to load
--on-load <MESSAGE>... Sends messages when xplr loads --on-load <MESSAGE>... Sends messages when xplr loads
--vroot <PATH> Treats the specified path as the virtual root"###; --vroot <PATH> Treats the specified path as the virtual root"###;
let args = r###" let args = r###"
<PATH> Path to focus on, or enter if directory, (default is `.`) <PATH> Path to focus on, or enter if directory, (default is `.`)
<SELECTION>... Paths to select, requires <PATH> to be set explicitly"###; <SELECTION>... Paths to select, requires <PATH> to be set explicitly"###;
let help = format!( let help = format!(
"xplr {}\n{}\n{}\n\nUSAGE:{}\n\nFLAGS:{}\n\nOPTIONS:{}\n\nARGS:{}", "xplr {}\n{}\n{}\n\nUSAGE:{}\n\nFLAGS:{}\n\nOPTIONS:{}\n\nARGS:{}",

@ -801,7 +801,7 @@ xplr.config.node_types.symlink.meta.icon = "§"
-- xplr.config.node_types.mime_essence = { -- xplr.config.node_types.mime_essence = {
-- application = { -- application = {
-- -- application/* -- -- application/*
-- ["*"] = { meta = { icon = "a" } } -- ["*"] = { meta = { icon = "a" } },
-- --
-- -- application/pdf -- -- application/pdf
-- pdf = { meta = { icon = "" }, style = { fg = "Blue" } }, -- pdf = { meta = { icon = "" }, style = { fg = "Blue" } },
@ -2465,7 +2465,6 @@ xplr.config.modes.builtin.sort = {
"ExplorePwdAsync", "ExplorePwdAsync",
}, },
}, },
["c"] = { ["c"] = {
help = "by created", help = "by created",
messages = { messages = {
@ -2473,7 +2472,6 @@ xplr.config.modes.builtin.sort = {
"ExplorePwdAsync", "ExplorePwdAsync",
}, },
}, },
["C"] = { ["C"] = {
help = "by created reverse", help = "by created reverse",
messages = { messages = {
@ -2481,7 +2479,6 @@ xplr.config.modes.builtin.sort = {
"ExplorePwdAsync", "ExplorePwdAsync",
}, },
}, },
["l"] = { ["l"] = {
help = "by last modified", help = "by last modified",
messages = { messages = {
@ -2489,7 +2486,6 @@ xplr.config.modes.builtin.sort = {
"ExplorePwdAsync", "ExplorePwdAsync",
}, },
}, },
["L"] = { ["L"] = {
help = "by last modified reverse", help = "by last modified reverse",
messages = { messages = {

Loading…
Cancel
Save