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

module/todo: checked icon and color not worked #616

Closed
scbizu opened this issue Sep 6, 2019 · 11 comments
Closed

module/todo: checked icon and color not worked #616

scbizu opened this issue Sep 6, 2019 · 11 comments
Labels
🐛 bug "Houston, we've had a problem."

Comments

@scbizu
Copy link

scbizu commented Sep 6, 2019

Hi, there. You guys has made a really cool tool for me ! Thank you !

What's broken?

I run into an unexpected condition when I setup my todo module. I write this following todo config into my config.yml at first.

    todolist:
      type: todo
      checkedIcon: "x"
      colors:
        checked: gray
        highlight:
          fore: "black"
          back: "orange"
      enabled: true
      filename: "todo.yml"

But , when I use space to finish one of my todos , its color still stay in white, and not turn into gray as I expected . Then, I tried to restore my config to your sample config(change the checkedIcon: "x" to checkedIcon: "X"), but when I open my todo again, the icon is still 'x' not 'X' (I delete my todo.yml before I open todo again) , and the color is still not work for me(stay in white). Do I miss something ?

edited todo module config

    todolist:
      type: todo
      checkedIcon: "X"
      colors:
        checked: gray
        highlight:
          fore: "black"
          back: "orange"
      enabled: true
      filename: "todo.yml"
      position:
        top: 0
        left: 3
        height: 2
        width: 5
      refreshInterval: 60
      title: "📝Todos"

Screenshoot

image

@senorprogrammer
Copy link
Collaborator

Yep, definitely a bug. Probably an issue with recently-made internal config changes. Should be fixed in the next release.

@senorprogrammer senorprogrammer added the 🐛 bug "Houston, we've had a problem." label Sep 6, 2019
@senorprogrammer
Copy link
Collaborator

Btw, thank you for reporting this.

@scbizu
Copy link
Author

scbizu commented Sep 7, 2019

OK , leave me a message if you guys need me 🙈

@Seanstoppable
Copy link
Collaborator

I am not actually sure if it was every configurable on the module level. Looks like currently it is a global config like:

wtf:
  sigils:
    checkbox:
      checked: 'X'

Unsure if we want to configure this at the module level as well, but if so, I can make all the settings in NewCommonSettingsFromModule check the module config before it checks global configs.

A bunch of color related stuff doesn't seem to be overridable at the module level, and I've fixed this in #620

@senorprogrammer
Copy link
Collaborator

I have a PR on the way that should address this issue.

@Seanstoppable
Copy link
Collaborator

Color should be improved on master now.

@senorprogrammer
Copy link
Collaborator

Works nicely.

@scbizu
Copy link
Author

scbizu commented Sep 11, 2019

@Seanstoppable LGTM . But the checked icon is still not work .

@Seanstoppable
Copy link
Collaborator

Yeah, my PR focused on coloring, to make it consistent across modules. Open question on if the X should be configurable per module that uses it (which may just be the TODO module), or if it makes sense for it to be controlled globally (which is the level at which it is controlled today). It is not clear to me if this is a logic problem, or a documentation problem.

Seanstoppable added a commit to Seanstoppable/wtf that referenced this issue Oct 2, 2019
Support checkedIcon
Also support uncheckedIcon
Addresses the end of wtfutil#616
@senorprogrammer
Copy link
Collaborator

Fixed by #674

@scbizu
Copy link
Author

scbizu commented Oct 5, 2019

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug "Houston, we've had a problem."
Development

No branches or pull requests

3 participants