Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: no continuation gap at all #730

Open
AndyFWealthfront opened this issue Apr 10, 2019 · 1 comment
Open

Feature request: no continuation gap at all #730

AndyFWealthfront opened this issue Apr 10, 2019 · 1 comment
Labels

Comments

@AndyFWealthfront
Copy link

@AndyFWealthfront AndyFWealthfront commented Apr 10, 2019

Multi-line queries have a prompt_continuation (or not currently, due to issue 681, but that's beside the point). But even with prompt_continuation set to an empty string, it starts the next line indented, even when it's just due to wrapping at the edge of the terminal window:

db> select "example text that wraps onto the nex
    t line";

I often copy/paste my query from my terminal, for example to share with others or just document what I did in case I need to reproduce it later. But the formatting above leaves a big space in the query, so that when I paste it elsewhere it looks like select "example text that wraps onto the nex t line";.

It would be nice if the configuration related to multi-line and prompt continuation had some way to get this format:

db> select "example text that wraps onto the nex
t line";

This is obviously pretty minor. Just thought I'd put this out there since it does come up for me, and maybe someone else will agree.

@meeuw
Copy link
Contributor

@meeuw meeuw commented Apr 10, 2019

I agree this would be useful!

As a workaround (what I usually do) you can add \e to the query and press enter or press ctrl-x ctrl-e which opens an editor from where you can save the query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.