I'm sick and tired having an extra command before all the windows I make.
if ($window(@mywindow)) { window -c @mywindow } window -e @mywindow
I use windows quite often as a core data structure. So I need to make sure the window is blank. And if there's by some oddity already a window there, that say has a sidewindow or a entry space and I don't want it. I need to make sure the window I create has all the same stuff I tell it to. So I need to close any window that might exist.
I suggest having a flag that reinits any window.
It makes for adding a textbox at the bottom easy too. Or remove a sidebar.
So rather than: if ($window(@mywindow)) { window -c @mywindow } window -e @mywindow