Re: custom macro for "q" key

2021-09-02 Thread Fourhundred Thecat
> On 2021-09-02 11:58, Bastian wrote: Lets assume that after leaving the browser there is a quit command you could solve it with: macro browser q "" "QUIT MUTT FROM BROWSER" That works exactly as I wanted. You are a genius. thank you

Re: custom macro for "q" key

2021-09-02 Thread Bastian
Lets assume that after leaving the browser there is a quit command you could solve it with: macro browser q "" "QUIT MUTT FROM BROWSER" This won't work in browsers behind composing a mail (attachment browser e.g.). Another idea, I think you can always push Ctrl+C to leave mutt at any

Re: custom macro for "q" key

2021-09-02 Thread lists
yes, the is called "browser" in my case also. But when I bind: bind browser q exit and use "q" in browser, it does not exit, but just cycles between browser and the folder where I came from. Ok, so I just checked the help and apparently the 'exit' function's description is 'exit this

Re: custom macro for "q" key

2021-09-01 Thread Fourhundred Thecat
> On 2021-09-02 06:54, Jon LaBadie wrote: On Wed, Sep 01, 2021 at 08:04:29AM +0200, Fourhundred Thecat wrote: On 2021-08-30 14:28, li...@ifohancroft.com wrote:  macro  index,pager  c  "?"  macro  index    q  "?"  bind   browser  q  exit You are defining macros in the index and

Re: custom macro for "q" key

2021-09-01 Thread Jon LaBadie
On Wed, Sep 01, 2021 at 08:04:29AM +0200, Fourhundred Thecat wrote: On 2021-08-30 14:28, li...@ifohancroft.com wrote: ... macro index,pager c "?" macro indexq "?" bind browser q exit But it does not behave as I expected: Likely showing my mutt-ignorance here, but

Re: custom macro for "q" key

2021-09-01 Thread Fourhundred Thecat
> On 2021-09-02 04:47, Fourhundred Thecat wrote: > On 2021-09-01 20:54, li...@ifohancroft.com wrote: And also, you suggested previously to use "exit", but this keyword does not seem to exist in my mutt (2.0.2). When I use this binding:   bind  browser q quit sorry, I meant to say: you

Re: custom macro for "q" key

2021-09-01 Thread Fourhundred Thecat
> On 2021-09-01 20:54, li...@ifohancroft.com wrote: I understand what "index" and "pager" is. But what is the name when I am in the list of my folders? I think I need to bind q for exit, when I am in the list of my folders:   bind    q  exit thank you, Unless I am wrong and there is more

Re: custom macro for "q" key

2021-09-01 Thread lists
I understand what "index" and "pager" is. But what is the name when I am in the list of my folders? I think I need to bind q for exit, when I am in the list of my folders: bindq exit thank you, Unless I am wrong and there is more than one list of folders, its bind type is 'browser'.

Re: custom macro for "q" key

2021-09-01 Thread Fourhundred Thecat
> On 2021-08-30 14:28, li...@ifohancroft.com wrote: Hi, You basically have to unbind q for index (perhaps also pager, depending on what you want) and create the same macro you already have for 'c', for 'q' as well. Then for 'browser' bind 'q' to to 'quit' again. So basically: bind index,pager

Re: custom macro for "q" key

2021-08-31 Thread Kevin J. McCarthy
On Mon, Aug 30, 2021 at 07:39:00PM -0700, li...@ifohancroft.com wrote: Would you mind pointing out where you got that information? As far as I know there is no need to do this, but maybe there is a problem I'm not aware of. Sorry. I meant to reply to the list. Posting my reply to his back

Re: custom macro for "q" key

2021-08-30 Thread lists
On 2021-08-30 09:20, Kevin J. McCarthy wrote: On Mon, Aug 30, 2021 at 05:28:35AM -0700, li...@ifohancroft.com wrote: bind index,pager c noop # Unbinding the key first, because the manual says that macros shouldn't be bound to keys that are already bound Would you mind pointing out where you

Re: custom macro for "q" key

2021-08-30 Thread Kevin J. McCarthy
On Mon, Aug 30, 2021 at 05:28:35AM -0700, li...@ifohancroft.com wrote: bind index,pager c noop # Unbinding the key first, because the manual says that macros shouldn't be bound to keys that are already bound Would you mind pointing out where you got that information? As far as I know there

Re: custom macro for "q" key

2021-08-30 Thread Kevin J. McCarthy
On Mon, Aug 30, 2021 at 08:55:19AM +0200, Fourhundred Thecat wrote: macro index,pager c "?" Also, see , allowing instead just: bind index,pager c browse-mailboxes This has some small advantages with respect to the $browser_sticky_cursor setting. -- Kevin J. McCarthy GPG Fingerprint:

Re: custom macro for "q" key

2021-08-30 Thread lists
Hi, You basically have to unbind q for index (perhaps also pager, depending on what you want) and create the same macro you already have for 'c', for 'q' as well. Then for 'browser' bind 'q' to to 'quit' again. So basically: bind index,pager c noop # Unbinding the key first, because the

custom macro for "q" key

2021-08-30 Thread Fourhundred Thecat
Hello, I have "q" key bound to "quit", and then I have custom macro bound to "c": macro index,pager c "?" When I start mutt, I automatically land in "Inbox", and "q" exits. When I press "c" anywhere in mutt, I get list of my folders, and can go into them. When inside any of the folder,