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

UI rewrite to use prompt() #459

Open
WhyNotHugo opened this issue Oct 3, 2021 · 3 comments
Open

UI rewrite to use prompt() #459

WhyNotHugo opened this issue Oct 3, 2021 · 3 comments

Comments

@WhyNotHugo
Copy link
Member

WhyNotHugo commented Oct 3, 2021

The current TUI is a bit clunky and wierd to use. It needs to be scrolled down with arrows, which isn't handy, [have to leave the home row] and the feedback loop when a value is invalid is not very friendly.

Something that prompts for fields and provides immediate feedback if any is invalid should be more friendly and allow more code reuse with the cli frontend. It's likely we can drop urwid entirely, and just use click.prompt().

todo new
Summary?
> some summary
Description? [none]
>
...

Not sure if to ask about all fields each time or not. It might get annoying quickly, but there's always the one liner:

todo new "Using quotes is handy if you todo's description has apostrophes."
@grmat
Copy link

grmat commented Mar 11, 2022

Not sure if to ask about all fields each time or not.

How about leaving it to the users to set up classes of todos in their config files?

sample config:

class_a = "default;summary"
class_b = "summary,location"
class_c = "*"

Here, default class a has just the summary, is used when todo new is called with no option or todo new -c a

todo new -c b additionally asks for location and class c for everything (but you could still skip by entering nothing).

@WhyNotHugo
Copy link
Member Author

I like this approach, will definitely keep it in mind.

@Tonus1
Copy link

Tonus1 commented Oct 30, 2023

I was wondering if it could be [none]/[d]one
With a single "d" saving the todo in the actual state.

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

No branches or pull requests

3 participants