Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tui): Enter interactive with i key. #9479

Merged
merged 2 commits into from
Nov 21, 2024
Merged

feat(tui): Enter interactive with i key. #9479

merged 2 commits into from
Nov 21, 2024

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Nov 21, 2024

Description

We've begun to embrace the letters on the keyboard a bit more for manipulating the TUI.

This PR allows you to enter into interacting with a task using the i key. Notably, it leaves Enter in place, despite the helper text changing. This is to let muscle memory for existing users keep at it - until we remove it in 3.0. Hopefully they see the helper text by then.

Testing Instructions

Try it out!

Copy link

vercel bot commented Nov 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 5:39pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2024 5:39pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2024 5:39pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2024 5:39pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2024 5:39pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2024 5:39pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2024 5:39pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2024 5:39pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2024 5:39pm

@@ -7,8 +7,8 @@ use tui_term::widget::PseudoTerminal;

use super::{app::LayoutSections, TerminalOutput};

const FOOTER_TEXT_ACTIVE: &str = "Press`Ctrl-Z` to stop interacting.";
const FOOTER_TEXT_INACTIVE: &str = "Press `Enter` to interact.";
const FOOTER_TEXT_ACTIVE: &str = "Press `Ctrl-Z` to stop interacting.";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a space missing!?

@anthonyshew anthonyshew changed the title feat(tui): Enter interactive with i key. feat(tui): Enter interactive with i key. Nov 21, 2024
crates/turborepo-ui/src/tui/input.rs Outdated Show resolved Hide resolved
@anthonyshew anthonyshew enabled auto-merge (squash) November 21, 2024 17:39
@anthonyshew anthonyshew merged commit f352346 into main Nov 21, 2024
40 checks passed
@anthonyshew anthonyshew deleted the shew-5360d branch November 21, 2024 18:18
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