Restore search path context helper
This commit is contained in:
@@ -321,6 +321,14 @@ func (u *ui) filteredTitles() []string {
|
|||||||
return titles
|
return titles
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (u *ui) visiblePathContexts() []string {
|
||||||
|
paths := make([]string, 0, len(u.visible))
|
||||||
|
for _, item := range u.visible {
|
||||||
|
paths = append(paths, u.state.SearchPathContext(item))
|
||||||
|
}
|
||||||
|
return paths
|
||||||
|
}
|
||||||
|
|
||||||
func (u *ui) selectedEntry() (entry, bool) {
|
func (u *ui) selectedEntry() (entry, bool) {
|
||||||
for _, item := range u.visible {
|
for _, item := range u.visible {
|
||||||
if item.ID == u.state.SelectedEntryID {
|
if item.ID == u.state.SelectedEntryID {
|
||||||
|
|||||||
Reference in New Issue
Block a user