diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-06-10 23:11:05 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-06-10 23:11:05 +0900 |
commit | e627ca6bd7fa40ef3f9077aa49f7c9019b474997 (patch) | |
tree | ee0b60112991927caa2364863362aba2f5eee663 /src/options.go | |
parent | c97172bdd477725c35034526e35a518a61df7e58 (diff) |
Add --info=inline-right
Close #3322
Diffstat (limited to 'src/options.go')
-rw-r--r-- | src/options.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/options.go b/src/options.go index 69e5db91..f04d7f20 100644 --- a/src/options.go +++ b/src/options.go @@ -72,7 +72,7 @@ const usage = `usage: fzf [options] (default: 0 or center) --margin=MARGIN Screen margin (TRBL | TB,RL | T,RL,B | T,R,B,L) --padding=PADDING Padding inside border (TRBL | TB,RL | T,RL,B | T,R,B,L) - --info=STYLE Finder info style [default|hidden|inline|inline:SEPARATOR] + --info=STYLE Finder info style [default|hidden|inline[:SEPARATOR]|inline-right] --separator=STR String to form horizontal separator on info line --no-separator Hide info line separator --scrollbar[=C1[C2]] Scrollbar character(s) (each for main and preview window) @@ -195,6 +195,7 @@ type infoStyle int const ( infoDefault infoStyle = iota infoInline + infoInlineRight infoHidden ) @@ -1378,6 +1379,8 @@ func parseInfoStyle(str string) (infoStyle, string) { return infoDefault, "" case "inline": return infoInline, defaultInfoSep + case "inline-right": + return infoInlineRight, "" case "hidden": return infoHidden, "" default: @@ -1385,7 +1388,7 @@ func parseInfoStyle(str string) (infoStyle, string) { if strings.HasPrefix(str, prefix) { return infoInline, strings.ReplaceAll(str[len(prefix):], "\n", " ") } - errorExit("invalid info style (expected: default|hidden|inline|inline:SEPARATOR)") + errorExit("invalid info style (expected: default|hidden|inline[:SEPARATOR]|inline-right)") } return infoDefault, "" } |