Skip to content

Add Alt+Shift+Up/Down to cycle through your editable messages#248

Open
mwaddip wants to merge 1 commit into
TDesktop-x64:devfrom
mwaddip:feat/edit-message-cycling
Open

Add Alt+Shift+Up/Down to cycle through your editable messages#248
mwaddip wants to merge 1 commit into
TDesktop-x64:devfrom
mwaddip:feat/edit-message-cycling

Conversation

@mwaddip

@mwaddip mwaddip commented Jun 14, 2026

Copy link
Copy Markdown

What

  • Alt+Shift+Up — edit your most recent editable message; each further press steps to the next older one (stops at the oldest).
  • Alt+Shift+Down — step to the next newer editable message; past your newest, exit edit mode.
  • Jumping away from an in-progress edit with unsaved changes shows the existing "Cancel editing?" confirmation.

Why

Requested by a keyboard-only user: the Up arrow already edits the last message and Ctrl+Up/Down cycles reply targets, but there was no way to walk through your own messages to edit them.

Notes

  • Implemented in HistoryWidget alongside the existing Ctrl+Up/Down reply-cycling; reuses History::lastEditableMessage and the displayed-message traversal, so grouped/album messages resolve through findItemToEdit like the existing edit path.
  • Ctrl+Shift+Up/Down (the natural sibling chord) was avoided because it's already bound to folder navigation; Alt+Shift+Up/Down is unbound.
  • Scope: main chat (HistoryWidget) only. The ComposeControls surfaces (topics/threads/scheduled) are untouched and could be a follow-up.

🤖 Generated with Claude Code

Lets keyboard-only users step through their own editable messages
without a mouse:

- Alt+Shift+Up edits the most recent editable message, then walks to
  older ones on each press (stops at the oldest).
- Alt+Shift+Down walks to newer ones and exits edit mode past the newest.
- Jumping away from an edit with unsaved changes shows the existing
  "Cancel editing?" confirmation.

Implemented in HistoryWidget alongside the existing Ctrl+Up/Down reply
cycling, reusing History::lastEditableMessage and the displayed-message
traversal. Ctrl+Shift+Up/Down was avoided because it is already bound to
folder navigation. Main chat only; ComposeControls surfaces are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mwaddip mwaddip force-pushed the feat/edit-message-cycling branch from fadf2a5 to 734e649 Compare June 14, 2026 15:35
@mwaddip mwaddip marked this pull request as ready for review June 14, 2026 16:46
@derycck

derycck commented Jun 17, 2026

Copy link
Copy Markdown

I'm really looking forward to this feature.
God bless you for having the motivation to implement it. It's sorely missed by those who rely on keyboards. (cough cough vim/emacs nerds cough cough)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants