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

Add a search Command for Simplified Task Filtering #448

Open
AgumasD opened this issue Dec 27, 2024 · 1 comment
Open

Add a search Command for Simplified Task Filtering #448

AgumasD opened this issue Dec 27, 2024 · 1 comment

Comments

@AgumasD
Copy link
Contributor

AgumasD commented Dec 27, 2024

Description:
The current functionality of todo.txt-cli relies on the list command for filtering tasks based on keywords or terms. However, the list command often requires users to construct complex queries, which can be unintuitive, especially for beginners.

A dedicated search command would simplify this process and improve the user experience. The search command should allow users to find tasks by specifying one or more keywords without needing to worry about complex syntax or regex patterns.

Proposed Solution:
Add a search action to the CLI.
The command should work as follows:
bash
Copy code
todo.sh search "keyword"
Display tasks containing the specified keyword(s) in a user-friendly format.
Benefits:
Simplifies task filtering for users.
Improves usability for both new and experienced users.
Reduces dependency on complex filtering techniques via the list command.

@inkarkat
Copy link
Member

The only benefit I see is that instead of todo.sh list 'foo\|bar' I can write todo.sh search foo bar. But now I have to remember that for requiring both terms I need to use todo.sh list foo bar again. In a bout of forgetfulness, I'd probably just do todo.sh list foo; todo.sh list bar than look up the syntax.

And there's also list{all,file,con,proj}, all of which would need search... variants now as well.

todo.sh is for users who like the command-line (for others, there are several other graphical todo apps out there). Those users likely have (or will soon acquire) the ability for simple, grep-like regexp searches.

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