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 2021-01-26T08:59:56.019500Z

There is something missing for the eval form and that's eval current word and store comment

dharrigan 2021-01-26T09:00:47.020400Z

So, if I have something like this (def x-token (authenticate app-config)) then I would normally do ,ew over x-token to get it's value. It would be nice if I could do ,ewc to store that like a comment too

dharrigan 2021-01-26T09:01:57.021500Z

even if I put x-token on a separate line and do ,ew it works (shows as virtual text), but then doing ,ec only shows nil, as ,ec only works with forms atm 🙂

dharrigan 2021-01-26T09:02:29.021600Z

Happy to raise this is as issue 🙂

Olical 2021-01-26T10:56:18.021700Z

Hmm

Olical 2021-01-26T10:57:13.021900Z

If I add this it's only a matter of time before someone asks for "eval root form and comment" too. So I went down the simple option of "only current form" for this implementation so far, but I've done the hard part (adding comments in the correct way).

dharrigan 2021-01-26T10:57:38.022100Z

Yeah, I thought it might be considered a slipperly slope

Olical 2021-01-26T10:57:42.022300Z

To do this style, I think I need to rewrite / redeisgn the comment result thing system. So it'll be a prefix to any mapping :thinking_face:

Olical 2021-01-26T10:57:48.022500Z

Like ,ece to do current form

Olical 2021-01-26T10:57:57.022700Z

A little more buttons, but more general

Olical 2021-01-26T10:58:07.022900Z

,ecr and ,ecw would work then

dharrigan 2021-01-26T10:58:47.023100Z

that makes sense

Olical 2021-01-26T10:59:00.023300Z

Also practicalli mentioned wanting ;; over ;, but I think that'll be a setting with ; being the default for internal implementation reasons in Conjure.

Olical 2021-01-26T10:59:15.023500Z

Just FYI, thought you might be interested in that idea too maybe

Olical 2021-01-26T10:59:27.023700Z

I personally prefer single commented code and double commented prose etc but yeah

dharrigan 2021-01-26T10:59:49.023900Z

I normally use ;; 🙂

dharrigan 2021-01-26T10:59:57.024100Z

but <shrug> not a biggie for me

dharrigan 2021-01-26T11:00:40.024300Z

maybe it could be a configuration parameter

2021-01-26T11:04:33.024500Z

emilaasa 2021-01-26T12:12:31.025Z

Good plan