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

I ❤️ scratchpad! #317

Open
buhl opened this issue Feb 21, 2021 · 6 comments
Open

I ❤️ scratchpad! #317

buhl opened this issue Feb 21, 2021 · 6 comments

Comments

@buhl
Copy link
Collaborator

buhl commented Feb 21, 2021

I have been playing around with scratchpads this weekend
https://gist.github.com/buhl/b9ee6b001cbf9e1389fd0ef7495aff6f
It's usable, but not done.
I would like to hear if there are some fellow-scratchpad-lovers out there who have some idea/thoughts on the module so far?

Thanks in advance :)

@wilhelmy
Copy link
Collaborator

wilhelmy commented Mar 3, 2021

Just wondering, does it work the same with and without mod_sp loaded? Which functionalities of mod_sp does it implement, which ones does it replace? Does it bind to the same keys as mod_sp?

@buhl
Copy link
Collaborator Author

buhl commented Mar 3, 2021

right now I am only using mod_sp.is_scratchpad from the mod_sp module. thats easily done in lua as well.
I have a local change which is not in the gist that will autocreate a sp if none is present.
other than that it is backwards compatible with mod_sp with the ability to have more scrachtpads and select them from a menu.

@wilhelmy
Copy link
Collaborator

wilhelmy commented Mar 3, 2021

how does it work across multiple screens? do windows remember which scratchpad they came from in multi-monitor setups?

Guess I'll have to read the source ;)

@buhl
Copy link
Collaborator Author

buhl commented Mar 3, 2021

I havn't tested it in multiscreen setup yet. But my implementation can be toggled with mod_sp as it creates WGroupWS the same way the mod_sp does.
however, if you have more than one scratchpad and not all a visible and you try to toggle with mod_sp it will hide the shown and show the hidden 😄
So once you start creating more scratchpads you have have to use my modules toggler.
It is still very much beta. But I have been using it since I created it without issues.
There are also some nice-to-haves I would like to look into - I have put them in the comments of the gist code.

@buhl
Copy link
Collaborator Author

buhl commented Mar 3, 2021

I just added my latest changes and removed the keybindings that where hardcoded to make it easier to load and configure.

@deryni
Copy link
Contributor

deryni commented Jan 24, 2022

I haven't fully parsed what this script does but my old scripts https://github.com/raboof/notion/blob/master/contrib/scripts/named_scratchpad.lua and https://github.com/raboof/notion/blob/master/contrib/scripts/legacy/cwin_sp.lua (this one is unattributed somehow) sound like they do some of what you are going for here. I didn't do anything with menus or queries though because mine were intended to be bound to specific keystrokes as they were intended to be context-sensitive.

But a menu/query might be a nice addition depending on usage.

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

No branches or pull requests

3 participants