Comments (60)
This is what I was looking in for...
Would really like this feature
from autocomplete.
+1 for this
from autocomplete.
+1000000 for this.
This will be the last reason of not switching from Sublime Text
from autocomplete.
This option would be fantastic to have
from autocomplete.
I'm going to give it a shot tonight. We could possibly make it an option.
from autocomplete.
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.
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.
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.
@saschagehlich Can you push what you have? I have some ideas for bypassing the EditorView event handlers.
from autocomplete.
@amccloud https://github.com/saschagehlich/autocomplete/tree/feature/live-autocomplete
from autocomplete.
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.
@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.
+1 rewrite the core from scratch if needed 😄
from autocomplete.
+1
from autocomplete.
+1
from autocomplete.
Need this too! +1
from autocomplete.
+1 so I can monitor this issue!
from autocomplete.
@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.
@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.
+1
from autocomplete.
+1
from autocomplete.
+1
from autocomplete.
I would love this too.
from autocomplete.
+1
from autocomplete.
+1
from autocomplete.
+1
from autocomplete.
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.
@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.
@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.
@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.
@saschagehlich Thanks for plugin, though it seems to bring up inspector every time
from autocomplete.
@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.
+1
from autocomplete.
+1
from autocomplete.
Hi all, please reduce the noise and stop +1'ning.
There is button to subscribe to this issue on the right side.
from autocomplete.
👍
from autocomplete.
+1 👍
from autocomplete.
👍
from autocomplete.
+1
from autocomplete.
+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.
from autocomplete.
+1
from autocomplete.
+1
from autocomplete.
+1
from autocomplete.
+1
from autocomplete.
👍
from autocomplete.
👍
from autocomplete.
+1
from autocomplete.
look for autocomplete plus on Atom. Works like a charm! https://atom.io/packages/autocomplete-plus
from autocomplete.
+1
from autocomplete.
+1
atomcomplete-plus is nice but with 2 main problems
- it autocompletes everything... which is quite annoying, would be better to autocomplete by language
- it doesn't chooses the autocomplete with "enter" only with "tab"
from autocomplete.
^ I agree with what he said.
from autocomplete.
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.
+1. It seems like a pretty basic piece of functionality for an editor intended for development use.
from autocomplete.
+1 for this feature....
from autocomplete.
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.
Ok sorry. Do you want to shut this thread then?
I stand corrected it is closed...
from autocomplete.
@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.
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.
We should 🔥 this package
from autocomplete.
Related Issues (20)
- Autocomplete adds spurious undo entries to history
- Issue with history transactions and autocomplete HOT 2
- When pressing enter, the selected autocomplete not replacing my text HOT 1
- Show suggestions from n-th character HOT 1
- Uncaught Error: Can't undo with an open transaction HOT 10
- Doesn't work with valid unicode characters in variables HOT 1
- Toggling autocomplete view doesn't focus the filter editor HOT 1
- Autocomplete allows CTRL-Z (undo) in textbox HOT 1
- Comment Tags HOT 1
- Uncaught TypeError: undefined is not a function HOT 2
- Uncaught Error: Cannot create a checkpoint inside of a transaction HOT 1
- PLIST Additions HOT 1
- Asynchronous feed to autocompletion list HOT 1
- Language keywords should always be availabe, regardless of if they are already typed or not HOT 1
- autocomplete does not support unicode chars HOT 1
- The keymap of "autocomplete:next/previouse" ? HOT 2
- Exact prefix matches should take precedence over fuzzy matches HOT 4
- Display suggestions on type HOT 15
- In Plain Text mode completion does not appear to work HOT 3
- atom editor autocomplete HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autocomplete.