From 5cfc9b73db75b908bbb8ae78c7faf7d1f764d630 Mon Sep 17 00:00:00 2001 From: Waleed Khan Date: Mon, 15 Aug 2022 17:25:30 -0700 Subject: [PATCH] selection: reverse skim output order in `focus add -i` I think the average user will expect to scroll top to bottom, even if there's good reasons to render in the opposite order. In particular, we want asynchronous suggestions to appear after the initial suggestions, rather than before, since that's not an intuitive location for them. --- focus/operations/src/selection.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/focus/operations/src/selection.rs b/focus/operations/src/selection.rs index a3bae016..7d05139a 100644 --- a/focus/operations/src/selection.rs +++ b/focus/operations/src/selection.rs @@ -441,6 +441,7 @@ pub fn add_interactive( .multi(true) .bind(vec!["Space:toggle"]) .preview(Some("Project description")) + .reverse(true) .build() .map_err(|err| anyhow::anyhow!("{}", err))?;