blob: 50a8c82b475cdcabba7741f76fbd3697d1aaf2e3 (
plain) (
tree)
|
|
package statusline
type folderState struct {
Search string
Filter string
FilterActivity string
Threading string
}
func (fs *folderState) State() []string {
var line []string
if fs.FilterActivity != "" {
line = append(line, fs.FilterActivity)
} else {
if fs.Filter != "" {
line = append(line, fs.Filter)
}
}
if fs.Search != "" {
line = append(line, fs.Search)
}
if fs.Threading != "" {
line = append(line, fs.Threading)
}
return line
}
|