fc604b6679
Indicate when sorting is in progress in the statusline. Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
32 lines
564 B
Go
32 lines
564 B
Go
package statusline
|
|
|
|
type folderState struct {
|
|
Search string
|
|
Filter string
|
|
FilterActivity string
|
|
Sorting 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.Sorting != "" {
|
|
line = append(line, fs.Sorting)
|
|
}
|
|
if fs.Threading != "" {
|
|
line = append(line, fs.Threading)
|
|
}
|
|
return line
|
|
}
|