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

[Feature Request] Add an option to display at most one scratchpad at a time #21

Closed
cunbidun opened this issue Nov 9, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@cunbidun
Copy link

cunbidun commented Nov 9, 2023

Hey! Thanks for the awesome plugins.

I've got a small feature request. It'd be really helpful if we could add an option to automatically hide visible scratchpads when toggling or creating a different one.

@fdev31
Copy link
Collaborator

fdev31 commented Nov 9, 2023

Hi!
If you add:

       "unfocus": "hide"

On each of your scratchpads, do you achieve that or it's not really perfect ?

@cunbidun
Copy link
Author

cunbidun commented Nov 9, 2023

Hey, thanks for the quick response.

The "unfocus": "hide" feature works perfectly as intended. However, sometimes, I don’t want the scratchpad to disappear when losing focus. For example, when I need to copy and paste commands from a browser to the terminal scratchpad.

@fdev31
Copy link
Collaborator

fdev31 commented Nov 10, 2023

It would be easy to have it as a global option for every scratchpad: "exclusive_focus": true, for instance.

Another way could which seems more flexible would be to have a per-scratch attribute telling a list of scratches which should be hidden if this one is shown: "excludes": ["scratchpadX", "otherPad"]

I may prefer the later.
Do you have other ideas or comments about this ? Or suggestions about the naming...

@cunbidun
Copy link
Author

Both are good options. I’d prefer the first option. The second sure gives more flexibility, but also adds more implementation complexity

@fdev31
Copy link
Collaborator

fdev31 commented Nov 11, 2023

@fdev31
Copy link
Collaborator

fdev31 commented Nov 12, 2023

To me it's allowing to do what to expect, I added a shortcut syntax to make it more convenient to configure.
Re-open if I misunderstood or if you get troubles using it.

@fdev31 fdev31 closed this as completed Nov 12, 2023
@fdev31 fdev31 added the enhancement New feature or request label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants