ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.22k stars 806 forks source link

Hinterland: Minimum length of word before prompting? #1500

Open davenlimhh opened 4 years ago

davenlimhh commented 4 years ago

Hi, I was trying to modify Hinterland's regex for the prompting to be less aggressive -- I would like it to prompt after a minimum length is met, i.e. after 3 characters. I tried using the regex .{3}? but it doesn't seem to work -- and from the parameters it seems to suggest that Hinterland only checks the immediate character before the cursor.

I think such a feature would be since short variables such as "df", or "pd" don't really need prompting, and it takes extra effort to exit the prompt, for example when i do import pandas as pd.