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

Can we have multiple instance of the same module #881

Closed
Tdnshah opened this issue Apr 24, 2020 · 8 comments
Closed

Can we have multiple instance of the same module #881

Tdnshah opened this issue Apr 24, 2020 · 8 comments

Comments

@Tdnshah
Copy link

Tdnshah commented Apr 24, 2020

I what to know?

I want to know in WTF dashboard can we have multiple instance of the the same module like i want to have 3 different todo lists one for my personal use, one for my office use, and one for tracking the contributions i do to opensource project?

Similarly for the trello board for each board i want to have a different instance in my dashboard can i have something like this?

@Seanstoppable
Copy link
Collaborator

You can indeed! I can't believe we failed to make this clear in the documentation, but you can see an example here: https://wtfutil.com/modules/cmdrunner/brew_outdated/
Essentially, you can give any config a name as long as you specify the module type and have multiple running at the same time.

@senorprogrammer
Copy link
Collaborator

senorprogrammer commented Apr 25, 2020

That's a good point. I don't think the process for running multiple instances of a widget is documented anywhere. I've created this issue to track that: wtfutil/wtfdocs#89

@Tdnshah
Copy link
Author

Tdnshah commented Apr 25, 2020

Thank you for the reply @Seanstoppable I tried the same for the todo module but it didnt worked can you please guide where am i going wrong . @senorprogrammer thanks for creating an issue in docs once i understand this ill like to contribute back so ill resolve the issue once i get the answer for the same.
Thank you

@senorprogrammer
Copy link
Collaborator

senorprogrammer commented Apr 25, 2020

Here's a minimal configure for multiple todo instances:

    todo:
      enabled: true
      filename: "todo1.yml"
      focusChar: 1
      position:
        top: 0
        left: 1
        height: 2
        width: 2
      type: todo
    todo2:
      enabled: true
      filename: "todo2.yml"
      focusChar: 2
      position:
        top: 2
        left: 3
        height: 2
        width: 2
      type: todo 

@Tdnshah
Copy link
Author

Tdnshah commented Apr 25, 2020

Thank you @senorprogrammer for the help also would like to know that can we have a terminal as a widget ? Also ill add this info to the document issue u have created and will contribute

@senorprogrammer
Copy link
Collaborator

How do you mean a terminal as a widget? Do you mean having a functioning terminal prompt inside a widget?

@Tdnshah
Copy link
Author

Tdnshah commented Apr 25, 2020

How do you mean a terminal as a widget? Do you mean having a functioning terminal prompt inside a widget?

yeah

@senorprogrammer
Copy link
Collaborator

There's not a way to do that currently, but it is something I've thought about and would like to see.

Going to close this as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants