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