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

Different sets based on focused panel #17

Open
ProLoser opened this issue Mar 6, 2018 · 1 comment
Open

Different sets based on focused panel #17

ProLoser opened this issue Mar 6, 2018 · 1 comment

Comments

@ProLoser
Copy link

ProLoser commented Mar 6, 2018

It would be nice if I could create different touchbar sets based on what panel is active so I can have contextually relevant buttons. Ideally, it would be great if we could make it easy for package developers to define their own sets.

For example:

  • When a git panel is focused, all buttons become git actions
  • Debug panel shows code stepping controls

Ideally we could pin a sub-panel so that it persists even if the relevant panel loses focus.

Finally it'd be nice if I could change the color / buttons based on other context.

For Example:

  • Changing the color of a button that toggles the diagnostics/linter panel based on if there are warnings/errors as well as showing the number of matches found
  • Show path to currently open file
  • Showing number of uncommitted changes for the git button

Essentially anything that would allow me to move away from the status bar and instead use the touch panel.

@inakineitor
Copy link
Owner

I don't know how the focused panel thing could be implemented, but I am open to any suggestions.

I do think I have an idea about how to implement the change of element properties based on context. I will be implementing it in the near future, but for some functionality that depends on external packages (like linters), the other packages will have to call an event from the touch-bar-utility package.

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

No branches or pull requests

2 participants