Re: Emacs-like and key behaviour in index

2019-08-28 Thread Neil Woods
On 21:26 Wed 28 Aug , Pankaj Jangid wrote:
> Neil Woods  writes:
> 
> > Is there a way to emulate Emacs's behaviour with the  and  keys in
> > the Index? E.g. pressing the  key moves the menu selection down until 
> > it 
> > reaches the bottom, then on the next  key-press the menu selection 
> > moves 
> > to the centre of the index. And the same in reverse for the  key.
> >
> > Is there any key binding, variable or macro available which could enable
> > this behaviour?
> 
> Exact same behaviour might not be possible. Other people may
> comment. But I prefer half-up, half-down (default keys `[', `]') when I
> use `mutt'.

Yes I use them too. Another useful function is current-middle which I've
bound to '='.

-- 
,.
|   Neil Woods   |  Computational linguist & OpenBSD sysadm  |  C/C++/Lisp   |
| echo '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'|dc |
`'


Re: flowed text (was: Adding delsp=yes to Content-Type)

2019-08-28 Thread Kevin J. McCarthy

On Thu, Aug 22, 2019 at 08:24:30PM -0400, José María Mateos wrote:
I'm back to trying to get flowed mode working for me, but I'm finding 
something funny: mutt is not adding the trailing space to every line 
when quoting.


Mutt doesn't add the trailing spaces.  However, if you are replying to a 
flowed message, they won't be removed.  Whether to reflow the quoted 
content is up to you.  There may be some cases where it's not 
appropriate to do so.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: mutt variable expansion in shell command ?

2019-08-28 Thread Ian Zimmerman
On 2019-08-28 20:36, Mathieu Carpentier wrote:

> I would like to use "folder" for mailboxes command:
> mailboxes `echo -n "+ "; cd $folder; find . -maxdepth 1 -type d -name "*"
> -printf "+'%f' "`
> 
> When I run mutt, I get the content of my home directory in the side panel:
> $folder was not "expanded". It works if I use an environment variable set
> before starting mutt.
> 
> Is it possible to use a mutt variable (e.g $folder) in a shell command ?

Not a direct answer, but you _could_ use an environment variable, and
then expand it in both places, ie.

set folder=`echo $FOLDER`

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


mutt variable expansion in shell command ?

2019-08-28 Thread Mathieu Carpentier
I've been searching in manuals and on google, but I could not find an
answer to my question.

Let's say I define the following variable in my muttrc file:
### where are my email accounts ?
set my_mail_root_dir = $HOME/Mail
set mbox_type = Maildir
### folders for my Hotmail account
set folder = $my_mail_root_dir/hotmail
set mbox = $folder/Inbox
set spoolfile = $folder/Inbox

I would like to use "folder" for mailboxes command:
mailboxes `echo -n "+ "; cd $folder; find . -maxdepth 1 -type d -name "*"
-printf "+'%f' "`

When I run mutt, I get the content of my home directory in the side panel:
$folder was not "expanded". It works if I use an environment variable set
before starting mutt.

Is it possible to use a mutt variable (e.g $folder) in a shell command ?

Thank you

Mathieu


Re: Emacs-like and key behaviour in index

2019-08-28 Thread Pankaj Jangid
Neil Woods  writes:

> Is there a way to emulate Emacs's behaviour with the  and  keys in
> the Index? E.g. pressing the  key moves the menu selection down until 
> it 
> reaches the bottom, then on the next  key-press the menu selection 
> moves 
> to the centre of the index. And the same in reverse for the  key.
>
> Is there any key binding, variable or macro available which could enable
> this behaviour?

Exact same behaviour might not be possible. Other people may
comment. But I prefer half-up, half-down (default keys `[', `]') when I
use `mutt'.

-- 
Pankaj Jangid


Emacs-like and key behaviour in index

2019-08-28 Thread Neil Woods
Is there a way to emulate Emacs's behaviour with the  and  keys in
the Index? E.g. pressing the  key moves the menu selection down until it 
reaches the bottom, then on the next  key-press the menu selection moves 
to the centre of the index. And the same in reverse for the  key.

Is there any key binding, variable or macro available which could enable
this behaviour?

-- 
,.
|   Neil Woods   |  Computational linguist & OpenBSD sysadm  |  C/C++/Lisp   |
| echo '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'|dc |
`'