Anybody good at vimscript want to help me with a vim-fireplace pr for an EvalAtMark command?
I hate to say it, but Conjure has that built in. I've found Neovim + Conjure much easier to deal with than the tools I was using before.
Conjure is cool and it’s actually made me much more willing to use Python when it helps me get along with others. I still prefer Fireplace though.
I have a working command! for this:
command! -nargs=1 EvalMark :call fireplace#eval({'code': getline(getpos("'".<f-args>)[1])})
but it doesn’t echo the result of the eval and may lack other affordances.Oh and it chokes on multiline forms 🙃
I think that fireplace.vim is using searchpairpos to match the parens
and uses printop to echo back the results
I wonder if it might be easier to work in a case for marks at function! fireplace#eval(...) abort
https://github.com/tpope/vim-fireplace/blob/master/autoload/fireplace.vim#L1297
quite possibly. and I don’t know how to turn that into a normal-mode map either
like c'a or something to eval at 'a
(a consequence of not knowing vimscript)
You can see the other bindings in fireplace here: https://github.com/tpope/vim-fireplace/blob/master/autoload/fireplace.vim#L1860
https://clojurians.slack.com/archives/C02V9TL2G3V/p1731953343094829