Autocomplete Based on Variable Name
levi.miller@acclimatepartners.com
It would be very handy if when typing (c:_), the semicolon would indicate to autocomplete that it needs to provide options immediately, based on the "c" variable or even "cat" if I were more explicit and suggest the "Category" label. This is opposed to typing out part of my label a second time.
Then I could simply type "c:" inside brackets, hit TAB, and get the following: (c:Category).
Gregory King
Hi, this should be happening for Labels and Relationship types (see anigif), where hitting the
:
immediately triggers completions. Do you not see this or are you referring to somewhere else in completions?levi.miller@acclimatepartners.com
Gregory King Hello, thank you for your reply and example! My suggestion is specifically for making the suggestions inferred by the given variable.
Looking at your gif, I am suggesting that the "p" variable already results in a single recommendation of "Product" as this result is inferred without typing the label.
To extend on this, you could eliminate three key presses by offering inference while the variable is being typed without requiring any colon!
Looking again at your gif:
- "(p)" would recommended ":Product" be append with colon
- eliminates holding shift and pressing colon key
- eliminates pressing "p" key a second time for "Product" to return as the top suggestion
- still allows for longer variable names like "prod" (which actually help the inference with additional context, should there be multiple labels starting with "P")