From: Gaute Hope <eg@gaute.vetsj.com>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Fwd: Re: [sup] Deleting an email does not remove the inbox label (#211)
Date: Mon, 27 Jan 2014 08:33:48 +0100 [thread overview]
Message-ID: <1390808017-sup-7245@qwerzila> (raw)
[-- Attachment #1: Type: text/plain, Size: 1401 bytes --]
This might be of interest..
--- Begin forwarded message from Christopher Corley ---
From: Christopher Corley <notifications@github.com>
To: sup-heliotrope/sup <sup@noreply.github.com>
Cc: Gaute Hope <eg@gaute.vetsj.com>
Date: Sat, 18 Jan 2014 20:37:18 +0100
Subject: Re: [sup] Deleting an email does not remove the inbox label (#211)
Got it! Had to add a method to a few of the modes, and then bind a key to that method.
startup.rb:
```
class Redwood::ThreadIndexMode
def toggle_archived_and_deleted
t = cursor_thread or return
multi_toggle_archive [t]
multi_toggle_deleted [t]
end
end
class Redwood::InboxMode
def archive_and_delete
t = cursor_thread or return
multi_archive [t]
multi_toggle_deleted [t]
end
end
class Redwood::ThreadMode
def archive_and_delete_and_next
archive_and_then { delete_and_next }
end
end
```
and keybindings.rb:
```
modes["inbox-mode"].keymap.add :archive_and_delete, "Archive and delete", :backspace
modes["thread-index-mode"].keymap.add :toggle_archived_and_deleted, "Archive and delete thread", :backspace
modes["thread-view-mode"].keymap.add :archive_and_delete_and_next, "Archive and delete thread, then view next", :backspace
```
Hope this helps someone out!
---
Reply to this email directly or view it on GitHub:
https://github.com/sup-heliotrope/sup/issues/211#issuecomment-32690777
--- End forwarded message ---
[-- Attachment #2: sup-attachment-1390807517-7371.html --]
[-- Type: text/html, Size: 1413 bytes --]
reply other threads:[~2014-01-27 7:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390808017-sup-7245@qwerzila \
--to=eg@gaute.vetsj.com \
--cc=sup-talk@rubyforge.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox