edgedb-ui icon indicating copy to clipboard operation
edgedb-ui copied to clipboard

"Copy" for query results in Editor UI should have toggle for literals vs display values

Open jollygreenlaser opened this issue 1 year ago • 0 comments

Showing results UI vs copy output.

Screenshot 2024-02-16 at 12 18 50 PM Screenshot 2024-02-16 at 12 19 00 PM

Screenshot 2024-02-16 at 12 20 10 PM Screenshot 2024-02-16 at 12 20 17 PM

There should be two modes for copy: Literal and Display.

Literal should be what I use to then paste right back into a query. It should include the type if not primitive. Ideally there would be a setting for using single vs double quotes but single should be the default to match the rest of edgedb's style. It should escape special characters.

'Hello\nthere' and <datetime>'2006-08-02T22:06:26.74+00:00' for the examples above.

Display should be exactly as it's shown in the results UI, but without type or quotes.

Hello
there

and 2006-08-02T22:06:26.74+00:00 for the examples above.

jollygreenlaser avatar Feb 16 '24 20:02 jollygreenlaser