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): bind to toggle task selection pinning #9609

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Dec 12, 2024

Description

While task selection pinning is convenient when tasks are changing order and status, it can sometimes get in the way.

When you haven't selected a task yet (e.g. pressed one of ↑/↓/j/k), you are in an unpinned state. You'll always be looking at the first task in the list, even as they shuffle around in order. When you do press one of those keys, you end up in a pinned state such that the task you selected continues to be selected.

This feels good until you select a task, and then want to "exit" that pinned state and let tasks flow around beneath your cursor again. In this PR, we solve this problem, adding a keybind for p that toggles the pinned/unpinned state of your selection.

Testing Instructions

Pick out your favorite Turborepo, run tasks with the TUI, and try out this new feature.

@anthonyshew anthonyshew requested a review from a team as a code owner December 12, 2024 03:38
Copy link

vercel bot commented Dec 12, 2024

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

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:39am
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:39am
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:39am
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:39am
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:39am
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:39am
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:39am
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:39am
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:39am

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.

1 participant