Giter VIP home page Giter VIP logo

Comments (60)

hskoder avatar hskoder commented on June 11, 2024

This is what I was looking in for...
Would really like this feature

from autocomplete.

dblooman avatar dblooman commented on June 11, 2024

+1 for this

from autocomplete.

remaerd avatar remaerd commented on June 11, 2024

+1000000 for this.

This will be the last reason of not switching from Sublime Text

from autocomplete.

agentdave avatar agentdave commented on June 11, 2024

This option would be fantastic to have

from autocomplete.

amccloud avatar amccloud commented on June 11, 2024

I'm going to give it a shot tonight. We could possibly make it an option.

from autocomplete.

amccloud avatar amccloud commented on June 11, 2024

This will be a bit tricky.

  • The autocomplete plugin is activated lazily on autocomplete:attach ctrl-space.
  • The plugin uses SelectListView for the popup. The search input provided by SelectListView is unnecessary for completions as you type.

from autocomplete.

saschagehlich avatar saschagehlich commented on June 11, 2024

I already played around with it a bit. I created a custom view without the input that appears automatically if completion suggestions are available. The problem is that, since the editor is focused, it receives all the control events (move up, move down), so controlling the list is not possible.

I did some dirty hack that monkeypatched the editor so that it ignores up and down movements when a control variable like Editor.disableVerticalMovement is set. But yeah, it's very dirty.

from autocomplete.

saschagehlich avatar saschagehlich commented on June 11, 2024

I also tried to only remove the "lazy activation" part while keeping the input. Then I ran into some weird issue were selecting the previous and next items of the list works, but pressing enter would result in the editor adding a new line. But I guess that has something to do with the range selection voodoo that autocomplete does.

from autocomplete.

amccloud avatar amccloud commented on June 11, 2024

@saschagehlich Can you push what you have? I have some ideas for bypassing the EditorView event handlers.

from autocomplete.

saschagehlich avatar saschagehlich commented on June 11, 2024

@amccloud https://github.com/saschagehlich/autocomplete/tree/feature/live-autocomplete

from autocomplete.

benogle avatar benogle commented on June 11, 2024

Some folks on the atom team would like this too. In order to do it properly, though, we'll need to make a couple changes in core. So it might take a bit to get done with everything else that's going on.

from autocomplete.

saschagehlich avatar saschagehlich commented on June 11, 2024

@benogle What changes would that be? I'd like to do some monkeypatching to make it work temporarily, that's one big reason why I can't use atom.

from autocomplete.

jnordberg avatar jnordberg commented on June 11, 2024

+1 rewrite the core from scratch if needed 😄

from autocomplete.

ruedap avatar ruedap commented on June 11, 2024

+1

from autocomplete.

sirbrillig avatar sirbrillig commented on June 11, 2024

+1

from autocomplete.

iam4x avatar iam4x commented on June 11, 2024

Need this too! +1

from autocomplete.

framerate avatar framerate commented on June 11, 2024

+1 so I can monitor this issue!

from autocomplete.

nathansobo avatar nathansobo commented on June 11, 2024

@saschagehlich if you prevent the command events from bubbling out of the list the editor won't get them. You can return false from a jquery handler to do so.

from autocomplete.

nathansobo avatar nathansobo commented on June 11, 2024

@benogle what core changes did you have in mind? the critical thing is it has to be really fast so we don't slow down typing since it will be evaluated frequently.

from autocomplete.

giladgo avatar giladgo commented on June 11, 2024

+1

from autocomplete.

saschamt avatar saschamt commented on June 11, 2024

+1

from autocomplete.

dburles avatar dburles commented on June 11, 2024

+1

from autocomplete.

3on avatar 3on commented on June 11, 2024

I would love this too.

from autocomplete.

johanbaath avatar johanbaath commented on June 11, 2024

+1 👍

from autocomplete.

jakehills avatar jakehills commented on June 11, 2024

+1

from autocomplete.

dotcypress avatar dotcypress commented on June 11, 2024

+1

from autocomplete.

saschagehlich avatar saschagehlich commented on June 11, 2024

I created autocomplete-plus which is automatically activated when typing. It listens for the contents-modified event which is not triggered instantly but after a couple of milliseconds. It works pretty well, even with large files.

https://github.com/saschagehlich/autocomplete-plus

Still quite buggy though :(

from autocomplete.

jakehills avatar jakehills commented on June 11, 2024

@saschagehlich Thanks for your work Sascha, but despite downloading and installing successfully it doesn't seem to work for me. Am I missing something?

from autocomplete.

saschagehlich avatar saschagehlich commented on June 11, 2024

@jakehills Sorry, forgot to mention that you have to do npm install inside the autocomplete-plus folder. Adding it to the Readme now :)

from autocomplete.

jakehills avatar jakehills commented on June 11, 2024

@saschagehlich That did the trick, thanks :) Your git link doesn't work however (new to git, so not sure why).. try $ git clone https://github.com/saschagehlich/autocomplete-plus.git

from autocomplete.

dblooman avatar dblooman commented on June 11, 2024

@saschagehlich Thanks for plugin, though it seems to bring up inspector every time

from autocomplete.

saschagehlich avatar saschagehlich commented on June 11, 2024

@jakehills Updated the readme, thanks
@DaveBlooman Yeah it's a known issue I'm working on. Some logic bug causes an internal exception in atom that causes the inspector to open.

from autocomplete.

fakewaffle avatar fakewaffle commented on June 11, 2024

+1

from autocomplete.

heyvito avatar heyvito commented on June 11, 2024

+1

from autocomplete.

ponychicken avatar ponychicken commented on June 11, 2024

Hi all, please reduce the noise and stop +1'ning.
There is button to subscribe to this issue on the right side.

from autocomplete.

tjpeden avatar tjpeden commented on June 11, 2024

👍

from autocomplete.

gastonmorixe avatar gastonmorixe commented on June 11, 2024

+1 👍

from autocomplete.

rtorino avatar rtorino commented on June 11, 2024

👍

from autocomplete.

smussell avatar smussell commented on June 11, 2024

+1

from autocomplete.

L4D15 avatar L4D15 commented on June 11, 2024

+1 to this. Is not only about autocompleting something, but knowing what you are typing is correct. If at some point the autocorrect stop showing suggestions, you know you mistyped something.

from autocomplete.

TomOne avatar TomOne commented on June 11, 2024

👍 for this feature.

from autocomplete.

stefanerickson avatar stefanerickson commented on June 11, 2024

+1

from autocomplete.

ozee avatar ozee commented on June 11, 2024

+1

from autocomplete.

galenandrew avatar galenandrew commented on June 11, 2024

+1

from autocomplete.

optikfluffel avatar optikfluffel commented on June 11, 2024

+1

from autocomplete.

dduvnjak avatar dduvnjak commented on June 11, 2024

👍

from autocomplete.

cebor avatar cebor commented on June 11, 2024

👍

from autocomplete.

dstibrany avatar dstibrany commented on June 11, 2024

+1

from autocomplete.

enby avatar enby commented on June 11, 2024

look for autocomplete plus on Atom. Works like a charm! https://atom.io/packages/autocomplete-plus

from autocomplete.

harrisrobin avatar harrisrobin commented on June 11, 2024

+1

from autocomplete.

guyisra avatar guyisra commented on June 11, 2024

+1

atomcomplete-plus is nice but with 2 main problems

  1. it autocompletes everything... which is quite annoying, would be better to autocomplete by language
  2. it doesn't chooses the autocomplete with "enter" only with "tab"

from autocomplete.

harrisrobin avatar harrisrobin commented on June 11, 2024

^ I agree with what he said.

from autocomplete.

sirbrillig avatar sirbrillig commented on June 11, 2024

This isn't really the place to discuss autocomplete-plus. It should be done on the page for that plugin, but you can customize any keys in Atom, so you can configure autocomplete-plus to complete with "enter" by adding this to your ~/.atom/keymap.cson:

'.autocomplete-plus input.hidden-input':
  'enter': 'autocomplete-plus:confirm'

from autocomplete.

workmanw avatar workmanw commented on June 11, 2024

+1. It seems like a pretty basic piece of functionality for an editor intended for development use.

from autocomplete.

vimes1984 avatar vimes1984 commented on June 11, 2024

+1 for this feature....

from autocomplete.

thedaniel avatar thedaniel commented on June 11, 2024

Autocomplete-plus will at some point in the next few months replace autocomplete in core. There's no need to +1 this anymore, it's accepted and in-progress.

Here's the 1.0 tracking issue: atom/atom#3684
Here's the tracking issue for "autocomplete next": atom/atom#4364

from autocomplete.

vimes1984 avatar vimes1984 commented on June 11, 2024

Ok sorry. Do you want to shut this thread then?
I stand corrected it is closed...

from autocomplete.

thedaniel avatar thedaniel commented on June 11, 2024

@vimes1984 No reason to apologize - but I think I'll lock it now but wait to close it until the functionality makes it into core, that way people will see this issue and not open another.

from autocomplete.

kevinsawicki avatar kevinsawicki commented on June 11, 2024

This package is deprecated and no longer shipped with Atom. If this is still an issue using the autocomplete-plus package, please open up a new issue on that repository, thanks.

from autocomplete.

benogle avatar benogle commented on June 11, 2024

We should 🔥 this package

from autocomplete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.