-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package gojira | ||
|
||
import "github.com/rivo/tview" | ||
|
||
type Help struct { | ||
*tview.TextView | ||
} | ||
|
||
func NewHelpView() *Help { | ||
help := &Help{ | ||
TextView: tview.NewTextView(), | ||
} | ||
help.SetText("Shortcuts:\n\n" + | ||
"<- - previous day\n" + | ||
"-> - next day\n" + | ||
"shift + -> - next month\n" + | ||
"shift + <- - previous month\n" + | ||
"/ - search\n" + | ||
"del - delete log\n" + | ||
"enter - add/edit log\n" + | ||
"tab - switch between lists", | ||
) | ||
return help | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters