-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
todo plugin do not uses $TODO variable #1693
Comments
@romulusFR Great find! Would you be willing to submit a Pull Request to clean this up? We'll take a look if you do! |
Greetings All, I feel like there's some ambiguity in Bash-Its TODO support. bash_profile.template.bash
This is confusing to me and could represent any one of 3 values:
The default value todo.plugin.bash
Not sure what this script used to contain (I can see it has an edit history), but it has essentially been reduced to setting an (opinionated) alias. Moving the alias leaves the plugin with just the Having a look at all the supported environment variables suggests to me that there are not any other variables that could benefit from defaults: Making The Plugin UsefulHaving advocated for removing the plugin, I will now see if there's some direction that could make the plugin useful. Implied AliasThe fact that the plugin tries to create alias
(btw: I tested this idea locally and creating an alias named from a variable works as expected) This has me thinking we could re-purpose the plugin to do the following:
Essentially, this boils down to:
Side Note - Plugin NameOn a side note, the plugin would be better named as todo.txt-cli.aliases.bash
Where's the
|
I love the above analysis. I think we should still proceed with merging the currently associated PR, just for the minor cleanup of the existing established logic, then we should have a holistic evaluation of As far as that goes, I would expect the plugin to be configuring Edit: Also, I vote that the |
Yes, agree - the |
I'd like to point out that setting TODO="t" and enabling the todo plugin breaks modern-t theme, which integrates the python task list script which is called "t". The alias Users will trip on this when they have todo.sh installed, and the todo.sh plugin enabled, and then decide to try out modern-t theme. They will at first assume that the prompt is integrated with todo.sh (aliased to "t"!!) but after a while, they will notice the count is wrong and always will be. The fix is, disable the todo.sh plugin, and install "t", then the modern-t theme will work as the author intended. I will attempt a PR that adds a comment to the modern-t theme advising them to turn off "todo.sh plugin" and make sure "t" is installed, I think this would allow most folks transparency into the issue. Also, since I now understand how to do it, would a PR for a todo.sh integrated modern theme variant be interesting? |
This commit is intended to help new uses of the modern-t theme get it set up properly and avoid the "todo.plugin" breaking it Please see the following issues for details. Bash-it#1693 Bash-it#1374
This commit is intended to help new uses of the modern-t theme get it set up properly and avoid the "todo.plugin" breaking it Please see the following issues for details. #1693 #1374 Co-authored-by: Russell Adams <[email protected]>
The todo plugin
bash-it/plugins/available/todo.plugin.bash
Line 12 in 3f31891
todo.sh
whereas todo aliases do not and use the $TODO env variable https://github.com/Bash-it/bash-it/blob/7c09252ac86f430b9a6eaeebfc19b20a9f6fe3ce/aliases/available/todo.txt-cli.aliases.bash. The $TODO env variable is defined in https://github.com/Bash-it/bash-it/blob/master/template/bash_profile.template.bash#L35.My suggestion would be to use the $TODO env variable in plugin as well
The text was updated successfully, but these errors were encountered: