Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Updated kuksa-client autocompletion #653

Conversation

argerus
Copy link
Contributor

@argerus argerus commented Sep 12, 2023

An update to the way autocompletion works in kuksa-client. Builds on top of the newly added support for kuksa.val.v1 by @rafaeling.

  • Instead of listing the complete path for all completions, list only the currently completable path components.
  • Only use columnar completion style.
  • Complete branches with a trailing '.' and leafs without.

@argerus argerus force-pushed the feature/kuksa_client_autocompletion branch 3 times, most recently from 0efe894 to 37d9e4e Compare September 13, 2023 06:55
Copy link
Contributor

@lukasmittag lukasmittag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, what I did is test it manually e.g. getValue Ve<TAB> and getValue Vehicle.<TAB> and works a s expected. I had just two minor comments. Also tried running against dtabroker v0.30.0 and behavior is as expected too. If I do

Test Client> getValue Vehicle.Trw<TAB>
Hint:
  Path  Path to be read

it shows the hint but I think thats okay and could be understood.

kuksa-client/kuksa_client/__main__.py Outdated Show resolved Hide resolved
kuksa-client/kuksa_client/__main__.py Show resolved Hide resolved
- Instead of listing the complete path for all path completions,
  only list the currently completable path components.
- Only use columnar completion style.
- Complete branches with a trailing '.' and leafs without.

Co-authored-by: Lukas Mittag <[email protected]>
@argerus argerus force-pushed the feature/kuksa_client_autocompletion branch from 045aff9 to a811acd Compare September 13, 2023 07:51
@rafaeling
Copy link
Contributor

Looks good to me, I think #650 can be closed.

Copy link
Contributor

@SebastianSchildt SebastianSchildt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@SebastianSchildt SebastianSchildt merged commit bb81698 into eclipse:master Sep 13, 2023
@erikbosch erikbosch deleted the feature/kuksa_client_autocompletion branch October 31, 2024 13:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants