feat(shortcuts): show quit shortcut in default CLI output#21572
feat(shortcuts): show quit shortcut in default CLI output#21572palewire wants to merge 1 commit intovitejs:mainfrom
Conversation
These two should work fine in Vite depending on which you prefer. Ctrl+C also shouldn't be hanging the process. The main benefit of the Can you show some examples, environments or repros where these methods are causing problems? |
Sure. Here's one. Even if you don't buy those definitions of the problem, I think this additional line of logging is worth doing strictly for the n00bs. I have seen dozens of students not understanding they've lost the ability to type more commands when they run A little hint like this could go a long way to clearing up that confusion and guiding new users into Vite and web development. |
|
I understand where you're coming from, but additions like these aren't free. Vite is used by various levels of developers. Additional information upfront helps new users, but not others who're already familiar with the terminal, they might consider it as noise and we'd have to reconsider the design again. Even if we do expose some hint, it's better to show Maybe others feel differently of this, but to balance how Vite is used by various users, I believe we shouldn't add the hint. |
|
I totally agree it's a balancing act. In my opinion, this one situation would benefit from a slight lean towards the n00b. |
Makes the
q + enterquit shortcut visible by default in the dev server startup message, instead of hiding it behind the help menu.This appears right after the existing "press h + enter to show help" line, making both the most essential shortcuts immediately visible.
Why?
When teaching Vite to newcomers (journalism students at CUNY, workshop participants), a common point of frustration is not knowing how to exit the dev server. New developers often:
Ctrl+Crepeatedly (which can leave processes hanging)The quit shortcut is arguably the most important one for beginners to know, yet it's currently hidden behind
h + enter. By the time they discover it, they've already developed workarounds.