Re: Repeat last tagging

Subject: Re: Repeat last tagging

Date: Wed, 14 Jul 2021 15:01:23 +0200

To: Tomi Ollila, notmuch@notmuchmail.org

Cc:

From: inwit


On Wed Jul 14, 2021 at 11:25 AM CEST, Tomi Ollila wrote:
> On Wed, Jul 14 2021, inwit@sindominio.net wrote:
> It does, what it would require is saving last-tag-change to a variable
> and then bind function to a key...
Put that way, it sounds pretty straightforward...

> 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)
My current alternative is of course hit 'CTRL+p' after '+', retrieving the
last tags in the minibuffer's memory. I guess I'll survive with that.

> 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".
Sounds handy, I'll try it.

>
> storing last-tag-change may provide hard if there
> is no central place to execute "notmuch tag" command in notmuch emacs
> source code...
You mean we would need to modify every call to "notmuch tag" in the
code, in order to save last-tag-change in a variable which is accesible
in every other scope?

It's my first dive into the code, thanks for your patience.

Regards,


>
>
> 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
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: