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 renameproj Command to Rename Project Tags #449

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

Add a renameproj Command to Rename Project Tags #449

AgumasD opened this issue Dec 27, 2024 · 1 comment

Comments

@AgumasD
Copy link
Contributor

AgumasD commented Dec 27, 2024

Description:
Currently, renaming a project tag (e.g., +project) in todo.txt-cli is not straightforward. Users need to manually edit the todo.txt file or use repetitive commands to update each instance of a project name. This can be time-consuming and error-prone, especially for users managing multiple tasks under a single project.

A dedicated renameproj command would allow users to rename project tags easily and consistently across all tasks.

Proposed Solution:
Add a renameproj action to the CLI.
The command should work as follows:
todo.sh renameproj +oldproject +newproject
Automatically replace all instances of +oldproject with +newproject in the todo.txt file.
Provide a summary of changes made, e.g., "Renamed +oldproject to +newproject in X tasks."
Benefits:
Streamlines the process of updating project tags.
Reduces manual edits and potential inconsistencies.
Enhances task management efficiency, especially for users managing large projects.

@inkarkat
Copy link
Member

Should have a renamecon for consistency, too. And I would prefer to have a generic global substitution command (a la my gsubst add-on-action), and then implement rename{con,proj} in terms of it.

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