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

[WIP] feat(tui): more binds & persistent preferences #9512

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Nov 25, 2024

Description

This PR has some prefactors that I'd like to cleanup before adding new functionality:

  • Weird existing variable names - chore(tui): rename some variables for clarity #9541
    • app.has_user_scrolled
    • scroll - What is the context, task list or logs pane?
  • Because of how many UI hints are going to be needed, we probably need some pop-up-modal-like functionality to get them all on screen in a way that makes sense.

TODOS:

  • p for pinning
    • Impl
    • UI hint
  • UI hint for j and k
  • UI hint for /
  • t and b to jump to the top/bottom of the current task section you're in?
  • Tests
  • Docs

Testing Instructions

TODO

Copy link

vercel bot commented Nov 25, 2024

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

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 29, 2024 7:15pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:15pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:15pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:15pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:15pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:15pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:15pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:15pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2024 7:15pm

@anthonyshew anthonyshew changed the title [WIP] feat(tui): Persistent preferences. [WIP] feat(tui): persistent preferences Nov 25, 2024
@anthonyshew anthonyshew changed the title [WIP] feat(tui): persistent preferences [WIP] feat(tui): more binds & persistent preferences Nov 29, 2024
@@ -85,7 +86,6 @@ fn translate_key_event(options: InputOptions, key_event: KeyEvent) -> Option<Eve
restore_scroll: true,
})
}
KeyCode::Char('h') => Some(Event::ToggleSidebar),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needs new PR: Just moving it to the right section.

@@ -767,9 +782,31 @@ fn update(
}
Event::Up => {
app.previous();
let _ = preferences::Preferences::update_preference(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: Handle result inside method.

100,
100,
vec!["a".to_string(), "b".to_string()],
&AbsoluteSystemPathBuf::default(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: Make a tempdir

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