Add Unix socket for communicating with aerc

This commit is contained in:
Drew DeVault 2019-07-19 14:15:48 -04:00
parent b3a66866b9
commit 7a489cb001
4 changed files with 139 additions and 0 deletions
widgets

View file

@ -138,6 +138,13 @@ func (c *Composer) FocusTerminal() *Composer {
return c
}
func (c *Composer) FocusSubject() *Composer {
c.focusable[c.focused].Focus(false)
c.focused = 2
c.focusable[c.focused].Focus(true)
return c
}
func (c *Composer) OnSubjectChange(fn func(subject string)) {
c.headers.subject.OnChange(func() {
fn(c.headers.subject.input.String())