Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Tab Completion #127

Open
kpinnipa opened this issue Sep 22, 2020 · 3 comments
Open

Tab Completion #127

kpinnipa opened this issue Sep 22, 2020 · 3 comments
Labels
enhancement New feature or request High Priority

Comments

@kpinnipa
Copy link
Collaborator

Problem description
Currently, the methods to insert a snippet include the insert button, dragging and dropping, and copy-pasting. However, this requires the user to search for a snippet in the snippet explorer every time they intend to use it which can take time away from their work.

Solution
Create functionality that recognizes user patterns and suggests relevant snippets that match syntax that can be easily inserted by simply pressing the tab button. This will allow user to save time in searching for the snippet and more easily incorporate them into their workflow.

Things to think about

  • Potentially look at Kite for inspiration
  • Show snippet text when associated words are typed in a grayed out font (like gmail tab-complete)
  • Alternatively, when tab key is pressed after writing some code (example "import..."), a dropdown will appear showing the names/descriptions of related and relevant snippets. User can click on any of the names to complete their code with the snippet code.
    1. Design will be tricky and will most likely go through multiple iterations
    2. Have to make sure that this does not take away the tab key's functionality
    3. Have to make sure that the user is able to get rid of the pop up/grayed out text so it doesn't get in the way of their workflow.
@kpinnipa kpinnipa added the enhancement New feature or request label Sep 22, 2020
@kpinnipa
Copy link
Collaborator Author

@kpinnipa
Copy link
Collaborator Author

kpinnipa commented Jun 9, 2021

Merge with jupyterlab-lsp; have to wait until lsp autocompletion is integrated with core (4.0). See issue #604 for partially done pull request.

@kpinnipa kpinnipa added High Priority UI/UX ui/ux fix/update and removed UI/UX ui/ux fix/update labels Jun 9, 2021
@jahn96
Copy link
Collaborator

jahn96 commented Jun 15, 2021

As soon as JupyterLab completion manager is refactored for different types of sources such as Kite, Kernel, or code snippet to be added easily, we are planning to start working on this! Refer to autocomplete in JupyterLab-lsp extension for usability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request High Priority
Projects
None yet
Development

No branches or pull requests

2 participants