synchrony / smsn-mode

Emacs client for Semantic Synchrony knowledge graphs
GNU General Public License v3.0
11 stars 6 forks source link

Varying what the message bar shows, and a state model question #25

Open JeffreyBenjaminBrown opened 7 years ago

JeffreyBenjaminBrown commented 7 years ago

Currently the title bar, for a normal note, always shows these things: the title, the ID, "smsn-mode-ing", "tree", some other stuff.

Users who use big fonts might want to sometimes suppress the ID (and other things) so that they can read more of the title.

Beginners might have an easier time if the title showed whether the view is forward or backward.

Users of the emacs-smsn docker bundle will want it to show which submode they are in, because the cursor cannot change color in that configuration.

I could make these changes myself if I knew the state model for smsn-mode. Is there some central state variable, or is state the emergent result of a collection of variables? Some variables are specific to certain buffers, some are global, and maybe others have different scope still; what is the set of scopes?

joshsh commented 7 years ago

I can provide a link when I get home, but everything that defines a view is contained in a single buffer local context variable. You can define a function which consumes that variable and produces an alternative title.

Sent from my mobile device

On Jul 1, 2017 4:50 PM, "Jeffrey Benjamin Brown" notifications@github.com wrote:

Currently the title bar, for a normal note, always shows these things: the title, the ID, "smsn-mode-ing", "tree", some other stuff.

Users who use big fonts might want to sometimes suppress the ID (and other things) so that they can read more of the title.

Beginners might have an easier time if the title showed whether the view is forward or backward.

Users of the emacs-smsn docker bundle will want it to show which submode they are in, because the cursor cannot change color in that configuration.

I could make these changes myself if I knew the state model for smsn-mode. Is there some central state variable, or is state the emergent result of a collection of variables? Some variables are specific to certain buffers, some are global, and maybe others have different scope still; what is the set of scopes?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/synchrony/smsn-mode/issues/25, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFpBB95Q0hOyxuo5R4uemxdFSVbHpJYks5sJtsogaJpZM4OLclz .