stew icon indicating copy to clipboard operation
stew copied to clipboard

[Proposal] Add keys shortcut in stew search to open selected repository in browser

Open edshamis opened this issue 2 years ago • 3 comments

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?

edshamis avatar Apr 18 '22 08:04 edshamis

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.

marwanhawari avatar Apr 23 '22 16:04 marwanhawari

Maybe fzf can help as a selecter?

edshamis avatar Apr 23 '22 20:04 edshamis