aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-09-07 21:51:59 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-09-07 21:51:59 -0700
commit88514eda095f8727036a21758c04f23526efac06 (patch)
tree89d01afc092b9d8fe99dc37bd18c6e3b3638d0fa
parentfed64cc4aafb71195f119244f857c24a797f7807 (diff)
When choosing sorting, immediately select method on first keystroke.
-rw-r--r--config.def.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 9195d4f..4b035c9 100644
--- a/config.def.h
+++ b/config.def.h
@@ -236,9 +236,8 @@ binding_t bindings[] = {
{{'K'}, "+spread:-1", B("Spread")" selection up"},
{{'b'}, "bb \"+$("ASKECHO("bb +", "")")\"", "Run a "B("bb command")},
{{'s'},
- "sort=\"$(printf '%s\\n' n s m c a r p | "
- PICK("Sort (n)ame (s)ize (m)odification (c)reation (a)ccess (r)andom (p)ermissions: ", "") ")\" "
- "&& bb \"+sort:+$sort\" +refresh",
+ "read -n1 -p \"" B("Sort (n)ame (s)ize (m)odification (c)reation (a)ccess (r)andom (p)ermissions: ") "\" sort"
+ " && bb \"+sort:+$sort\" +refresh",
B("Sort")" by..."},
{{'#'}, "bb \"+col:$("ASKECHO("Set columns: ", "")")\"", "Set "B("columns")},
{{'.'}, "+dotfiles", "Toggle "B("dotfiles")},