nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Request For New Feature: Unadorned Plus Sign

2012-02-09 11:23:02
norm(_at_)dad(_dot_)org wrote:

Folder name completion was what I wanted for. I guess that it's not to be.

If it is decent completion you want, then I would very much recommend
you consider using zsh instead of bash. It has good completion for MH
built in; just do: autoload -U compinit; compinit

I would like to request a new nmh feature:

  A pair of consecutive arguments: "+" "string", is regarded as a single
  argument: "+ string".

It would allow shell wild cards, would simplify many scripts and would allow
shell file name completion to be used in nmh commands.

It'd only work if your current directory is your top-level mail
directory. For wildcards, zsh has something called a matching completer
which will let you use wildcards and expand them based on matching
possible completions.

Note: This feature would break what is now either an nmh bug or an 
undocumented
nmh feature: An unadorned plus sign designates the user's nmh mail directory. 

That is surely a feature. I regularly use it in scripts along with mhpath
rather than hardcoding the directory.

Oliver

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>