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

Bundling autocomplete-plus in core #351

Closed
atom/atom
#6710

Description

@benogle

My goal is only to bundle autocomplete-plus when it gets a lot of little details right. It's pretty close.

For the blog post, I want it to be super user focused, with only a couple pointers to API related things. My goal is to make this a little splashy: "Here are the things showing how much better autocomplete is!". Here's what I want to showcase:

  • SymbolProvider showing good suggestion type inference for a couple common languages as the default
    • We can explain how the provider uses the language packages, and point to a docs to make them better
  • Working with css, snippets, html and atom APIs is really good
  • One or more community providers that work and look awesome
  • Pointer to the provider API, and a couple examples

We will bundle

  • autocomplete-plus
  • autocomplete-snippets
  • autocomplete-css
  • autocomplete-html
  • autocomplete-atom-api
  • autocomplete-emoji (if it exists!)

Must haves

This is roughly the order I planned to do them in.

Nice to haves

  • Unicode support
  • Emoji provider for use in markdown + text we can bundle

Help!

Help is welcome! If you would like to take any of the above tasks, let me know!

Big helps would be:

Activity

  1. basarat commented on Apr 2, 2015

    @basarat
  2. joefitzgerald commented on Apr 2, 2015

    @joefitzgerald
    Contributor

    @basarat that wiki page needs to be updated. @benogle made significant changes in #334 that introduced new properties.

  3. basarat commented on Apr 3, 2015

    @basarat

    After much headbanging, I realize type and leftLabel is not shipped yet :) Is it?

  4. joefitzgerald commented on Apr 3, 2015

    @joefitzgerald
    Contributor

    Not yet, but it's an apm publish minor away from being released: https://github.com/atom-community/autocomplete-plus/commits/master (it's merged to master).

  5. basarat commented on Apr 3, 2015

    @basarat

    @joefitzgerald cool. Ping me when done ❤️

  6. basarat commented on Apr 3, 2015

    @basarat
  7. joefitzgerald commented on Apr 3, 2015

    @joefitzgerald
    Contributor

    Update defaults
    backspaceTriggersAutocomplete -> false

    👎 because backspacing can be seen as a way to "un-refine" the suggestion list. In the current bundled autocomplete, backspacing un-refines the suggestion list but it's done in the built-in input - which isn't present anymore here.

    If backspacing isn't enabled by default, a single mistaken keystroke will then result in two more actions (backspace, then trigger autocomplete). If it is enabled, there is a frictionless interaction.

    Providers can choose to suppress autocomplete on backspace, and you could also choose to suppress a suggestion request if the entire line is whitespace as a result of the backspace.

  8. tinloaf commented on Apr 3, 2015

    @tinloaf
    Contributor

    Can you provide documentation on how to use the suggestion types and left labels? As soon as an API is defined and stable, I'm happy to adapt my python-plugin to it ;)
    Edit: Oh I think you did. Give me a day.

  9. basarat commented on Apr 3, 2015

    @basarat

    Give me a day.

    wait for it to be published before you start the work 👍

  10. joefitzgerald commented on Apr 3, 2015

    @joefitzgerald
    Contributor

    Figure out how best get this into core and move people using autocomplete-plus to the new bundled autocomplete

    As far as I can tell there are two distinct paths (replace autocomplete-plus with autocomplete-snippets or autocomplete-paths, as necessary):

    1. Transfer autocomplete-plus to the https://github.com/atom organization
    2. Create a PR from autocomplete-plus back to https://github.com/atom/autocomplete
  11. thedaniel commented on Apr 3, 2015

    @thedaniel

    get [me to do the] fun little database hack that fixes the registration

    We store numeric repo IDs now so it will probably Just Work. Don't quote me on that though, it's been a minute since I looked at that code ;)

  12. tinloaf commented on Apr 3, 2015

    @tinloaf
    Contributor

    wait for it to be published before you start the work 👍

    Nah. Let's get this done. It's kinda hard to map what Jedi is giving me to the predefined classes though.

  13. 46 remaining items

  14. joefitzgerald commented on Apr 9, 2015

    @joefitzgerald
    Contributor

    I think I'd be satisfied as long as the built-in completion provider didn't provide completions in comments (or strings, ideally) by default.

    👍 on that.

  15. benogle commented on Apr 9, 2015

    @benogle
    ContributorAuthor
  16. eqot commented on Apr 10, 2015

    @eqot
    Contributor

    Instead of publishing autocomplete-unicode-emojis as a package, I have updated autocomplete-emojis which now supports unicode emojis as well as markdown emojis.

    autocomplete-emojis

    Tricky thing is that there are a lot of suggestions for unicode and markdown emojis, like :sm shows 49 unicode emojis and 48 markdown emojis. This is quite frustrated if you want to choose markdown emojis from the suggestions.
    So, autocomplete-emojis also supports :: prefix to show markdown emojis only.

  17. benogle commented on Apr 10, 2015

    @benogle
    ContributorAuthor

    Lookin good @eqot 👍

  18. eqot commented on Apr 10, 2015

    @eqot
    Contributor

    Thanks! 😄

  19. benogle commented on Apr 15, 2015

    @benogle
    ContributorAuthor

    If people are looking to help, improving the language packages would be a big help. Here are two issues for coffee and javascript.

    Feel free to go deep on your favorite language too. Properly detecting and scoping variables, functions, classes, mixins, etc will make the symbol provider much better.

  20. joefitzgerald commented on Apr 21, 2015

    @joefitzgerald
    Contributor

    @benogle What say you on backspaceTriggersAutocomplete -> false.

    I've disagreed with this on the basis that we should allow any single keystroke to trigger autocomplete (by default), and let the user (via configuration) or the providers (via configuration or not) determine keystrokes for which suggestions should be not provided (e.g. see: joefitzgerald/go-plus#180). Doing otherwise hinders novel use cases that we cannot foresee.

    I don't think we're in agreement yet, so what are the arguments for this change?

  21. benogle commented on Apr 21, 2015

    @benogle
    ContributorAuthor

    I strongly feel that we should have it disabled by default. I'd like to argue about this in another thread.

  22. ctolkien commented on Apr 23, 2015

    @ctolkien

    In omnisharp-atom (handling C# autocompletion). We have some styling issues with C# when the description needs to overflow, things aren't floating correctly:

  23. joefitzgerald commented on Apr 23, 2015

    @joefitzgerald
    Contributor

    @ctolkien: might want to weigh in on #405.

  24. nathansobo commented on May 13, 2015

    @nathansobo
    Contributor

    🎆

  25. ilanbiala commented on May 14, 2015

    @ilanbiala

    @nathansobo is this going to be shipped with Atom by default now?

  26. mnquintana commented on May 14, 2015

    @mnquintana
    Contributor

    @ilanbiala It's shipping with Atom now as of 0.199.0

  27. ctolkien commented on May 15, 2015

    @ctolkien

    Is there anything we need to specifically handle to migrate? Or can we just yank out the package dependency and things will "just work".

    Ref: OmniSharp/omnisharp-atom#277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions