News for hackers. Stuff that matters.
Re:Vim Creep (2011) by boogies on Saturday December 12, 2020 @08:02AM (#25397993)
> Wonder if there could be a shell tool to just dump the first stackoverflow hit for a search.

There should be. I think `curl cheat.sh/programming+question` does that. There might also be a way to do that with surfraw. I just use DuckDuckGo, it almost always pops up an Stack Exchange answer in the sidebar when I search for something relevant to an SE.

Re:Vim Creep (2011) by IggleSniggle on Saturday December 12, 2020 @10:46AM (#25398916)
I really love cht.sh, but find I never actually use it except for the occasional git syntax reminder. I think a flow that went `cht.sh -> fzf to narrow results and select a result -> vim -> OS clipboard` would have me using it all the time.
Re:Vim Creep (2011) by kylebenzle on Saturday December 12, 2020 @12:07PM (#25399681)
Funny, I have been asking this EXACT question on Linux forums and here for several months.

"How can I have a shortcut that I type, then enter a search query and have the first result open automatically?"

Re:Vim Creep (2011) by fowlie on Saturday December 12, 2020 @12:24PM (#25399840)
I have a fish function to open StackOverflow in Lynx. I can just do `stack how to write a function in fish shell`.