Skip to content
New issue

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

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

Already on GitHub? # to your account

Feature: Add syntax highlighting for table name completion #4723

Open
prrao87 opened this issue Jan 16, 2025 · 0 comments
Open

Feature: Add syntax highlighting for table name completion #4723

prrao87 opened this issue Jan 16, 2025 · 0 comments
Assignees
Labels
cli feature New features or missing components of existing features

Comments

@prrao87
Copy link
Member

prrao87 commented Jan 16, 2025

API

Other

Description

Say we have this list of tables:

┌────────┬─────────────────────────┬───────────┬───────────────┬─────────┐
│ id     │ name                    │ type      │ database name │ comment │
│ UINT64 │ STRING                  │ STRING    │ STRING        │ STRING  │
├────────┼─────────────────────────┼───────────┼───────────────┼─────────┤
│ 1      │ Person                  │ NODE      │ local(kuzu)   │         │
│ 4      │ MENTIONS_Chunk_Location │ REL       │ local(kuzu)   │         │
│ 2      │ Location                │ NODE      │ local(kuzu)   │         │
│ 0      │ Chunk                   │ NODE      │ local(kuzu)   │         │
│ 9      │ HAS_HEADQUARTERS_IN     │ REL       │ local(kuzu)   │         │
│ 6      │ MENTIONS_Chunk_Person   │ REL       │ local(kuzu)   │         │
│ 7      │ MENTIONS                │ REL_GROUP │ local(kuzu)   │         │
│ 3      │ Company                 │ NODE      │ local(kuzu)   │         │
│ 8      │ IS_CEO_OF               │ REL       │ local(kuzu)   │         │
│ 5      │ MENTIONS_Chunk_Company  │ REL       │ local(kuzu)   │         │
│ 10     │ IS_COO_OF               │ REL       │ local(kuzu)   │         │
└────────┴─────────────────────────┴───────────┴───────────────┴─────────┘

It would be a great convenience feature to have the CLI auto-complete table naming. For e.g., if I know there's a Location node table, I'd want the CLI to help me autocomplete the it as I type the following query:

kuzu> MATCH (n:Lo

I'd type Lo and press tab and the full table name Location would appear based on the most similar name in the list of available tables in my database. DuckDB provides such a feature in its CLI.

@prrao87 prrao87 added cli feature New features or missing components of existing features labels Jan 16, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
cli feature New features or missing components of existing features
Projects
None yet
Development

No branches or pull requests

2 participants