Skip to content

lms chat - Add shortcuts#403

Open
rugvedS07 wants to merge 25 commits intomainfrom
rugved/chat-shortcuts
Open

lms chat - Add shortcuts#403
rugvedS07 wants to merge 25 commits intomainfrom
rugved/chat-shortcuts

Conversation

@rugvedS07
Copy link
Member

@rugvedS07 rugvedS07 commented Dec 18, 2025

Overview

This PR implements the following shortcuts in input in lms chat:

All Platforms (Common)

  • Ctrl+D - Exit (if input empty)

Deletion:

  • Delete - Delete after cursor
  • Ctrl+W - Delete word backward (also works as Ctrl+Backspace)
  • Alt+Backspace - Delete word backward
  • Alt+Arrow / Option+Arrow - Move cursor word direction

macOS/Linux Only

Navigation:

  • Ctrl+A - Move cursor to line start (also works as Cmd+LeftArrow)
  • Ctrl+E - Move cursor to line end (also works as Cmd+RightArrow)
  • Ctrl+B - Move cursor left by character
  • Ctrl+F - Move cursor right by character
  • Alt+B / Cmd+B - Move cursor word left
  • Alt+F / Cmd+F - Move cursor word right

Deletion:

  • Ctrl+D - Delete after cursor
  • Ctrl+U - Delete to line start (Cmd+Backspace in Mac)
  • Ctrl+K - Delete to line end (Cmd+Delete in Mac)

Windows/Linux Only

Navigation:

  • Ctrl+Left - Move cursor word left
  • Ctrl+Right - Move cursor word right

Windows Only

  • Alt+Delete - Delete word forward

Linux Only

  • Alt+D - Delete word forward

Video with debug log statements to demonstrate

Screen.Recording.2025-12-23.at.3.38.32.PM.mov

Needs lmstudio-ai/lmstudio-js#502

@github-actions github-actions bot added the CLA signed Indicates if all contributors have signed the CLA label Dec 18, 2025
@rugvedS07 rugvedS07 changed the title [WIP] lms chat - Add shortcuts lms chat - Add shortcuts Dec 23, 2025
@rugvedS07 rugvedS07 force-pushed the rugved/chat-shortcuts branch from 861c41b to 5cf2e56 Compare December 23, 2025 21:55
@rugvedS07 rugvedS07 marked this pull request as ready for review December 23, 2025 21:59
@rugvedS07 rugvedS07 requested a review from will-lms December 23, 2025 23:39
@rugvedS07 rugvedS07 force-pushed the rugved/chat-shortcuts branch from 5cf2e56 to 07bc291 Compare December 23, 2025 23:50
@will-lms
Copy link
Contributor

will-lms commented Dec 24, 2025

Is the cursor supposed to have a "T" in it?

Screenshot 2025-12-23 at 7 21 09 PM

@will-lms
Copy link
Contributor

I typed /load to try to load a model. It seems we don't support that. I keep pressing backspace to delete, and get stuck being unable to delete past /lo.

Screenshot 2025-12-23 at 7 21 50 PM

Now I cannot delete anything with backspace. I can go to beginning of line with shortcuts, and Ctrl+K to kill line (works), then I can't delete anything when I start typing again

Screenshot 2025-12-23 at 7 23 54 PM

@will-lms
Copy link
Contributor

Even fresh with a new command prompt (after quiting and re-starting lms) I cannot delete anything.

@rugvedS07
Copy link
Member Author

Is the cursor supposed to have a "T" in it?

Interesting how in my VSCode I see it in solarized dark

image

@will-lms
Copy link
Contributor

Not blocking, but we should support Ctrl + Z for suspending the lms chat process.

@will-lms
Copy link
Contributor

When I Meta + f over a pasted block, the cursor jumps to the end of the word following the block. I would have expected it to jump just over the paste block and be at the start of the word following (i.e. start of My in this video).

Screen.Recording.2026-01-12.at.12.03.26.PM.mov

@rugvedS07
Copy link
Member Author

Tweaked!

Screen.Recording.2026-01-12.at.12.18.56.PM.mov

@rugvedS07 rugvedS07 force-pushed the rugved/chat-shortcuts branch from 51833b0 to 62b0ec6 Compare January 22, 2026 20:07
@rugvedS07 rugvedS07 requested a review from will-lms January 22, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA signed Indicates if all contributors have signed the CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants