Discussion:
why :command does not work
Yubin Ruan
2017-12-18 07:09:42 UTC
Permalink
Why :command fails to execute the `command'. Doesn't mutt work like vim?

Yubin
Rainer Sokoll
2017-12-18 10:29:28 UTC
Permalink
Post by Yubin Ruan
Why :command fails to execute the `command'. Doesn't mutt work like vim?
: lets you invoke muttrc commands. You are looking for !.

Rainer
Yubin Ruan
2017-12-18 10:58:00 UTC
Permalink
Post by Rainer Sokoll
Post by Yubin Ruan
Why :command fails to execute the `command'. Doesn't mutt work like vim?
: lets you invoke muttrc commands. You are looking for !.
I mean, when at index, doing :toggle-new does not work (error unknown
command).

Yubin
Jörg Sommer
2017-12-18 11:46:59 UTC
Permalink
Post by Yubin Ruan
Post by Rainer Sokoll
Post by Yubin Ruan
Why :command fails to execute the `command'. Doesn't mutt work like vim?
: lets you invoke muttrc commands. You are looking for !.
I mean, when at index, doing :toggle-new does not work (error unknown
command).
Is ":exec toggle-new" what you are looking for?

Regards, Jörg
Yubin Ruan
2017-12-18 13:09:49 UTC
Permalink
Post by Jörg Sommer
Post by Yubin Ruan
Post by Rainer Sokoll
Post by Yubin Ruan
Why :command fails to execute the `command'. Doesn't mutt work like vim?
: lets you invoke muttrc commands. You are looking for !.
I mean, when at index, doing :toggle-new does not work (error unknown
command).
Is ":exec toggle-new" what you are looking for?
Yes. Many thanks! Are there any other options other than :exec? I mean, any
other options after a : , such as :look-for-some-command ...

Yubin
Kevin J. McCarthy
2017-12-18 17:23:37 UTC
Permalink
Post by Yubin Ruan
Yes. Many thanks! Are there any other options other than :exec? I mean, any
other options after a : , such as :look-for-some-command ...
Other commands are listed at
https://dev.mutt.org/doc/manual.html#commands

<toggle-new> is a function; others are described at
https://dev.mutt.org/doc/manual.html#functions

Functions are typically executed via key-bindings, but can also be run
via the push or exec command (or using hooks, macros, etc).
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
Loading...