mirror of https://gitee.com/openkylin/genmai.git
添加编写summary视图的热键绑定
This commit is contained in:
parent
d1a4859106
commit
486013064d
|
@ -147,6 +147,27 @@ func (fr *FrameReport)FrameReportKBind(g *gocui.Gui) error {
|
|||
FRAMEREPORTVIEW_VIEWNAME_SUMMARY,
|
||||
gocui.KeyCtrlP, gocui.ModNone, fr.PreSummary))
|
||||
|
||||
// detail
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyTab, gocui.ModNone, fr.NextView))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyCtrlQ, gocui.ModNone, fr.PreView))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyCtrlH, gocui.ModNone, fr.NextView))
|
||||
// rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyCtrlL, gocui.ModNone, fr.NextView))
|
||||
// rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyArrowUp, gocui.ModAlt, fr.PreView))
|
||||
// rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyArrowLeft, gocui.ModAlt, fr.NextView))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyArrowDown, gocui.ModNone, fr.CursorDown))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyArrowUp, gocui.ModNone, fr.CursorUp))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyCtrlJ, gocui.ModNone, fr.CursorDown))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyCtrlK, gocui.ModNone, fr.CursorUp))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyCtrlD, gocui.ModNone, fr.CursorPageDown))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyCtrlU, gocui.ModNone, fr.CursorPageUp))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeySpace, gocui.ModNone, fr.CursorPageDown))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyBackspace, gocui.ModNone, fr.CursorPageUp))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyBackspace2, gocui.ModNone, fr.CursorPageUp))
|
||||
// rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyCtrlM, gocui.ModNone, fr.CursorMoveMiddle))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyCtrlN, gocui.ModNone, fr.NextSummary))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyCtrlP, gocui.ModNone, fr.PreSummary))
|
||||
rcs = append(rcs, g.SetKeybinding("detail", gocui.KeyEnter, gocui.ModNone, fr.NextView))
|
||||
|
||||
for _, rc := range rcs {
|
||||
if rc != nil {
|
||||
return rc
|
||||
|
|
Loading…
Reference in New Issue