Add options for customizing the appearance of the menu (#2123)

* Refactor for loop

* Save menu selection

* Add options to customize menu style

* Add documentation
This commit is contained in:
Joe Lim authored and GitHub committed 2025-08-27 19:49:07 +10:00
1 parent f2d2bb0f2c
commit 7297e4f522
7 files changed
+87 -24

No files matched your search

+2 -2
View File
@@ -674,7 +674,7 @@ func (app *app) doComplete() (matches []compMatch) {
}
app.ui.cmdAccLeft = []rune(result)
app.ui.menu = listMatches(app.ui.screen, matches, -1)
app.ui.menu, app.ui.menuSelect = listMatches(app.ui.screen, matches, -1)
return
}
@@ -697,7 +697,7 @@ func (app *app) menuComplete(direction int) {
app.menuCompTmp[len(app.menuCompTmp)-1] = app.menuComps[app.menuCompInd].result
app.ui.cmdAccLeft = []rune(strings.Join(app.menuCompTmp, " "))
}
app.ui.menu = listMatches(app.ui.screen, app.menuComps, app.menuCompInd)
app.ui.menu, app.ui.menuSelect = listMatches(app.ui.screen, app.menuComps, app.menuCompInd)
}
func (app *app) watchDir(dir *dir) {