Toggling between two values of a string variable?
Kevin J. McCarthy
kevin at 8t8.us
Sun Jun 28 01:45:24 UTC 2020
On Sun, Jun 28, 2020 at 03:15:12AM +0200, Francesco Ariis wrote:
>Il 27 giugno 2020 alle 20:48 John Hawkinson ha scritto:
>> Ideally I'd like to bind a key to toggle between two values of a
>> string variable. There doesn't seem to be a good way to accomplish
>> this -- is there a trick?
>
>I recall a similar question being asked on this ML — or was it IRC? —
>in the past and this link providing the answer:
>
> https://gitlab.com/muttmua/mutt/-/wikis/ConfigTricks
>
>specifically the «(ab)use "macros" as variables» section.
>Would that do?
I think the same basic idea, but using macro redefinition instead, was
posted by David Champion a few years ago:
<https://marc.info/?l=mutt-users&m=143475140112646&w=2>.
The message is misformatted in that page, but the 'raw body' link is
readable.
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20200627/5fc3518c/attachment.asc>
More information about the Mutt-users
mailing list