fix: remove select_pin keymap

Closes #511
This commit is contained in:
ayn2op 2025-05-09 19:13:55 -04:00
parent c648894eee
commit f06879006f
2 changed files with 1 additions and 11 deletions

View file

@ -250,7 +250,7 @@ func (mt *MessagesText) onInputCapture(event *tcell.EventKey) *tcell.EventKey {
app.messageInput.replyMessageID = 0
mt.Highlight()
case mt.cfg.Keys.MessagesText.SelectPrevious, mt.cfg.Keys.MessagesText.SelectNext, mt.cfg.Keys.MessagesText.SelectFirst, mt.cfg.Keys.MessagesText.SelectLast, mt.cfg.Keys.MessagesText.SelectReply, mt.cfg.Keys.MessagesText.SelectPin:
case mt.cfg.Keys.MessagesText.SelectPrevious, mt.cfg.Keys.MessagesText.SelectNext, mt.cfg.Keys.MessagesText.SelectFirst, mt.cfg.Keys.MessagesText.SelectLast, mt.cfg.Keys.MessagesText.SelectReply:
mt._select(event.Name())
case mt.cfg.Keys.MessagesText.YankID:
mt.yankID()
@ -323,14 +323,6 @@ func (mt *MessagesText) _select(name string) {
}
}
}
case mt.cfg.Keys.MessagesText.SelectPin:
if ref := ms[messageIdx].Reference; ref != nil {
for _, m := range ms {
if ref.MessageID == m.ID {
mt.selectedMessageID = m.ID
}
}
}
}
mt.Highlight(mt.selectedMessageID.String())

View file

@ -34,7 +34,6 @@ type (
MessagesTextKeys struct {
NavigationKeys
SelectReply string `toml:"select_reply"`
SelectPin string `toml:"select_pin"`
Reply string `toml:"reply"`
ReplyMention string `toml:"reply_mention"`
@ -85,7 +84,6 @@ func defaultKeys() Keys {
SelectLast: "Rune[G]",
},
SelectReply: "Rune[s]",
SelectPin: "Rune[p]",
Reply: "Rune[r]",
ReplyMention: "Rune[R]",