atom / language-python

Python package for Atom
Other
190 stars 146 forks source link

env is not autosuggested until "#!/usr/bin/env" is nearly typed out #294

Closed wesinator closed 5 years ago

wesinator commented 5 years ago

Prerequisites

Description

https://github.com/atom/language-python/issues/293#issuecomment-468856088 env header is not autosuggested until the string is nearly typed out

Steps to Reproduce

Reproduced on macOS and Windows

  1. New Python or existing python file
  2. First line, start to enter #!/usr/bin/env

Expected behavior: Based on https://github.com/atom/language-python/issues/293#issuecomment-468846479 , sounds like it is expected to autosuggest env early

Actual behavior: env autosuggest does not appear until #!/usr/bin/e is typed

image

image

Reproduces how often: always

Versions

language-python 0.51.8 Atom : 1.34.0 Electron: 2.0.16 Chrome : 61.0.3163.100 Node : 8.9.3

Aerijo commented 5 years ago

First line, start to enter #!/usr/bin/env

What happens if you start to enter env directly? That is the prefix for the snippet.

wesinator commented 5 years ago

Doh, yes typing it at the beginning works.

Is this documented anywhere ?

Thanks,