浏览代码

Add config for selecting messages

ayn2op 3 年之前
父节点
当前提交
1b082bb352
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      config.go

+ 5 - 0
config.go

@@ -18,6 +18,8 @@ type (
 		CommonKeysConfig `yaml:",inline"`
 		Reply            string `yaml:"reply"`
 		ReplyMention     string `yaml:"reply_mention"`
+		SelectPrevious   string `yaml:"select_previous"`
+		SelectNext       string `yaml:"select_next"`
 	}
 
 	MessageInputKeysConfig struct {
@@ -107,6 +109,9 @@ func newConfig() (*Config, error) {
 				CommonKeysConfig: commonKeys,
 				Reply:            "Rune[r]",
 				ReplyMention:     "Rune[R]",
+
+				SelectPrevious: "Up",
+				SelectNext:     "Down",
 			},
 			MessageInput: MessageInputKeysConfig{
 				CommonKeysConfig: commonKeys,