Skip to content

Conversation

Mytherin
Copy link
Collaborator

Reopening #5406 but without all the git noise

This PR modifies what gets added to the history of the shell - instead of adding individual lines, we now add entire SQL queries to the history. If those queries contain newlines, they are converted into spaces when moving up. This should allow for easier skipping back/forth when executing multi-line queries.

This is now the history behavior:

D SELECT
> 42;
-- (press up)
D SELECT 42;

All newlines are removed and converted to spaces.

@Mytherin Mytherin merged commit c20b424 into duckdb:feature Nov 20, 2022
@Mytherin Mytherin deleted the multilinehistory branch November 25, 2022 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant