@@ -23,22 +23,24 @@ type KeyMap struct {
2323 F1 key.Binding
2424}
2525
26- // ShortHelp returns keybindings to be shown in the mini help view. It's part
27- // of the key.Map interface.
2826func (k KeyMap ) ShortHelp () []key.Binding {
29- return []key.Binding {
30- k .Up , k .Down , k .Left , k .Right , k .Tab , k .ShiftTab , k .KeyE , // first column
31- k .HelpPage , k .SettingPage , k .CtrlQuit , // second column
32- k .SwitchShowMode ,
33- }
27+ return []key.Binding {}
3428}
3529
3630// FullHelp returns keybindings for the expanded help view. It's part of the
3731// key.Map interface.
3832func (k KeyMap ) FullHelp () [][]key.Binding {
3933 return [][]key.Binding {
40- {k .Up , k .Down , k .Left , k .Right , k .Tab , k .ShiftTab , k .KeyE , k .KeyQ , k .KeyR , k .UpgradeApp }, // first column
41- {k .CtrlQuit , k .HelpPage , k .SettingPage , k .SwitchShowMode , k .Space , k .F1 }, // second column
34+ {
35+ k .Up , k .Down , k .Left , k .Right ,
36+ k .Tab , k .ShiftTab ,
37+ k .KeyE , k .KeyQ , k .KeyR ,
38+ }, // first column
39+ {
40+ k .CtrlQuit , k .HelpPage , k .SettingPage ,
41+ k .UpgradeApp ,
42+ k .SwitchShowMode , k .Space , k .F1 ,
43+ }, // second column
4244 }
4345}
4446
@@ -52,11 +54,11 @@ func (k KeyMap) FullHelp() [][]key.Binding {
5254var AppKeyMap = KeyMap {
5355 Up : key .NewBinding (
5456 key .WithKeys ("w" , "up" , "k" ),
55- key .WithHelp ("w/↑" , "[主题页]移动到上一个 " ),
57+ key .WithHelp ("w/↑" , "[主题页]列表上一个 " ),
5658 ),
5759 Down : key .NewBinding (
5860 key .WithKeys ("s" , "down" , "j" ),
59- key .WithHelp ("s/↓" , "[主题页]列表移动到下一个 " ),
61+ key .WithHelp ("s/↓" , "[主题页]列表下一个 " ),
6062 ),
6163 Left : key .NewBinding (
6264 key .WithKeys ("a" , "left" , "h" ),
@@ -80,38 +82,38 @@ var AppKeyMap = KeyMap{
8082 ),
8183 Tab : key .NewBinding (
8284 key .WithKeys ("tab" ),
83- key .WithHelp ("tab" , "[主题页]切换下一个节点 " ),
85+ key .WithHelp ("tab" , "[主题页]下一个节点 " ),
8486 ),
8587 Space : key .NewBinding (
8688 key .WithKeys (" " ),
87- key .WithHelp ("空格键 " , "老板键" ),
89+ key .WithHelp ("空格 " , "老板键" ),
8890 ),
8991 ShiftTab : key .NewBinding (
9092 key .WithKeys ("shift+tab" ),
91- key .WithHelp ("shift+tab" , "[主题页]切换上一个切点 " ),
93+ key .WithHelp ("shift+tab" , "[主题页]上一个切点 " ),
9294 ),
9395 CtrlQuit : key .NewBinding (
9496 key .WithKeys ("esc" , "ctrl+c" ),
9597 key .WithHelp ("esc" , "退出程序" ),
9698 ),
9799 KeyE : key .NewBinding (
98100 key .WithKeys ("e" , "enter" , "o" ),
99- key .WithHelp ("e/enter" , "[主题页]查看主题详情" ),
101+ key .WithHelp ("e/enter" , "[主题页]查看主题详情 / [详情页]加载评论 " ),
100102 ),
101103 SwitchShowMode : key .NewBinding (
102104 key .WithKeys ("=" ),
103- key .WithHelp ("=" , "[减号 ]切换底部显示隐藏" ),
105+ key .WithHelp ("=" , "[等于号 ]切换底部显示隐藏" ),
104106 ),
105107 KeyR : key .NewBinding (
106108 key .WithKeys ("r" ),
107- key .WithHelp ("r" , "加载图片" ),
109+ key .WithHelp ("r" , "[主题页]切换接口版本 / [详情页] 加载图片" ),
108110 ),
109111 UpgradeApp : key .NewBinding (
110112 key .WithKeys ("ctrl+u" ),
111113 key .WithHelp ("ctrl+u" , "更新应用(需要网络可以访问 github)" ),
112114 ),
113115 F1 : key .NewBinding (
114116 key .WithKeys ("f1" ),
115- key .WithHelp ("f1" , "打开详情或者打开配置文件 " ),
117+ key .WithHelp ("f1" , "[详情页]打开链接 / [配置页]打开配置文件 " ),
116118 ),
117119}
0 commit comments