-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Improve readability and visibility of *nrepl-messages* buffer #792
Conversation
I was about to open a ticket regarding the nrepl-messages. I notice some odd things in the buffer like:
Those empty This has odd alignment:
The status is displayed as a list, but it's just the keyword
I was also thinking if we shouldn't color-code related requests and response - perhaps by assigning 5-10 colors to each id on a circular basis (eg. mod 10) - 1: red, 2: green, 3: yellow, ... 11: red, 12: green. |
Yes, I was too lazy to implement recursive printing. So inner dicts are
I don't see it. Why is it odd?
It's really a list. Status is always a list.
That would be cool. Rainbow buffer:) |
The dict values are not aligned with each other and on the other hand the space between them and the keys isn't constant as well. It seems randomish to me.
Guess it might be treated specially by nREPL, but it doesn't look like a list in the code. Here's an excerpt from a random middleware:
|
It's one tab between keys and values. They are perfectly aligned for me. What's your value of
On clojure side yes. On emacs side all keywords are strings, and status message is a list and it can contain a lot of stuff, for example ("done" "id-interrupt-mismatch" "error") when you try to interrupt a "finished" request id. |
83dbab8
to
b0fb842
Compare
Improve readability and visibility of *nrepl-messages* buffer
Make requests and responses appear differently from each other:
Also make
*nrepl-messages*
buffer scroll to bottom on new messages when visible.