vizhub-core / vizhub-feedback

VizHub feedback issue tracker
32 stars 3 forks source link

Autocomplete and/or offline editing #731

Closed laurajchang closed 7 months ago

laurajchang commented 3 years ago

I've been enjoying using VizHub, but quickly became frustrated that there was no autocomplete for variable names, parentheses, etc. If this could be incorporated into the text editor and/or there could be compatibility with other offline text editors of the user's choice, I think the experience would be greatly enhanced.

curran commented 3 years ago

There is CTRL+Space autocomplete at the moment.

image

One thing we can do for this is make sure that the keyboard combination is documented.

The offline idea is interesting. Like local storage in the browser? Or the ability to import from exported and modified files? Related to #268 .

stushurik commented 3 years ago

@curran, maybe vizhub might have some level of "smart" autocomplete? As far as I understood, it suggests something based on plain text (e.g., if there are some word is present). It would be great if vizhub might make suggestions based on javascript context, e.g., suggest imports, object properties, closing brackets for function and if statements e.t.c

curran commented 3 years ago

I agree those would be excellent improvements to make! I believe the autocomplete just looks at existing words in the file you are editing. One extension of that would be to look for words across all files in the viz (tracked as #306 ).

curran commented 7 months ago

This is done in https://github.com/vizhub-core/vzcode