]> git.neil.brown.name Git - edlib.git/commitdiff
notmuch: when moving among messages, set focus to query pane.
authorNeilBrown <neil@brown.name>
Thu, 8 Jun 2023 10:47:34 +0000 (20:47 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 05:40:21 +0000 (15:40 +1000)
Leaving the focus in the message pane feels clumsy.  So let's try always
moving back to the query pane.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
python/module-notmuch.py

index 44c1f573384054ac9f590d8a08023bbaa6318859..260fd65b65795a0a4bcd61f90429cb0707d9bc50 100644 (file)
@@ -14,7 +14,7 @@ the file.
 - [X] If an email part doesn't end with newline, last character is swallowed.
 - [X] What is rule for doc:content?  Does the mark move and get passed
       down, or is it copied and left unchanged?
-- [ ] notmuch: When moving among messages, always move cursor to search
+- [X] notmuch: When moving among messages, always move cursor to search
       pane
 
 ### Small
index 80a6ab8b405c24ad7607ad4abd76632733d73191..43650e8fac94e6744fec924a6c95b32ba30a3310 100644 (file)
@@ -2033,6 +2033,8 @@ class notmuch_master_view(edlib.Pane):
 
         m = p.call("doc:dup-point", 0, edlib.MARK_UNGROUPED, ret='mark')
         p.call("notmuch:select", m, direction)
+        if self.query_pane:
+            self.query_pane.take_focus()
         return 1
 
     def handle_j(self, key, focus, **a):