diff --git a/config/config.go b/config/config.go index 711db1b..b3de936 100644 --- a/config/config.go +++ b/config/config.go @@ -59,7 +59,6 @@ type UserPreferences struct { DisableDownloads bool `yaml:"disable_downloads"` DisableNotifications bool `yaml:"disable_notifications"` DisableShowURLs bool `yaml:"disable_show_urls"` - AltEnterToSend bool `yaml:"alt_enter_to_send"` InlineURLMode string `yaml:"inline_url_mode"` } diff --git a/ui/commands.go b/ui/commands.go index d1d8d8f..37eb4e3 100644 --- a/ui/commands.go +++ b/ui/commands.go @@ -954,20 +954,6 @@ func (itm InvertedToggleMessage) Name() string { return string(unicode.ToUpper(rune(itm[0]))) + string(itm[1:]) } -type NewlineKeybindMessage string - -func (nkm NewlineKeybindMessage) Format(state bool) string { - if state { - return "Now using to create new line and to send" - } else { - return "Now using to send and to create new line" - } -} - -func (nkm NewlineKeybindMessage) Name() string { - return string(nkm) -} - var toggleMsg = map[string]ToggleMessage{ "rooms": HideMessage("Room list sidebar"), "users": HideMessage("User list sidebar"), @@ -983,7 +969,6 @@ var toggleMsg = map[string]ToggleMessage{ "unverified": SimpleToggleMessage("sending messages to unverified devices"), "showurls": SimpleToggleMessage("show URLs in text format"), "inlineurls": InvertedToggleMessage("use fancy terminal features to render URLs inside text"), - "newline": NewlineKeybindMessage("should make a new line or send the message"), } func makeUsage() string { @@ -1040,8 +1025,6 @@ func cmdToggle(cmd *Command) { cmd.Reply("Force-enabled using fancy terminal features to render URLs inside text. Restart gomuks to apply changes.") } continue - case "newline": - val = &cmd.Config.Preferences.AltEnterToSend default: cmd.Reply("Unknown toggle %s. Use /toggle without arguments for a list of togglable things.", thing) return