Open buhl opened 3 years ago
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?
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.
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 ;)
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 :smile: 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.
I just added my latest changes and removed the keybindings that where hardcoded to make it easier to load and configure.
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.
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 :)