Python icon indicating copy to clipboard operation
Python copied to clipboard

Add jump-to-definition

Open fishg opened this issue 12 years ago • 7 comments

Is plant add go definition?Thanks~

fishg avatar Jan 09 '14 08:01 fishg

Do you mean jump-to-definition? It's bound to ctrl-. by default but at the moment it is only supported in clj/cljs.

jamii avatar Jan 09 '14 22:01 jamii

Yes,I mean jump-to-definition.Hope to support Python.

fishg avatar Jan 10 '14 03:01 fishg

We can use (https://github.com/davidhalter/jedi) for python and tern ( http://ternjs.net/) for js. We just need to implement async autocompletion first. Shouldn't be too hard.

On 10 January 2014 03:02, fishg [email protected] wrote:

Yes,I mean jump-to-definition.Hope to support Python.

— Reply to this email directly or view it on GitHubhttps://github.com/LightTable/Python/issues/1#issuecomment-31999096 .

jamii avatar Jan 10 '14 03:01 jamii

apparently, since we're already using IPython anyway, we maybe could use IPython's autocomplete within LT, like so

import rlcompleter, readline
readline.parse_and_bind('tab:complete')

Also, there's IPython.core.completer

bilderbuchi avatar Jan 12 '14 17:01 bilderbuchi

Is there anybody already implementing async autocompletion? Seems to be most hard part for me (and others just digging into LT's thread/thread* | background macro kitchen) and very useful for implementing interaction of other languages.

kolya-ay avatar Jan 13 '14 18:01 kolya-ay

I just found a vim plugin which offers python autocompletion in vim via IPython, so it's possible from a technical standpoint: https://github.com/ivanov/vim-ipython

bilderbuchi avatar Feb 10 '14 10:02 bilderbuchi

We don't have bandwidth to take this on but happy to take pull requests. For someone interested in implementing this, these are the relevant behaviors from the Clojure plugin.

cldwalker avatar Oct 28 '14 21:10 cldwalker