-
-
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 the presentation of nrepl messages #1726
Comments
This article might be useful for the font-locking code if anyone decides to tackle this, although we should get by just fine with some generic font-locking without the notion of keywords. |
Font locking in the sense of font-lock-mode shouldn't be necessary. We can just propertize a specific face to every other sexp. |
True. I mostly want top-level keys to stand out. Bonus points for properly font-locked, strings, nils, etc. |
Did @Malabarba 's commit fully satisfy the request? I find myself reinventing lots of things in cider only to find out that the necessary features already exist, there's a pattern to follow, etc. If yall would put a few pointers in here I'd be happy to run through and work on this. |
My commit only highlights the request's keys, which was the lowest-hanging of the fruits here. I feel that improves the readability significantly. It would also be nice to have proper string font-locking and proper indentation, but these might be a little more difficult to do efficiently (without making the buffer supper slow) and they're really not high priority for me. |
I'd say that ordering the request/response keys consistently should be relatively easy to do and would be very helpful as well. Tackling the bug with several keys getting displayed on the same line is also important. |
@dpsutton This ticket is still yours if you want it. ;-) |
Given that this only really affects the cider developers, and even we weren't bothered enough to actually do something significant about it, maybe it's not that relevant. People's effort might be better spent elsewhere. |
While this is true, this issue still represents an open thread and requires way less effort than most open tasks we have. I've been trying to do some cleanup lately, as tasks really piled on in the past 5-6 months. Hopefully contributor activity will pick up, as I'm pretty short on time myself. |
After goofing around here for a bit, another potential improvement would be lining things up:
cf. the extant
|
Yeah, that'd be pretty great and pretty easy as well. |
Updated the PR with an additional commit. |
@dpsutton I believe that's fixed in the latest commit. See the discussion on the PR. |
The presentation of nREPL messages we currently use leaves a ton of room for improvement.
The text was updated successfully, but these errors were encountered: