question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get more, or next stackoverflow answer.

See original GitHub issue

use case and feature request

  1. I’m in my editor and I want instructions for root mean squared error in python, so I press my keystroke to package my selected string: rmse to the cht.sh servers like this:

    curl cht.sh/python/rmse?T

  2. It responds with the selected answer from here: https://stackoverflow.com/questions/17197492/is-there-a-library-function-for-root-mean-square-error-rmse-in-python

  3. That’s fine, now this selected answer is kind of trash (not your fault) and the next highest-upvoted but not-selected answer is great: https://stackoverflow.com/a/37861832/445131

  4. Is there a way I can tell your server to: “Get N more stackoverflow answers on this page?” or “Get the next stackoverflow answer on this stackoverflow page”? I could even give you search term like the: so/q/17197492

Attempting to solve my own problem my way, I saw: https://github.com/dbeniamine/cheat.sh-vim has a <leader>KAN Next Answer keystroke, but that’s not the next stackoverflow answer, that’s the last/next query.

What I have to do now is take my hand off the keyboard and visit stackoverflow by that questionid, and then use the mouse to scroll down, which is doubleplusungood.

How would you do this so I can keep my fingers on home row; my right hand not taking the thousand-year journey to the GUI-land.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chubincommented, Sep 19, 2019

@sentientmachine Eric, I think your solution is though good, but it would be much better, if we could get 50 (or 20) answers at once (as a JSON structure for example), so it would be possible to search through them. Of course, for that we need some additional support from the client (cht.sh or editor plugins side), but currently we do not have this functionality even on the server side.

The best solution probably should be some combination of the “multiple answers” feature with the “client-side search” feature, so that we could just fetch a set of possible answers first (with some more or less general query) and then refine the search with additional keywords.

1reaction
dbeniaminecommented, Jul 22, 2019

In the vim plugin, I think that the smoother approach would be to add both an optional parameter and an optional configuration variable:

let g:CheatSheetNumAnswers=1

So if you type:

:Cheat! how to reverse a list

It will ask for g:CheatSheetNumAnswers (1 in this case) answers, but you can quickly ask for:

:Cheat! how to revers a list 3

And get exactly 3 answers

I’ll implement that as soon as agree on what part should be done client side.

Does the other plugin that provides this functionality have rate limitation ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make it clearer that the "Answer Your Question" button is not ...
There is already a popup saying "Comment if you're trying to respond to an answer." and "Edit your question if you need to...
Read more >
How can I link to a specific answer? - Meta Stack Exchange
Yes, there's a "share" permalink for each answer to a question (and for each question as well). It's right next to the "flag"...
Read more >
How to get your first 1000 reputation on Stack Overflow
The main way to gain reputation on Stack Overflow is to get your questions and answers upvoted by others. The breakdown is as...
Read more >
Stack Overflow badges explained
The rarest general badge is the Illuminator, someone who not only wrote answers but also improved the question with edits a whopping 500...
Read more >
Analysis of Question Response Time in StackOverflow
study and estimate response time for questions in StackOverflow, ... an hour have a response time of more than a day (see Figure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found