warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.39k stars 374 forks source link

History search sorts direct match after "starting letter" match #1810

Open nixolas1 opened 2 years ago

nixolas1 commented 2 years ago

Discord username (optional)

No response

Describe the bug

History search sorts matches where the starting letter of each word in a historic command is the letter of the search term higher than direct matches. For example searching for "tcp" sorts hits for "test-cli potato" before "adb tcpip 5000"

To Reproduce

Having these two commands in history:

History search (CTRL + R) for "tcp". The first result is txjs-cli....

Expected behaviour

In this scenario I would expect adb tcpip 5000 to be the first result, as it has the letters "tcp" in it, while the other command does not.

Screenshots

image image

Operating System

MacOS

OS Version

X

Shell Version

X

Warp Version

v0.2022.08.31.18.11.stable_00

Additional context

No response

Does this block you from using Warp daily?

No

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

No response

dannyneira commented 2 years ago

@nixolas1 I'm Danny, Support Engineer at Warp. I will mark this issue as a feature request given the history search is working as intended. Please +1 this request as it helps us gauge interest. We will post any updates here.

As a possible workaround, I recommend you try typing in more characters to narrow down the results even further, so for example if you enter tcpip you should see the adb tcpip 5000 result show up first.

image