diffplug / diffplug/dormouse

Better handling for incorrect characters typed in Command Mode

Open
#68 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
5
Forks
0
Avg merge
18h 32m
Merged PRs (30d)
216

Description

Story:
- user is in command mode
- user attempts to type into the terminal
- probably the first character isn't a shortcut, but pretty quick they stumble into one, and a surprising shortcut action takes place
- all the destructive ones have confirm screens, so little risk of a big problem, but it's not great

Possible better answer:
- when a wrong character is typed, a modal pops up

```
That's not a shortcut!
Press [Enter] if you meant to type into the terminal in PASSTHROUGH mode
Press [Esc] to return to COMMAND mode

Recognized shortcuts are:

```

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named in the issue. Start by locating the command-mode input handling and modal components, then trace how unrecognized characters are processed. Done means an incorrect character opens the described modal, Enter switches to PASSTHROUGH mode, Esc returns to COMMAND mode, and recognized shortcuts are listed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.