stew
stew copied to clipboard
[Proposal] Add keys shortcut in stew search to open selected repository in browser
When we run stew search, it could be beneficial to have an ability to press, for example, Ctrl-o to jump to repo's page for more details. What do you think?
Yeah that's a great idea! However, it doesn't look like I can add custom key bindings with survey (the UI library that I'm using). I'm generally happy with this UI library because it's simple, looks good, and it's easy to use - so it's unlikely that I'll switch to a different UI library.
Some issues I've faced with it are: it's difficult to write tests, it's apparently broken on git bash for Windows (https://github.com/AlecAivazis/survey/issues/148), and it has limited extensibility. Something like bubbletea seems neat but it's probably overkill because all I really need are a confirmation prompt, an input prompt, and a selection UI - but if somebody wants to give it a shot, I'm open to PRs.
Maybe fzf can help as a selecter?