Change fields' type in KeybindingConfig to string
This commit is contained in:
parent
867f87f2bc
commit
696623e4fa
1 changed files with 18 additions and 18 deletions
|
|
@ -14,16 +14,16 @@ type GeneralConfig struct {
|
|||
}
|
||||
|
||||
type KeybindingsConfig struct {
|
||||
FocusGuildsList []string `json:"focusGuildsList"`
|
||||
FocusChannelsTreeView []string `json:"focusChannelsTreeView"`
|
||||
FocusMessagesTextView []string `json:"focusMessagesTextView"`
|
||||
FocusMessageInputField []string `json:"focusMessageInputField"`
|
||||
FocusMessageActionsList []string `json:"focusMessageActionsList"`
|
||||
FocusGuildsList string `json:"focusGuildsList"`
|
||||
FocusChannelsTreeView string `json:"focusChannelsTreeView"`
|
||||
FocusMessagesTextView string `json:"focusMessagesTextView"`
|
||||
FocusMessageInputField string `json:"focusMessageInputField"`
|
||||
FocusMessageActionsList string `json:"focusMessageActionsList"`
|
||||
|
||||
SelectPreviousMessage []string `json:"selectPreviousMessage"`
|
||||
SelectNextMessage []string `json:"selectNextMessage"`
|
||||
SelectFirstMessage []string `json:"selectFirstMessage"`
|
||||
SelectLastMessage []string `json:"selectLastMessage"`
|
||||
SelectPreviousMessage string `json:"selectPreviousMessage"`
|
||||
SelectNextMessage string `json:"selectNextMessage"`
|
||||
SelectFirstMessage string `json:"selectFirstMessage"`
|
||||
SelectLastMessage string `json:"selectLastMessage"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
|
|
@ -41,16 +41,16 @@ func New() *Config {
|
|||
Timestamps: false,
|
||||
},
|
||||
Keybindings: KeybindingsConfig{
|
||||
FocusGuildsList: []string{"Alt+Rune[g]"},
|
||||
FocusChannelsTreeView: []string{"Alt+Rune[t]"},
|
||||
FocusMessagesTextView: []string{"Alt+Rune[m]"},
|
||||
FocusMessageInputField: []string{"Alt+Rune[i]"},
|
||||
FocusMessageActionsList: []string{"Alt+Rune[a]"},
|
||||
FocusGuildsList: "Alt+Rune[g]",
|
||||
FocusChannelsTreeView: "Alt+Rune[t]",
|
||||
FocusMessagesTextView: "Alt+Rune[m]",
|
||||
FocusMessageInputField: "Alt+Rune[i]",
|
||||
FocusMessageActionsList: "Alt+Rune[a]",
|
||||
|
||||
SelectPreviousMessage: []string{"Up"},
|
||||
SelectNextMessage: []string{"Down"},
|
||||
SelectFirstMessage: []string{"Home"},
|
||||
SelectLastMessage: []string{"End"},
|
||||
SelectPreviousMessage: "Up",
|
||||
SelectNextMessage: "Down",
|
||||
SelectFirstMessage: "Home",
|
||||
SelectLastMessage: "End",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue