unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Patrick Totzke <patricktotzke@gmail.com>
To: Sepp Tannhuber <sepp.tannhuber@yahoo.de>,
	"notmuch@notmuchmail.org" <notmuch@notmuchmail.org>
Subject: Re: [alot] announcing v0.3.3
Date: Tue, 11 Sep 2012 09:47:28 +0200	[thread overview]
Message-ID: <20120911074728.7776.72473@brick.lan> (raw)
In-Reply-To: <1347299700.65731.YahooMailNeo@web171405.mail.ir2.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 2862 bytes --]

Hi Sepp, welcome to alot :)

Quoting Sepp Tannhuber (2012-09-10 19:55:00)
> 1. As vi user I alway type gg/G to jump to the top/bottom. Is there a command that I can
>    configure this way? I have not found a jump to top/bottom command in the manual.
Short Answer:
This is not yet possible with the current design, no.
It is something i'd also like to see though and i have already a few ideas ho to do this.

Long version/dev info:
First of all, i only recently added the ability to interpret "gg" (or other multi-key strokes)
at all.. so thats done.
Now both for thread and search mode we use a toplevel `urwid.ListBox` widget iirc,
and those do not directly support "focus topmost line". But they do allow to
move the focus to some index and so implementing such a `MoveCommand` should not be hard.
One reason I have not bothered to implement this so far is that in the long run,
I want to have urwid Tree widgets as top level widgets in thread buffers.
This would also allow "move to next sibling/parent" and so on.

> 2. Mutt has a nice feature, the Attach: pseudo header. It can be used to attach files from
>    within the editor. I use this small vi macro to attach files:
>      " mutt: insert attachment with ranger
> 
>      fun! RangerMuttAttach()
>      if filereadable('/tmp/chosendir')
>      silent !ranger --choosefiles=/tmp/chosenfiles --choosedir=/tmp/chosendir "$(cat /tmp/chosendir)"
>      else
>      silent !ranger --choosefiles=/tmp/chosenfiles --choosedir=/tmp/chosendir
>      endif
>      if filereadable('/tmp/chosenfiles')
>      call append(3, map(readfile('/tmp/chosenfiles'), '"Attach: ".escape(v:val,"     \\")'))
>      call system('rm /tmp/chosenfiles')
>      endif
>      redraw!
>      endfun
>      map <C-a> :call RangerMuttAttach()<CR>
>      imap <C-a> <ESC>:call RangerMuttAttach()<CR>a
>    I would like to use the same with alot. Is it possible?

Nice idea!
So you can of course use this method to set an "Attach" header, but as of now
alot will not interpret and remove this when reading the edited text.
I guess one would also want that in the other direction if one really uses this feature:
When re-editing the message body, the editable headers part of the text should include
an Attach header line that lists the current attachments..

> 3. I have followed the instructions to use abook for contact completion. I have used abook with mutt as well.
>    So I have put these two lines in my config:
>      [[[abook]]]
>        type = abook
>    But I did not find a way how to use it. Can anybody tell me?

It will be used for tabcompletion when you compose a mesage.
When you see the "to>" prompt, type in some prefix of a (realname part of a)
contact from abook and hit <tab>.

Cheers,
/p

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAlBO7JAACgkQlDQDZ9fWxaqBQgCfey307eWXUUkTBlCynhOlO73o
+GoAoKacsZFt0Ogs4reYsGp+YDM15ZVz
=2Ko6
-----END PGP SIGNATURE-----

  reply	other threads:[~2012-09-11  7:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-09 15:34 [alot] announcing v0.3.3 Patrick Totzke
2012-09-10 17:55 ` Sepp Tannhuber
2012-09-11  7:47   ` Patrick Totzke [this message]
2012-09-11 15:59     ` Sepp Tannhuber
2012-09-12  6:00       ` Patrick Totzke
2012-09-12  7:33 ` Christophe-Marie Duquesne
  -- strict thread matches above, loose matches on Subject: below --
2012-09-12 14:17 Sepp Tannhuber
     [not found] ` <20120912184907.15407.89499@brick.lan>
2012-09-12 19:24   ` Joseph Tannhuber
2012-09-13 21:15 ` Sepp Tannhuber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120911074728.7776.72473@brick.lan \
    --to=patricktotzke@gmail.com \
    --cc=notmuch@notmuchmail.org \
    --cc=sepp.tannhuber@yahoo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).