summary refs log tree commit diff stats
path: root/doc/colorschemes.txt
Commit message (Expand)AuthorAgeFilesLines
* doc/colorschemes.txt: updatehut2013-06-101-3/+3
* updated doc/colorschemes.txthut2010-12-221-15/+6
* Changed default config dir to $XDG_CONFIG_HOME/rangerhut2010-08-281-2/+2
* doc/colorschemes: ugh, its no logical but bitwise OR!hut2010-03-171-1/+1
* standardized formatting of headings in doc/hut2010-03-121-6/+16
* added documentation on how colorschemes workhut2010-03-121-0/+91
7ff6550d64aa0243192c922c977f41ce549e42'>887ff65 ^
2a09617 ^
887ff65 ^







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31







                                          

                  
             








                                                                    

 
                                                                







                                                             
package compose

import (
	"errors"

	"git.sr.ht/~sircmpwn/aerc/widgets"
)

type Edit struct{}

func init() {
	register(Edit{})
}

func (_ Edit) Aliases() []string {
	return []string{"edit"}
}

func (_ Edit) Complete(aerc *widgets.Aerc, args []string) []string {
	return nil
}

func (_ Edit) Execute(aerc *widgets.Aerc, args []string) error {
	if len(args) != 1 {
		return errors.New("Usage: edit")
	}
	composer, _ := aerc.SelectedTab().(*widgets.Composer)
	composer.ShowTerminal()
	composer.FocusTerminal()
	return nil
}