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

Sort TD list - [feature request] #23

Open
dwtompkins opened this issue Jan 12, 2021 · 6 comments
Open

Sort TD list - [feature request] #23

dwtompkins opened this issue Jan 12, 2021 · 6 comments

Comments

@dwtompkins
Copy link

I would find it very useful to be able to sort my ToDo list alphabetically. I usually organize my todolist with a project prefix. I'm wondering how I would go about filtering or sorting the db query if possible...

@darrikonn
Copy link
Owner

I agree, that would be useful!

I'll add that.

@dwtompkins
Copy link
Author

Awesome. Thanks for the quick response!
I've been using td-cli on Regolith Linux for about a month now, and the integration is spectacular. I have it setup to open with Alacritty and use some different symbols:

image

Makes coding a lot more fun when I can stay in the zone.

@darrikonn
Copy link
Owner

darrikonn commented Jan 14, 2021

Awesome!
Happy to hear!

Btw. looks like your prefixes could be replaced with groups.

td add-group my-project
td --group my-project  # this will only display todos in the my-project group
td add "my todo" --group my-project  # adds the todo to the my-project group

(you can also move your existing todos to a group with td <id> edit --group my-project)

Additionally what I always do is initialising a td config in the root of the repo I'm working in, e.g.

cd repos/foobar
td add-group foobar
td init-config  # set foobar as default group
td  # will only list todos from the foobar group
td a "my task"  # will create the todo inside the foobar group

That way I never have to pass the --group flag when I'm working on different projects.

The global (default) group is thought of as gathering all your todos, regardless of what group they live in. You can globally overwrite the default group with td group my-project preset

@dwtompkins
Copy link
Author

I didn't spend as much time as I should have exploring the CLI.
The td <id> e -g my-group was one I was looking for but couldn't find before.

I like the option for initializing a td-list per project/repo. That's also some helpful info that wasn't especially clear to me from reading the docs.

I've currently been using the global list in interactive mode exclusively, and I manually prefix each of my task with initials or an abbreviation of the project name.

I like that the --edit flag gives you the opportunity to edit each task in-depth (in my favorite editor). However, I think most of the time my todo's only require a single line. It can be more cumbersome for me to spend time editing each task. I like the "at-a-glance" td-list.

So the prefixes are super useful to me in the overview. I think td ag <group> would make things easier if there was a way to show the group as the prefix automatically. If you do a list groups it will only show the name of the group and the completed/uncompleted count (not the one-line task).

@dwtompkins
Copy link
Author

dwtompkins commented Jan 14, 2021

Global view with manual prefixing matching container group:
image

List of groups
image

So, after this discussion, I think the automated group prefixing and the ability to sort (alphabetically?) by group (or at least cluster each group together) in the global view is really what I'm thinking would be a fantastic improvement 💯

Could possibly be related to the desired behavior in #19 ?

@darrikonn
Copy link
Owner

automated group prefixing is a nice idea for the global view 👍

as well as being able to sort the list

#19 only relates to the interactive mode, and being able to filter by group. So kind of unrelated.

But your ideas are good, and I'd be happy to add that to td-cli 🎉

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

2 participants