bye sup, hi notmuch/alot
This commit is contained in:
parent
911acc84d4
commit
55376c70d7
16 changed files with 167 additions and 177 deletions
16
config/alot/hooks.py
Normal file
16
config/alot/hooks.py
Normal 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"})
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue