Skip to content

Dynamic Syntax Highlighting in Shell#1001

Merged
Mytherin merged 9 commits intomasterfrom
shellhighlight
Oct 14, 2020
Merged

Dynamic Syntax Highlighting in Shell#1001
Mytherin merged 9 commits intomasterfrom
shellhighlight

Conversation

@Mytherin
Copy link
Collaborator

This PR adds syntax highlighting to the SQLite shell for Linux and MacOS. The system runs the lexer on the current line of user input, and highlights keywords as bold green, and numeric/string constants as yellow. The text is highlighted as you are typing. For now this is disabled on Windows.

The PR also sets the following options as default in the shell:

.headers on
.nullvalue NULL
.prompt "D "
.mode box

See the image below for a preview.

For now the colors are fixed, but should probably be customizable.

Would appreciate it if any shell users would test this PR and submit feedback/report issues :)

IMAGE 2020-10-13 12:38:25

@Mytherin Mytherin merged commit f1f004c into master Oct 14, 2020
@Mytherin Mytherin deleted the shellhighlight branch October 19, 2020 11:50
hawkfish added a commit to hawkfish/duckdb that referenced this pull request Jan 10, 2024
Add explicit sorting and the partition key to the window test.
Mytherin added a commit that referenced this pull request Jan 11, 2024
Internal #1001: SEM Test Determinism
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