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

Autocompletion Revamp #57

Open
4 of 5 tasks
andrewguilas opened this issue Sep 16, 2020 · 1 comment
Open
4 of 5 tasks

Autocompletion Revamp #57

andrewguilas opened this issue Sep 16, 2020 · 1 comment
Assignees
Labels
Duration: 1 Hour Should only take an hour at most. Priority: Medium Can be worked on when free. Status: In Progress If a feature is currently being worked on. Type: Bug Something isn't working. Type: Enhancement A feature will be added, changed, or removed. Type: Optimization If something should be improved to work better.
Milestone

Comments

@andrewguilas
Copy link
Owner

andrewguilas commented Sep 16, 2020

The keyword “down” is used simultaneously and can be replaced with the keyword “up.”

  • If the down key is pressed, the selection will go down to the field below it. If not applicable, then it would go to the next field in the next frame. If not applicable, it would restart by going in the opposite direction until not possible
  • If a frame was collapsed, then the closest field of another frame would be selected. If there is no closest field, then the top closest field would take priority.
  • Whenever the autocompletion fields are updated, the selection would stay the same if it is in the updated version, it not, it will restart at the top.
  • If a user holds the down key, then the selection would keep on going down until the key is released. The speed of the selection changing would exponentially change.
  • If the selection is out of the auto completion's context size, then the auto-completion would scroll itself

An easy approach to manage the logic would be to create a table of all the fields in the handler module every time the autocompletion was updated. If a frame was collapsed or expanded, then the proper fields would be removed or added from or to the table.

@andrewguilas andrewguilas added Duration: 15 Minutes Should only take 15 minutes at most. Priority: High It needs to be done if there are no {Priority: Critical} items. Status: In Progress If a feature is currently being worked on. Type: Bug Something isn't working. labels Sep 16, 2020
@andrewguilas andrewguilas added this to the 0.4.0 milestone Sep 16, 2020
@andrewguilas andrewguilas self-assigned this Sep 16, 2020
@andrewguilas andrewguilas changed the title If the next or previous field cannot be selected, restart at the start or end of all the fields Autocompletion Revamp Sep 16, 2020
@andrewguilas andrewguilas added Duration: 1 Hour Should only take an hour at most. Type: Enhancement A feature will be added, changed, or removed. Type: Optimization If something should be improved to work better. Priority: Medium Can be worked on when free. and removed Duration: 15 Minutes Should only take 15 minutes at most. Priority: High It needs to be done if there are no {Priority: Critical} items. labels Sep 16, 2020
@andrewguilas
Copy link
Owner Author

Fix issue when collapsing a fold, it resets the selection instead of going to the closest one

Do this by getting the closest possible selection before updating the Helper.Data.Fields

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duration: 1 Hour Should only take an hour at most. Priority: Medium Can be worked on when free. Status: In Progress If a feature is currently being worked on. Type: Bug Something isn't working. Type: Enhancement A feature will be added, changed, or removed. Type: Optimization If something should be improved to work better.
Projects
None yet
Development

No branches or pull requests

1 participant