-
-
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
Introduce cider-log-dwim
#3592
Introduce cider-log-dwim
#3592
Conversation
I'm not a big fan of |
In my view, the default workflow represents an excess of steps for getting to see the logs. ...I like the book title In specific terms:
So, the proposed I understand the concern about dwim naming. However, one can observe:
Ultimately, we could find an alternative name, but e.g.
|
My point was that we can probably enhance |
Maybe we can rename But that would be a breaking change. |
Okay, let's go with the |
@r0man - last chance if you'd like to add any observation! |
Hi, I just tried To setup CIDER log mode, you don't necessarily have to go through the
Those are the minimum steps needed to do. Step 1 and 4 are always I have a couple of suggestions:
Wdyt? |
@vemv I believe you can prevent the transient menu from popping up. The popping up is just the default behaviour if the transient does not have a body defined. I think the popup happens in transient-setup. So, if you don't call |
Great suggestions by @r0man - seems we really need to expands the docs a bit. Also:
I'd be fine with this suggestion, although perhaps we can come up with a better name than |
Thanks a lot for the input, both! I'm not sure about the breaking changes part. Perhaps documenting the two main approaches (programmatic and transient-driven) would suffice. We could leave renaming for later if it turned out to be a frequent pain point? I'll close this PR and will be checking out |
@r0man - I cider-log-event and while it works (honoring the defcustom and setting things up, as you mentioned), it's also transient-based. It also doesn't show the cider-log buffer instantly (step 4) - personally I strongly feel it should show without user intervention. I think I'll give another stab at this, keeping the feedback in mind. |
Hi @vemv, maybe we can change |
Got it! Feel free to check out #3602
I don't know, it seems to me that it would be desirable to have predictable UXs: one ( That would seem clearer to users and maintainers alike. |
Following #3591, I was checking how to use CIDER Log in a more streamlined fashion.
My thinking is, in day-to-day usage, I should be able to run a single command that doesn't make me think about anything at all, and have the
*cider-log*
rendered.I did get an appreciation for transient-mode, but ideally one would only need it for fine-grained manipulations.
So this PR:
defvar cider-log-preferred-framework nil
cider-log-dwim
, meant as an idempotent command for showing the logs.Leaving it as draft for now - UX tweaks welcome. There may be also room for improvents as for how I used the internals?
Cheers - V