about summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/account-wizard.go30
-rw-r--r--widgets/msgviewer.go12
2 files changed, 21 insertions, 21 deletions
diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go
index 59f22e7..ae45bb8 100644
--- a/widgets/account-wizard.go
+++ b/widgets/account-wizard.go
@@ -179,7 +179,7 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 		At(7, 0)
 	basics.AddChild(wizard.email).
 		At(8, 0)
-	selector := NewSelector([]string{"Next"}, 0, conf.Ui).
+	selecter := NewSelecter([]string{"Next"}, 0, conf.Ui).
 		OnChoose(func(option string) {
 			email := wizard.email.String()
 			if strings.ContainsRune(email, '@') {
@@ -203,9 +203,9 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 			}
 			wizard.advance(option)
 		})
-	basics.AddChild(selector).At(9, 0)
+	basics.AddChild(selecter).At(9, 0)
 	wizard.basics = []ui.Interactive{
-		wizard.accountName, wizard.fullName, wizard.email, selector,
+		wizard.accountName, wizard.fullName, wizard.email, selecter,
 	}
 	basics.OnInvalidate(func(_ ui.Drawable) {
 		wizard.Invalidate()
@@ -261,7 +261,7 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 		ui.NewText("Connection mode",
 			conf.Ui.GetStyle(config.STYLE_HEADER))).
 		At(10, 0)
-	imapMode := NewSelector([]string{
+	imapMode := NewSelecter([]string{
 		"IMAP over SSL/TLS",
 		"IMAP with STARTTLS",
 		"Insecure IMAP",
@@ -277,14 +277,14 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 		wizard.imapUri()
 	})
 	incoming.AddChild(imapMode).At(11, 0)
-	selector = NewSelector([]string{"Previous", "Next"}, 1, conf.Ui).
+	selecter = NewSelecter([]string{"Previous", "Next"}, 1, conf.Ui).
 		OnChoose(wizard.advance)
 	incoming.AddChild(ui.NewFill(' ')).At(12, 0)
 	incoming.AddChild(wizard.imapStr).At(13, 0)
-	incoming.AddChild(selector).At(14, 0)
+	incoming.AddChild(selecter).At(14, 0)
 	wizard.incoming = []ui.Interactive{
 		wizard.imapUsername, wizard.imapPassword, wizard.imapServer,
-		imapMode, selector,
+		imapMode, selecter,
 	}
 	incoming.OnInvalidate(func(_ ui.Drawable) {
 		wizard.Invalidate()
@@ -343,7 +343,7 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 		ui.NewText("Connection mode",
 			conf.Ui.GetStyle(config.STYLE_HEADER))).
 		At(10, 0)
-	smtpMode := NewSelector([]string{
+	smtpMode := NewSelecter([]string{
 		"SMTP over SSL/TLS",
 		"SMTP with STARTTLS",
 		"Insecure SMTP",
@@ -359,7 +359,7 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 		wizard.smtpUri()
 	})
 	outgoing.AddChild(smtpMode).At(11, 0)
-	selector = NewSelector([]string{"Previous", "Next"}, 1, conf.Ui).
+	selecter = NewSelecter([]string{"Previous", "Next"}, 1, conf.Ui).
 		OnChoose(wizard.advance)
 	outgoing.AddChild(ui.NewFill(' ')).At(12, 0)
 	outgoing.AddChild(wizard.smtpStr).At(13, 0)
@@ -367,7 +367,7 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 	outgoing.AddChild(
 		ui.NewText("Copy sent messages to 'Sent' folder?",
 			conf.Ui.GetStyle(config.STYLE_HEADER))).At(15, 0)
-	copySent := NewSelector([]string{"Yes", "No"}, 0, conf.Ui).
+	copySent := NewSelecter([]string{"Yes", "No"}, 0, conf.Ui).
 		Chooser(true).OnChoose(func(option string) {
 		switch option {
 		case "Yes":
@@ -377,10 +377,10 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 		}
 	})
 	outgoing.AddChild(copySent).At(16, 0)
-	outgoing.AddChild(selector).At(17, 0)
+	outgoing.AddChild(selecter).At(17, 0)
 	wizard.outgoing = []ui.Interactive{
 		wizard.smtpUsername, wizard.smtpPassword, wizard.smtpServer,
-		smtpMode, copySent, selector,
+		smtpMode, copySent, selecter,
 	}
 	outgoing.OnInvalidate(func(_ ui.Drawable) {
 		wizard.Invalidate()
@@ -398,7 +398,7 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 			"save your settings to accounts.conf.\n\n"+
 			"To add another account in the future, run ':new-account'.",
 		conf.Ui.GetStyle(config.STYLE_DEFAULT)))
-	selector = NewSelector([]string{
+	selecter = NewSelecter([]string{
 		"Previous",
 		"Finish & open tutorial",
 		"Finish",
@@ -412,8 +412,8 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 			wizard.finish(false)
 		}
 	})
-	complete.AddChild(selector).At(1, 0)
-	wizard.complete = []ui.Interactive{selector}
+	complete.AddChild(selecter).At(1, 0)
+	wizard.complete = []ui.Interactive{selecter}
 	complete.OnInvalidate(func(_ ui.Drawable) {
 		wizard.Invalidate()
 	})
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 6a91741..30c83f7 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -458,7 +458,7 @@ type PartViewer struct {
 	sink        io.WriteCloser
 	source      io.Reader
 	term        *Terminal
-	selector    *Selector
+	selecter    *Selecter
 	grid        *ui.Grid
 	uiConfig    config.UIConfig
 }
@@ -530,7 +530,7 @@ func NewPartViewer(acct *AccountView, conf *config.AercConfig,
 		{ui.SIZE_WEIGHT, ui.Const(1)},
 	})
 
-	selector := NewSelector([]string{"Save message", "Pipe to command"},
+	selecter := NewSelecter([]string{"Save message", "Pipe to command"},
 		0, acct.UiConfig()).
 		OnChoose(func(option string) {
 			switch option {
@@ -541,7 +541,7 @@ func NewPartViewer(acct *AccountView, conf *config.AercConfig,
 			}
 		})
 
-	grid.AddChild(selector).At(2, 0)
+	grid.AddChild(selecter).At(2, 0)
 
 	pv := &PartViewer{
 		conf:        conf,
@@ -554,7 +554,7 @@ func NewPartViewer(acct *AccountView, conf *config.AercConfig,
 		showHeaders: conf.Viewer.ShowHeaders,
 		sink:        pipe,
 		term:        term,
-		selector:    selector,
+		selecter:    selecter,
 		grid:        grid,
 		uiConfig:    acct.UiConfig(),
 	}
@@ -686,7 +686,7 @@ func (pv *PartViewer) Draw(ctx *ui.Context) {
 		)
 		ctx.Printf(0, 2, style,
 			"You can still :save the message or :pipe it to an external command")
-		pv.selector.Focus(true)
+		pv.selecter.Focus(true)
 		pv.grid.Draw(ctx)
 		return
 	}
@@ -713,7 +713,7 @@ func (pv *PartViewer) Event(event tcell.Event) bool {
 	if pv.term != nil {
 		return pv.term.Event(event)
 	}
-	return pv.selector.Event(event)
+	return pv.selecter.Event(event)
 }
 
 type HeaderView struct {
y' href='/acidbong/suckless/dwm/commit/dwm.h?h=2.0&id=bf357945070a9f4722b8dcbf61d61b34d1aae0aa'>bf35794 ^
1076f2b
439e15d ^
bf35794 ^
1076f2b
8af1d97 ^
c53980c ^
8b59083 ^
8b59083 ^


bf35794 ^

8b59083 ^

650a1fb ^
8b59083 ^
8b59083 ^


bf35794 ^


8b59083 ^

1076f2b
da2bbd3 ^

3399650 ^
1173723 ^

a05beb6 ^
2e836ec ^

a05beb6 ^
901b3ed ^
4688ad1 ^
1076f2b
72707c2 ^
bf35794 ^

1076f2b

bf35794 ^

66da153 ^

bf35794 ^

efa7e51 ^
bf35794 ^


bf35794 ^
39677ec ^
439e15d ^
dba2306 ^
3399650 ^
adaa28a ^


dba2306 ^
adaa28a ^
c0705ee ^
adaa28a ^
dfd84f9 ^
adaa28a ^
04eb016 ^
adaa28a ^

4688ad1 ^
adaa28a ^

3399650 ^
d7e1708 ^
dba2306 ^
c0705ee ^
adaa28a ^
c0705ee ^

9e8b325 ^
d7e1708 ^
dba2306 ^
29355bd ^
b9da4b0 ^
9e8b325 ^
adaa28a ^
c47da14 ^
dba2306 ^
adaa28a ^
9e8b325 ^
dba2306 ^
adaa28a ^
dba2306 ^

4f8b08d ^
72707c2 ^
dba2306 ^
adaa28a ^
4688ad1 ^
adaa28a ^
29355bd ^
8b59083 ^
8b59083 ^
adaa28a ^
c47da14 ^
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146