web
web copied to clipboard
[test-runner-cli] Focus file file-name search/filter
Probably can be picked up simultaneously with https://github.com/modernweb-dev/web/issues/111
Perhaps we can add a feature where you can start typing characters, and the list of files in the terminal on focus is filtered only by paths that match what the user is typing. Making it easier to find the right file number.
Could be as simple as preventing non-digits, and letters are hidden but used as input for this file filter.
But maybe better and more transparent would be a "Open Filter" hotkey which opens another prompt where you can type characters to filter the files paths on. Then pressing escape "Closes Filter" and brings you back to Number of file to focus but this time with the filtered list. So you can go back and forth to the filter to change it.
This would be a nice addition.
My suggestion would be something similar to what changesets uses to select packages to bump where it's not only possible to filter but selection is done using aggows and not typing a numbers
https://github.com/user-attachments/assets/526b8227-ab16-4fc6-a494-7f538518c08f