Add Unix socket for communicating with aerc
This commit is contained in:
parent
b3a66866b9
commit
7a489cb001
4 changed files with 139 additions and 0 deletions
widgets
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue