Closed uninhm closed 3 years ago
Using for loop isn't beauty, if you know how to do it better please let me know
Edit: I found the function for that, will change it tomorrow
Been out the past few days but I'll be checking your PRs and issues this week. Thanks for contributing!
Should I create scratchpad.nim
file, with a Scratchpad
type and some procs like popFirstClient
, popLastClient
and addClient
?
That sounds like a good idea, just wrapping some procs from deques
I'm not sure about the desired behavior either (never used a scratchpad) but it does seem odd to me that a non-floating window becomes floating.
@dakyskye Could you chime in with your experience here, and/or opinions on the matter?
As I see you save the geometry of a window before throwing it to the scratchpad but that causes some issues later on (for example, if you scratchpaded the only window in a tag, then opened a master and a couple of slave windows and retained the scratchpaded window, it'd spawn on top of all of them).
I think you should only save the state of a window, not the geometry.
Ok, so... 1) If window is tiled, recover resized in the center 2) If window is floating, recover as it was before pushing to scratchpad
@uninhm Still plan on getting this PR merged? I can assist with any issues you may have
I think it's ready
I'm not sure if that's exactly how "scratchpad" should work, but it's an advance.