()
| 268 | } |
| 269 | |
| 270 | func (el *extList) FindSelected() (extEntry, int) { |
| 271 | if el.ui.List.GetItemCount() == 0 { |
| 272 | return extEntry{}, -1 |
| 273 | } |
| 274 | title, desc := el.ui.List.GetItemText(el.ui.List.GetCurrentItem()) |
| 275 | for x, e := range el.extEntries { |
| 276 | if e.Title() == title && e.Description() == desc { |
| 277 | return e, x |
| 278 | } |
| 279 | } |
| 280 | return extEntry{}, -1 |
| 281 | } |
| 282 | |
| 283 | func (el *extList) Filter(text string) { |
| 284 | el.filter = text |