bye sup, hi notmuch/alot

This commit is contained in:
Felix Van der Jeugt 2017-04-27 18:51:18 +02:00
parent 911acc84d4
commit 55376c70d7
No known key found for this signature in database
GPG key ID: 58B209295023754D
16 changed files with 167 additions and 177 deletions

16
config/alot/hooks.py Normal file
View file

@ -0,0 +1,16 @@
from alot.commands.globals import ExternalCommand
from alot.commands.search import OpenThreadCommand
def loop_hook(ui=None):
ui.apply_command(ExternalCommand(
["notmuch", "new", "--quiet"],
thread=True,
))
if ui and ui.current_buffer:
ui.update()
def post_search_select(ui=None, dbm=None, cmd=None):
if isinstance(cmd, OpenThreadCommand):
cmd.thread.remove_tags({"unread"})