From: Tomi Ollila <tomi.ollila@iki.fi>
To: inwit <inwit@sindominio.net>, notmuch@notmuchmail.org
Subject: Re: Repeat last tagging
Date: Wed, 14 Jul 2021 12:25:30 +0300 [thread overview]
Message-ID: <m2czrlfdrp.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <CCSQ9HR3M748.2IRNNTHYR4A2M@bisio>
On Wed, Jul 14 2021, inwit@sindominio.net wrote:
> Hi,
>
> While using notmuch in emacs (which I love, thank you so much!!) I was
> wondering if there's a way to repeat the last tagging operation for a
> different message or thread.
>
> My usecase is that, in tree-mode, sometimes I need to tag several emails
> from different threads, and it would come very handy if, after the first
> tag change, I could use a shortcut (I'd choose '.', as in vim/evil)
> which would apply the same tag change to other emails. Does this make
> sense?
It does, what it would require is saving last-tag-change to a variable
and then bind function to a key...
I personally am not too interested for such a binding (It could be
"dangerous" to do accidental undesired change (but I also could be
wrong and like such a feature >;D)
for reference I have the following bindings added to my configuration file
(define-key notmuch-show-user-map "u"
(lambda () "mark message unread" (interactive)
(notmuch-show-tag-message "+unread")))
(define-key notmuch-show-user-map "i"
(lambda () "remove inbox tag" (interactive)
(notmuch-show-tag-message "-inbox")))
which means uu restores "unread" and ui removes "inbox".
one can bind to notmuch-show-mode-map in order for just one keypress
to do tag-change... storing last-tag-change may provide hard if there
is no central place to execute "notmuch tag" command in notmuch emacs
source code...
Tomi
> I know I could perform a search for all the emails that I need
> to tag and tag them all at the same time, but the criteria to select
> them is usually not obvious. Another option would be to be able to mark
> emails, then tag them (I've seen the emacs-region thing, but it's not
> the same).
>
> Thanks in advance. And cheers again for the good work!
>
> Regards,
> _______________________________________________
> notmuch mailing list -- notmuch@notmuchmail.org
> To unsubscribe send an email to notmuch-leave@notmuchmail.org
next prev parent reply other threads:[~2021-07-14 9:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-14 8:41 Repeat last tagging inwit
2021-07-14 9:25 ` Tomi Ollila [this message]
2021-07-14 13:01 ` inwit
[not found] ` <87sg0gvo1r.fsf@wobbit.home.cworth.org>
2021-07-15 8:08 ` inwit
2022-01-20 16:36 ` inwit
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=m2czrlfdrp.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=inwit@sindominio.net \
--cc=notmuch@notmuchmail.org \
/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).