> Oh, I meant less efficient because the evaluation is done every time the key
> is pressed when using the macro. Plus it's a macro executing a
> which is evaluating MuttLisp.
Oh, of course! You are right.
What was I thinking? Maybe I should stop tweaking my mutt config and go to
bed? :-)
Th
On Tue, Dec 06, 2022 at 10:08:04PM +0100, Andy Spiegl wrote:
Well, you could try putting the keybindings such as
Sure, but weren't we talking about efficency, i.e. without Muttlisp? :-)
Oh, I meant less efficient because the evaluation is done every time the
key is pressed when using the mac
> Sorry I wasn't clear enough.
Now I understood it. Thank you very much!
> Well, you could try putting the keybindings such as
Sure, but weren't we talking about efficency, i.e. without Muttlisp? :-)
Thanks,
Andy
--
The brain is a wonderful organ; it starts working the moment you get up
in
On Tue, Dec 06, 2022 at 08:47:27PM +0100, Andy Spiegl wrote:
The muttlisp can't be inside quotes, so I removed the outer single
quotes.
Is this only true for "bind" lines?
Because in the macro the muttlisp code is inside quotes:
macro index j 'run (if (equal $sidebar_visible "yes") \
Kevin, thanks a lot!
This was exactly what I was looking for.
> The muttlisp can't be inside quotes, so I removed the outer single
> quotes.
Is this only true for "bind" lines?
Because in the macro the muttlisp code is inside quotes:
> macro index j 'run (if (equal $sidebar_visible "yes") \
>
On Mon, Dec 05, 2022 at 04:12:01PM -0800, Kevin J. McCarthy wrote:
set muttlisp_inline_eval
bind index j (if (equal $sidebar_visible "yes") \
'sidebar-next' \
'next-undeleted')
I realized after I sent that you might be wanting to dynamically
d
On Tue, Dec 06, 2022 at 12:24:58AM +0100, Andy Spiegl wrote:
I'm trying to bind the "j" key to the function "sidebar-next" if the sidebar is
visible.
The only doable way seems to be using muttlisp.
I tried to follow the example in the mutt manual but I'm failing to write this
tiny piece of lisp