Yokmp / atom-autocomplete-factorio

Factorio Lua API autocomplete for Atom.
https://atom.io/packages/provider-factrio-lua-api
MIT License
2 stars 1 forks source link

[minor] create_entity autocomplete extra text #4

Closed Nexela closed 6 years ago

Nexela commented 6 years ago

create_entity (and possibly some others) when autocompled put extra stuff on the line

create_entity{name=…,position=…,direction=…,force=…,target=…,source=…,fast_replace=…,player=…,spill=…}→

would it be possible to have it remove the arrow and the end and possibly the elipses

Thanks

Yokmp commented 6 years ago

Should be fixed now. Sidenote: When you use [CTRL]+[ARROW_KEY] to navigate in Atom, you'll notice that the behavior seems a bit inconsistent at first. If you press the left Arrow-Key it sets the Cursor right before the comma/equal sign. By pressing the right one it sets the Cursor right after these two. I could get around this by using Snippets instead of Suggestions ... hmm