unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / Atom feed
* Tagging in tree mode
@ 2021-02-08 17:53 inwit
  2021-02-08 18:45 ` David Bremner
  0 siblings, 1 reply; 3+ messages in thread
From: inwit @ 2021-02-08 17:53 UTC (permalink / raw)
  To: notmuch

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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tagging in tree mode
  2021-02-08 17:53 Tagging in tree mode inwit
@ 2021-02-08 18:45 ` David Bremner
  2021-02-08 18:55   ` inwit
  0 siblings, 1 reply; 3+ messages in thread
From: David Bremner @ 2021-02-08 18:45 UTC (permalink / raw)
  To: inwit, notmuch

"inwit" <inwit@sindominio.net> writes:

> 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.

I'm pretty sure that "d" in show mode is something you have customized.

david

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tagging in tree mode
  2021-02-08 18:45 ` David Bremner
@ 2021-02-08 18:55   ` inwit
  0 siblings, 0 replies; 3+ messages in thread
From: inwit @ 2021-02-08 18:55 UTC (permalink / raw)
  To: David Bremner, notmuch

On Mon Feb 8, 2021 at 7:45 PM CET, David Bremner wrote:
> "inwit" <inwit@sindominio.net> writes:
>
> > 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.
>
> I'm pretty sure that "d" in show mode is something you have customized.
Darn! Actually I'm in spacemacs and using the notmuch layer [0]. Those key
bindings are from that layer, which I completely forgot about. 

I am sorry. I did learn, though.

Regards,

[0] https://develop.spacemacs.org/layers/+email/notmuch/README.html#tags-to-apply-when-deleting

>
> david

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-08 18:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 17:53 Tagging in tree mode inwit
2021-02-08 18:45 ` David Bremner
2021-02-08 18:55   ` inwit

unofficial mirror of notmuch@notmuchmail.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/notmuch/0 notmuch/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 notmuch notmuch/ https://yhetil.org/notmuch \
		notmuch@notmuchmail.org
	public-inbox-index notmuch

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.mail.notmuch.general
	nntp://news.gmane.io/gmane.mail.notmuch.general


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git