Skip to content

Conversation

Mytherin
Copy link
Collaborator

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 changed the base branch from master to feature November 18, 2022 14:34
@Alex-Monahan
Copy link
Contributor

This will be so helpful!!!

@Mytherin
Copy link
Collaborator Author

Continued in #5414

@Mytherin Mytherin closed this Nov 19, 2022
@Mytherin Mytherin deleted the linenoisehistory branch January 7, 2023 15:07
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.

3 participants