Better handling for incorrect characters typed in Command Mode

Open
#68 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

Description

enhancement

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:
<TABLE>
Dominant language
TypeScript
Stars
5
Forks
1
Avg merge
18h 26m
Merged PRs (30d)
229

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from diffplug/dormouse

All issues in diffplug/dormouse

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.