Closing Separate Results Window / maximizing pane automatically
I think the X on the Results Window when it is Undocked should close the Results Window instead of docking it - there is a dock button immediately below the X in the title bar if that is what is desired. Alternatively, perhaps it should also match the docked Results pane and have a close button to the right of the Dock button.
It would also be nice if there was a way to automatically Collapse the Editor (or maximize the results pane) when a query is executed.
BTW, thanks for LINQPad and your responsiveness. It is still one of the best products I have ever used.
Comments
Ctrl
+R
toggles results pane.Ctrl
+Shift
+R
toggles editor.Yes, I know. I don't want to have to hit them every time I edit and run.
It would be nice to have some kind of directive, kind of
#LINQPad hide_on_run+
, to hide code window when running. I have an Avalonia application for which I don't need to see the code at all.@i2van FYI, I previously suggested (5 years ago!) putting
System.Windows.Forms.SendKeys.SendWait("^+R");
at the start of code execution to hide the code window.Unfortunately it toggles results/editor.
Perhaps some utility functions could be added to
Linqpad.Util
to show, hide and get the status (shown, hidden, undocked) of the Editor & Results windows or panes.I've added the following methods to the Util class in 8.8.4:
This works well, except when you are using
Console.ReadLine();
callingUtil.HideEditor();
even before theReadLine
causes the focus to be wrong. Shouldn't the focus be put on the input bar at the time of theReadLine
call?This should be fixed in 8.8.5.
Working for me.
Thanks!