conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
dharrigan 2020-12-21T11:06:49.279Z

Personally, I would (in my usage) have the hud disabled and use the inline eval - then if I want to, I would open the log to view any results that need, or toggle the hud if I need

dharrigan 2020-12-21T11:07:42.279900Z

I would give perference to inline viewing, in terms of defaults, I think having it the way they are is fine, i.e., hud first, but allow it to be disabled and enable the linline, or have both viewing

dharrigan 2020-12-21T11:08:13.280400Z

yes, for large displays, that's where the hud comes in

dharrigan 2020-12-21T11:08:20.280700Z

I can always toggle the hud

Olical 2020-12-21T11:08:28.281100Z

Hmm a solid use case for sure. I'll give the defaults some thoughts, that's the easy bit code-wise.

dharrigan 2020-12-21T11:08:45.281500Z

or, perhaps there's an option to say "show inline, but if it goes over X characters (user configurable), to also open up the hud

dharrigan 2020-12-21T11:08:52.281800Z

(which would disappear on next cursor movement anyway)

Olical 2020-12-21T11:10:27.284600Z

I was thinking about something like that too 🙂 a hybrid approach, which may be a third style of configuration although it begins to get a little complex. And if was the default behavior I can already see the questions from confused users about why the HUD sometimes appears, the reason wouldn't be clear without explanation. Whatever UX I end up with, I want it to be obvious cause -> effect.

Olical 2020-12-21T11:11:06.285800Z

Not sure how long result virtual text sticks around for either... until the next eval? Time? Cursor moves?

dharrigan 2020-12-21T11:15:28.287900Z

What does emacs do?

orestis 2020-12-21T11:15:35.288300Z

As long as the results are always available at the log, the inline eval can be a bit gimped... I think until the next eval makes sense

dharrigan 2020-12-21T11:15:45.288900Z

Modelling the behaviour of the inline would help anyone who is trying it out?

orestis 2020-12-21T11:16:12.289800Z

Cider is super powerful and give you all of the above, but also cider (to my knowledge) doesn’t also have a log. So you rely on the inline results quite a bit.

dharrigan 2020-12-21T11:18:35.290200Z

spacemacs keeps the inline around until next cursor movement (just checked)

dharrigan 2020-12-21T11:19:22.290600Z

Wishful thinking too, but the option to add the result as a comment is really good

dharrigan 2020-12-21T11:20:23.291200Z

spc , ; inline evals and adds the result of that eval as a comment beside the form

dharrigan 2020-12-21T11:20:32.291500Z

that's useful when doing dev

Olical 2020-12-21T11:28:04.291700Z

Huh interesting idea

Olical 2020-12-21T11:28:21.292200Z

What does that do when you already have a comment? Just keeps appending without adding more semi-colons?

dharrigan 2020-12-21T11:28:26.292400Z

let me check

dharrigan 2020-12-21T11:29:30.292600Z

(+ 1 4);; => 3
;; => 5

dharrigan 2020-12-21T11:29:34.292800Z

adds to the bottom it seems

dharrigan 2020-12-21T11:30:06.293100Z

(+ 1 5);; => 3
;; => 6
;; => 5

dharrigan 2020-12-21T11:30:08.293300Z

as a stack

dharrigan 2020-12-21T11:30:24.293600Z

although, conjure doesn't have to do that...

Olical 2020-12-21T11:34:15.293800Z

Oh interesting

Olical 2020-12-21T11:35:21.295Z

Why do that though :thinking_face: like, what's the use case. We have to bear in mind the different context, like the log buffer may overlap with why that exists in the first place. There's already <prefix>e! to eval and replace, the log buffer holds yankable editable results and we will probably have inline results soon too. What does the comment version add I wonder.

dharrigan 2020-12-21T11:37:50.296Z

The use case, I believe, is that as you're developing and eval'ing and repl'ing, you can track the progress of your work along each side of the form, so you can keep track of the results.

dharrigan 2020-12-21T11:38:24.296400Z

you don't want to replace the form, you simply want to see the results of that particular evaluation

Olical 2020-12-21T11:41:32.297600Z

:thinking_face: I guess I need to think on it, I feel like that'd only get in my way and I'd end up performing a bunch of jumps to delete and clean them up, especially since that's what I would use the log for. I'll let it sit in my head for a bit, but yeah, I don't think I would ever use that as it stands right now. Could be wrong!

dharrigan 2020-12-21T11:41:46.298Z

np

dharrigan 2020-12-21T11:42:14.298800Z

I would much prefer to see inline eval first, rather than inline eval and comment 🙂

Olical 2020-12-21T11:42:24.299100Z

heh same

Olical 2020-12-21T11:42:43.299700Z

I have to finish this fennel over stdio client today and document it then release this version

Olical 2020-12-21T11:42:47.299900Z

Then I can experiment with that part

orestis 2020-12-21T12:15:09.301300Z

The comment thing is nice when you actually want to commit the results for future viewers…

orestis 2020-12-21T12:15:20.301600Z

Like some adding documentation in a rich-comment block.

dharrigan 2020-12-21T13:07:03.301900Z

yes, that would be a nice use of it too

2020-12-21T15:37:08.302Z

2020-12-21T15:37:31.302100Z

2020-12-21T15:37:35.302200Z

2020-12-21T15:37:55.302300Z

2020-12-21T15:38:29.302400Z

dharrigan 2020-12-21T15:39:31.302700Z

congrats on the new release!

❤️ 1
2020-12-21T15:39:44.302800Z

2020-12-21T15:42:13.302900Z

2020-12-21T15:42:25.303Z