Jelajahi Sumber

Add config for selecting messages

ayn2op 3 tahun lalu
induk
melakukan
1b082bb352
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  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,