Skip to content

Commit

Permalink
selection: reverse skim output order in focus add -i
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arxanas committed Aug 19, 2022
1 parent 3cae380 commit 5cfc9b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions focus/operations/src/selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))?;

Expand Down

0 comments on commit 5cfc9b7

Please sign in to comment.