Tagging in tree mode

Subject: Tagging in tree mode

Date: Mon, 08 Feb 2021 18:53:28 +0100

To: notmuch@notmuchmail.org

Cc:

From: inwit


Hi!

In order to dive a bit deeper in how notmuch for emacs works, I'm trying
to figure out why while I can press "d" and get a nice "deleted" tag
added to my messages in show mode, when I do the same thing in tree mode
I get "Nothing to tag!" instead of the expected behaviour.

After reading the list [0], I've tried to add the following snippet to
my config file, to no avail:

  (define-key notmuch-tree-mode-map "d"
     (lambda ()
       "toggle deleted tag for message"
        (interactive)
        (notmuch-tree-tag
         (if (member "deleted" (notmuch-tree-get-tags))
             (list "-deleted")
           (list "+deleted")))))

Any hint? How come the "d" shortcut is enabled by default in show mode
but not in tree mode?

Regards,

[0] https://notmuchmail.org/pipermail/notmuch/2014/018125.html 
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: