Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebook tab completion broken in Firefox #1068

Closed
jenshnielsen opened this issue Nov 30, 2011 · 4 comments
Closed

Notebook tab completion broken in Firefox #1068

jenshnielsen opened this issue Nov 30, 2011 · 4 comments
Milestone

Comments

@jenshnielsen
Copy link
Contributor

After the merge of the notebook-as-you-type-completer the tab completion
using firefox is broken. When hitting enter to select a completion it is inserted twice
and the completion box is not closed. If you then try to complete something new
it only shows the completion from the previous attempt and you might get several
completion boxes on top of each other.
I also got it into a state once where after trying to complete plt.something
I could not delete the .

In chrome 16 it works fine and is a huge usability gain for the notebook.
Using the latest git version d7d57eb on Ubuntu 11.10

@Carreau
Copy link
Member

Carreau commented Nov 30, 2011

Right, I (kind of) can reproduce it... could you try test-fix-ff-completeron https://github.com/Carreau/ipython.git and tell me if it works.

actually, it looked like you weren't able to delete . but it might have been because of 8 to 10 invisible caracters with no length after...

Javascript event keypress and keydown totally differs between browser and it's a mess to handle.
I'll try to came with some test case to run on different browser to test the completer.

@Carreau
Copy link
Member

Carreau commented Nov 30, 2011

To anyone reading this...
some test case for the completer in the notebook, with the --pylab flag.

#test direct one completion
plt.an<tab>  --> plt.annotate
====
#test filter,tab, only one completion
plt.a<tab>n<tab>  --> plt.annotate
===
# test partial common beggining
plt.a<tab>nn<backspace><backspace>u<tab> -> complter to aut
........................................<tab><tab><tab>
# test dismmised if user erase
.......................................................<backspace><backspace<backspace> -> complter cancelled
===
plt.s<tab>c -> completer 3 choices
...........u -> dismissed whith what user have typed. ( plt.scu)

Feel free to complete and test on other browser.

@Carreau
Copy link
Member

Carreau commented Nov 30, 2011

@fperez
PR #1039 is buggy on firefox, could you try test-fix-ff-completeron https://github.com/Carreau/ipython.git see if it fixes things ?

@jenshnielsen
Copy link
Contributor Author

From a quick test that seems to fix it and it still works in Chrome. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants