mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
cleaning up
This commit is contained in:
parent
d0308142a3
commit
d212037ff5
@ -79,7 +79,7 @@ func (widget *Widget) displayCustomQuery(repo *GithubRepo, filter string, perPag
|
||||
return str
|
||||
}
|
||||
|
||||
func (widget *Widget) displayMyReviewRequests(repo*GithubRepo, username string) string {
|
||||
func (widget *Widget) displayMyReviewRequests(repo *GithubRepo, username string) string {
|
||||
prs := repo.myReviewRequests(username)
|
||||
|
||||
numSelections := widget.GetSelected()
|
||||
|
@ -17,6 +17,6 @@ func (widget *Widget) initializeKeyboardControls() {
|
||||
widget.SetKeyboardKey(tcell.KeyUp, widget.Prev, "Select previous item")
|
||||
widget.SetKeyboardKey(tcell.KeyRight, widget.NextSource, "Select next source")
|
||||
widget.SetKeyboardKey(tcell.KeyLeft, widget.PrevSource, "Select previous source")
|
||||
widget.SetKeyboardKey(tcell.KeyEnter, widget.openPr, "Open item in browser")
|
||||
widget.SetKeyboardKey(tcell.KeyEnter, widget.openPr, "Open PR in browser")
|
||||
widget.SetKeyboardKey(tcell.KeyInsert, widget.openRepo, "Open item in browser")
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) *
|
||||
}
|
||||
|
||||
widget.GithubRepos = widget.buildRepoCollection(widget.settings.repositories)
|
||||
|
||||
|
||||
widget.initializeKeyboardControls()
|
||||
widget.View.SetRegions(true)
|
||||
widget.View.SetInputCapture(widget.InputCapture)
|
||||
|
Loading…
x
Reference in New Issue
Block a user