Skip to content

Combining our lexer with replxx for better multiple line editing#34114

Merged
alexey-milovidov merged 6 commits intoClickHouse:masterfrom
amosbird:replxxwithlexer
Feb 1, 2022
Merged

Combining our lexer with replxx for better multiple line editing#34114
alexey-milovidov merged 6 commits intoClickHouse:masterfrom
amosbird:replxxwithlexer

Conversation

@amosbird
Copy link
Copy Markdown
Collaborator

@amosbird amosbird commented Jan 28, 2022

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Improving the experience of multiple line editing for clickhouse-client. This is a follow-up of #31123

This PR also contains replxx bump ClickHouse/replxx#19 which fixes #32399

NOTE: This PR extends our lexer in that \G has a special type: TokenType::VerticalDelimiter

NOTE: Make sure --highlight is on (default) to take full advantage.

NOTE: This PR also ignores case for history search and completion. (The feature was reverted when we switch to upstream replxx, now it's available officially)

Information about CI checks: https://clickhouse.tech/docs/en/development/continuous-integration/

@robot-clickhouse robot-clickhouse added the pr-improvement Pull request with some product improvements label Jan 28, 2022
@alexey-milovidov alexey-milovidov self-assigned this Jan 28, 2022
@alexey-milovidov
Copy link
Copy Markdown
Member

Some tests need to be updated.

@amosbird
Copy link
Copy Markdown
Collaborator Author

The test failures are significant. It's because our original behavior of case-insensitive completion gets accidentally changed upstream. I've submitted the PR to change it back ClickHouse/replxx#20 .

@amosbird
Copy link
Copy Markdown
Collaborator Author

amosbird commented Feb 1, 2022

CI looks good. No related failures.

@alexey-milovidov alexey-milovidov merged commit cafb19d into ClickHouse:master Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Client: long queries are not removed when navigating through history

3 participants