Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to view the full response #111

Closed
snaggen opened this issue Mar 15, 2024 · 3 comments · Fixed by #125
Closed

Not able to view the full response #111

snaggen opened this issue Mar 15, 2024 · 3 comments · Fixed by #125
Labels
bug Something isn't working

Comments

@snaggen
Copy link

snaggen commented Mar 15, 2024

The response view is a bit limited. I had a response that was a json as one long line, but I couldn't view the end of that line.
So, I suggest the following simple alternatives,

  1. Key bindings to scroll to the end of the line
  2. Toggle line wrapping on/off
  3. Possible to reformat well known formats like json
@LucasPickering
Copy link
Owner

  1. Yes the lack of horizontal scrolling is something I've been punting on for a while. Horizontal scrolling is slightly annoying because left/right arrow are already used to change tabs.
  2. Line wrapping would work but is slightly complicated to implement so again, I've been punting.
  3. It actually will automatically reformat JSON, but only if it recognizes it as JSON via the Content-Type header of the response. If it's not happening in your case, that means the Content-Type header has something other than application/json. Could you post the value of that header from your response? it's possible this is Extended JSON MIME type not recognized #103

@LucasPickering LucasPickering added the bug Something isn't working label Mar 15, 2024
@snaggen
Copy link
Author

snaggen commented Mar 16, 2024

Yes, an extended json is used for the response.

@LucasPickering
Copy link
Owner

Horizontal scrolling is possible now (pending the next release). I'm not going to implement line wrapping yet, because it's a lot more complicated. Ratatui supports it, but then the line numbers get completely messed up. I'm hoping horizontal scrolling is enough for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants