Restore search path context helper

This commit is contained in:
Joe Julian
2026-03-29 13:43:21 -07:00
parent 4fbaee3970
commit 47bbbdb05e
+8
View File
@@ -321,6 +321,14 @@ func (u *ui) filteredTitles() []string {
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) {
for _, item := range u.visible {
if item.ID == u.state.SelectedEntryID {