cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.76k stars 176 forks source link

added option to reset cursor selection when refreshing matches #297

Closed navazjm closed 1 year ago

navazjm commented 1 year ago

Closes #290

Add a boolean argument to refresh_matches

if true, we reset the cursor selection to the top of the list of commands if false, the cursor selections stays in the current position in the list of commands

Only deleting a command calls refresh_matches(false). All other commands call refresh_matches(true).

cantino commented 1 year ago

Thanks @navazjm!