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

Added inline mode (cycles through suggestions without showing suggestion list) #959

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eweitnauer
Copy link

Description of the Change

I find the suggestion list in autocomplete+ distracting and wanted a mode that cycles through the suggestions without showing the list. I added a new setting called "Inline Mode" to the code that a user can activate to do just that: cycle through all suggestions by repeatedly pressing the autocomplete activation key.

inline-autocomplete

Alternate Designs

This actually is an alternative design to the existing suggestion menu. It provides basically the same functionality as the existing plugin Atom Inline Autocomplete, but works within the autocomplete+ framework.

Benefits

  1. Offers an additional, visually less distracting way of triggering auto-completion.
  2. May help persons coming from Textmate or Sublime Text, who are used to this type of auto-completion.

Possible Drawbacks

Since it is an optional mode, I don't see any drawbacks.

Applicable Issues


I made this pull request to get feedback on the code. I expect there are more elegant ways to implement it, and I am not sure if it is compatible with all use-cases that autocomplete+ supports. After a code review, I plan to make improvements as requested and add test cases to the specs.

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.

1 participant