This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Bundling autocomplete-plus in core #351
Copy link
Copy link
Closed
atom/atom
#6710Description
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.
- Get one or two (or all?!?) community providers using the suggestion types and left labels
- Get all the bundled syntax themes to implement the color vars cc @simurai
- Startup performance eval https://github.com/atom-community/autocomplete-plus/pull/442
- Running performance eval https://github.com/atom-community/autocomplete-plus/pull/400
- Fix
suggestionListFollows == Wordto align the prefix with the suggestion text https://github.com/atom-community/autocomplete-plus/pull/362 - Get SymbolProvider ready for prime time; it should be close, just need to do some more eval
- Implement changes API that uses includes builtins https://github.com/atom-community/autocomplete-plus/pull/378
- Do some performance eval + fixing https://github.com/atom-community/autocomplete-plus/pull/390
- Add specific support to languages, improve in common languages: js, python, rb
- I'd like to make this the default very close to when we bundle autocomplete-plus so it's a bit of a nice surprise. Make the SymbolProvider the default #445
- Explore using core:move-up / down to cycle through suggestions. cc @nathansobo and @maxbrunsfeld https://github.com/atom-community/autocomplete-plus/pull/381
- Make sure autocomplete-css is at its best
- Make it trigger on space or automatically after prop name
- It currently triggers in comments and generally after any space or dot
- Works well in CSS, LESS, and SCSS
- Make sure autocomplete-html is at its best Enhance: use new features of autocomplete-plus autocomplete-html#3
- Make autocomplete-atom-api better Use fancy features of autocomplete-plus autocomplete-atom-api#5
- Use
snippet,leftLabel, andtype
- Use
- Update defaults
-
confirmCompletion-> 'tab and enter' -
minimumWordLength-> 3 https://github.com/atom-community/autocomplete-plus/pull/380 -
backspaceTriggersAutocomplete-> false -
suggestionListFollows-> Word
-
- Figure out how best get this into core and move people using autocomplete-plus to the new bundled autocomplete Bundle Autocomplete-plus instead of autocomplete atom#6710
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:
- Updating your provider to use API 2.0 and all the shiny new features helpful in your situation.
- Making the language packages better
- Better symbol scopes
- Many symbols without scopes language-javascript#137 e.g. js language doesnt tag functions as functions.
- Many symbols without scopes language-coffee-script#53 e.g. coffee language doesnt tag many variables.
- Defining all the builtins in your fav language
- We may be able to specify them in a richer manner than just strings. See https://github.com/atom-community/autocomplete-plus/wiki/SymbolProvider-Config-API
- Adding the config for the SymbolProvider to your language
- Better symbol scopes
- Add unicode support
OMG write autocomplete-emoji @lee-dohm 🚀 ❤️
Metadata
Metadata
Assignees
Labels
No labels
Activity
joefitzgerald commentedon Apr 2, 2015
On the topic of emojis: https://atom.io/packages/autocomplete-emojis / https://github.com/eqot/autocomplete-emojis (hi @eqot!).
basarat commentedon Apr 2, 2015
I don't know what is
suggestionTypeorleftLabel: https://github.com/atom-community/autocomplete-plus/wiki/Provider-API#suggestionsjoefitzgerald commentedon Apr 2, 2015
@basarat that wiki page needs to be updated. @benogle made significant changes in #334 that introduced new properties.
basarat commentedon Apr 3, 2015
Updated 👍 https://github.com/atom-community/autocomplete-plus/wiki/Provider-API#suggestions
basarat commentedon Apr 3, 2015
After much headbanging, I realize
typeandleftLabelis not shipped yet :) Is it?joefitzgerald commentedon Apr 3, 2015
Not yet, but it's an
apm publish minoraway from being released: https://github.com/atom-community/autocomplete-plus/commits/master (it's merged to master).basarat commentedon Apr 3, 2015
@joefitzgerald cool. Ping me when done ❤️
basarat commentedon Apr 3, 2015
Also I provide autocomplete for
pathas well, doesn't have a default mapping : https://github.com/atom-community/autocomplete-plus/pull/334#issuecomment-85697409feat(autocomplete) provide `type` as requested by https://github.com/…
joefitzgerald commentedon Apr 3, 2015
👎 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.
tinloaf commentedon Apr 3, 2015
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.
basarat commentedon Apr 3, 2015
wait for it to be published before you start the work 👍
joefitzgerald commentedon Apr 3, 2015
As far as I can tell there are two distinct paths (replace
autocomplete-pluswithautocomplete-snippetsorautocomplete-paths, as necessary):autocomplete-plusto the https://github.com/atom organizationautocomplete-plusback to https://github.com/atom/autocompletethedaniel commentedon Apr 3, 2015
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 ;)
tinloaf commentedon Apr 3, 2015
Nah. Let's get this done. It's kinda hard to map what Jedi is giving me to the predefined classes though.
46 remaining items
joefitzgerald commentedon Apr 9, 2015
👍 on that.
benogle commentedon Apr 9, 2015
Lets move the discussion about autocomplete in comments/strings to https://github.com/atom-community/autocomplete-plus/issues/377
eqot commentedon Apr 10, 2015
Instead of publishing autocomplete-unicode-emojis as a package, I have updated autocomplete-emojis which now supports unicode emojis as well as markdown emojis.
Tricky thing is that there are a lot of suggestions for unicode and markdown emojis, like
:smshows 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.benogle commentedon Apr 10, 2015
Lookin good @eqot 👍
eqot commentedon Apr 10, 2015
Thanks! 😄
benogle commentedon Apr 15, 2015
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.
joefitzgerald commentedon Apr 21, 2015
@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?
benogle commentedon Apr 21, 2015
I strongly feel that we should have it disabled by default. I'd like to argue about this in another thread.
ctolkien commentedon Apr 23, 2015
In omnisharp-atom (handling C# autocompletion). We have some styling issues with C# when the description needs to overflow, things aren't floating correctly:
joefitzgerald commentedon Apr 23, 2015
@ctolkien: might want to weigh in on #405.
nathansobo commentedon May 13, 2015
🎆
ilanbiala commentedon May 14, 2015
@nathansobo is this going to be shipped with Atom by default now?
mnquintana commentedon May 14, 2015
@ilanbiala It's shipping with Atom now as of 0.199.0
ctolkien commentedon May 15, 2015
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