]> granicus.if.org Git - neomutt/commitdiff
sidebar
authorRichard Russon <rich@flatcap.org>
Sun, 29 Sep 2019 16:43:31 +0000 (17:43 +0100)
committerRichard Russon <rich@flatcap.org>
Sun, 27 Oct 2019 03:31:20 +0000 (03:31 +0000)
sidebar.c
sidebar.txt [new file with mode: 0644]

index 572b4298b42b60299a5c0eb2a3697490e73f3592..39af7c863c5597f33129a04d2d4ead9627c81ec6 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -1175,7 +1175,7 @@ void mutt_sb_notify_mailbox(struct Mailbox *m, bool created)
  */
 int mutt_sb_observer(struct NotifyCallback *nc)
 {
-  if (!nc || !nc->data)
+  if (!nc || !nc->data || !nc->event)
     return -1;
 
   struct MuttWindow *win = (struct MuttWindow *) nc->data;
diff --git a/sidebar.txt b/sidebar.txt
new file mode 100644 (file)
index 0000000..d19142a
--- /dev/null
@@ -0,0 +1,32 @@
+sidebar events
+
+14 config variables
+       13 require repainting
+       sidebar_on_right => dialog repaint
+
+7 sidebar colours + indicator colour -> repaint
+
+Window resize / movement
+       e.g. "toggle help"
+
+new/deleted Mailbox
+
+update Mailbox stats
+
+Mailbox *View* changes, e.g. User flags/tags email
+
+Visibility changes
+       e.g. obscured by another dialog
+
+shutdown - window will be destroyed
+
+commands: (un)sidebar_whitelist
+       (un)subscribe -> new/del Mailbox
+
+simple functions - move cursor, pg up/down
+       toggle-visible -> repaint
+
+hard functions - sidebar-open
+
+change current Mailbox -> repaint
+