vscode-postgres icon indicating copy to clipboard operation
vscode-postgres copied to clipboard

Option to split the editor vertically when showing the result tab

Open gbogarinb opened this issue 6 years ago • 9 comments

Right now it splits horizontally, it would be nice to have the option to split vertically by default. ej

gbogarinb avatar Jan 25 '19 17:01 gbogarinb

I just added this functionality for myself but it does not work that well in advanced scenarios (when you already have two or three editors opened) because of the way the current API works, once the they implement the gridPosition property I think I could make this work for all scenarios, so no pull request for now. In any case if anyone wants this just change the setting 'workbench.editor.openSideBySideDirection' to 'down', it does change the behaviour globally though.

gbogarinb avatar Jan 26 '19 20:01 gbogarinb

Would opening the results in a Panel (I.E. where the problems/terminal/output areas are) accomplish your desired goal more easily? I came here looking to see if anyone else had requested or started work on an option to open the results there, as it's by far my preferred output location.

DiskImage avatar Jun 19 '19 16:06 DiskImage

My preferred option too - but WebViewPanels haven't been able to be put down there, and would have to rely on ugly console based tables.

Borvik avatar Jun 19 '19 16:06 Borvik

Uff. Exactly what I do every single time with my result window. Is there no other way to has this window settings as default?

debegr92 avatar Jan 24 '21 18:01 debegr92

Does anybody have a workaround for this? Is it a concern of the extension or vscode? Maybe I have different use cases, but without being able to drop the result vertically, why wouldn't I continue using pgadmin?

edit - I played around with it a bit and the potential seems to be there. If I have a vertical panel below and run a new query, the query will open with the old behavior in a new tab in the same panel; however, if I close that result window and run the same query again, it loads below in the panel below. If I run the query again, it loads a new tab in the top panel. So it's alternating panels.

bparkin1283 avatar Jan 16 '22 02:01 bparkin1283

a new major update is in the works where I will be evaluating a number of the requests for inclusion. need to get the fundamentals down first.

I wouldn't expect the new version for a while - but it is actively being worked on.

Borvik avatar Jan 16 '22 02:01 Borvik

That sounds good, thanks. I'll keep an eye out.

bparkin1283 avatar Jan 16 '22 16:01 bparkin1283

For my purposes, this is 90% mitigated with the nightly vscode 1.64 build via microsoft/vscode#138914.

At least now when you move the original output window/panel down below it persists through iterative F5's

It would still be nice to have a setting to default to the vertical panel on the initial F5 so that outputs go down below rather than to the side.

bparkin1283 avatar Jan 21 '22 16:01 bparkin1283

Big fan of having an option for this! Vertical split is a much better use of real estate for tables of data in most cases.

lowe0292 avatar Jul 19 '22 01:07 lowe0292