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

Consider add Toggle Support in Advanced Configuration to able to do toggle modules and features #1873

Closed
Dentrax opened this issue Nov 13, 2020 · 3 comments
Labels
✨ enhancement A new feature implementation.

Comments

@Dentrax
Copy link
Contributor

Dentrax commented Nov 13, 2020

Feature Request

Is your feature request related to a problem? Please describe.

Let's imagine we have a custom starship.toml configuration like this:

# ~/.config/starship.toml

[kubernetes]
format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false

ℹ: I will be used Kubernetes example in this issue.

So, notice that we always have to see that module till manually disabled from file by hand. Even we really do not need to see it, use it, etc, we really need a toggle function in Advanced Configuration.

on ⛵ dev-stage-local.idc (dev) ~/.config took 3m6s

It is really annoying that every time we have to see this. Just instead of: ~/.config Isn't it? Thus, ever time when I need to see more information about that specific module, I have to toggle disabled flag in configration file.

Describe the solution you'd like

What about Toggle Aliases?

[kubernetes]
format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
toggle_alias = 'k8s!'

Which means that, this module should always be started as disabled when terminal being started, as you think.

If we want to start dealing with some Kubernetes stuffs any time, any where, we can simply call k8s! alias, in order to toggle (disabled=!disabled) that module's active status for current terminal session only.

@Dentrax Dentrax added the ✨ enhancement A new feature implementation. label Nov 13, 2020
@andytom
Copy link
Member

andytom commented Nov 13, 2020

I think this might be the same issue as #894? @Dentrax would that solve this issue for you?

@Dentrax
Copy link
Contributor Author

Dentrax commented Nov 13, 2020

I think this might be the same issue as #894? @Dentrax would that solve this issue for you?

Hmmm, exactly. 👍 Is this feature in your backlog?

@andytom
Copy link
Member

andytom commented Nov 14, 2020

I think this might be the same issue as #894? @Dentrax would that solve this issue for you?

Hmmm, exactly. +1 Is this feature in your backlog?

Yep this is in the backlog but I'm not aware of anyone who is working on it at the moment. To avoid having this duplicate issues I'm going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement A new feature implementation.
Projects
None yet
Development

No branches or pull requests

2 participants