Pysmell (auto completion)

2008-09-01 Thread Ville M. Vainio
Bumped on this on planet python: http://orestis.gr/en/blog/2008/08/31/announcing-pysmell/ It may be something that could be usefull for Leo... -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'

sorted() built-in Python function not highlighted in body pane

2008-09-01 Thread zpcspm
Since leo requires at least Python 2.4 and sorted() appeared in Python 2.4, I suppose it would be good if sorted() will be added to the list of Python built-ins. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: @shadow

2008-09-01 Thread leofan
The last read derived file wins: it determines which version will be used. But wouldn't the same thing might happen within one single file? 2 nodes being a clone of each other and within the public file only one of them got update? It would be bad style to put clones of the same node in two

Re: @shadow notes

2008-09-01 Thread Edward K. Ream
On Sun, Aug 31, 2008 at 10:08 AM, Kent Tenney [EMAIL PROTECTED] wrote: I keep having to do this, when will the need to delete the shadow files go away? Something strange is happening. The syntax (of the public file) should matter only when first importing the file. Thereafter, Leo doesn't

Re: @shadow notes

2008-09-01 Thread Edward K. Ream
On Sep 1, 6:49 am, Edward K. Ream [EMAIL PROTECTED] wrote: Could you send me the file you are having trouble with? Kent sent me the file in private. Here is my reply to him: QQQ It looks like there is a scanning/parser error in Leo's import code. Specifically at the line:

Re: @shadow notes

2008-09-01 Thread Edward K. Ream
On Sep 1, 8:32 am, Edward K. Ream [EMAIL PROTECTED] wrote: There is syntax error in grab.py: logging.error(failure in Grabber._get_config_file, no GRABROOT in environment. try adding GRABROOT to /etc/environment There is no closing paren in the call to logging.error. When I add the

Re: @shadow notes

2008-09-01 Thread Edward K. Ream
On Mon, Sep 1, 2008 at 9:01 AM, Kent Tenney [EMAIL PROTECTED] wrote: (@slurp = dumb import, entire file into top level node) I would like it if Leo could fall back to a @slurp if the file is odd, and as a side benefit, offer configuration to choose between @auto and @slurp import, even a

Re: Pysmell (auto completion)

2008-09-01 Thread Edward K. Ream
On Mon, Sep 1, 2008 at 9:57 AM, Terry Brown [EMAIL PROTECTED] wrote: Had a quick look, looks interesting, I'm guessing much easier to integrate than Komodo, although I don't know how it compares to Komodo. API docs. seem to be lacking (just the way Edward likes it :-) Heh. I was thinking

Re: alt-based softkeys don't work in linux

2008-09-01 Thread Edward K. Ream
On Mon, Sep 1, 2008 at 9:41 AM, Ville M. Vainio [EMAIL PROTECTED] wrote: It was fixed by adding the following to the end of my xmodmap file: add Mod1 = Alt_L add Mod2 = Mode_switch Thanks for this. The Alt-key mess is a major irritation. Edward

Re: Pysmell (auto completion)

2008-09-01 Thread Kent Tenney
On Mon, Sep 1, 2008 at 11:42 AM, Edward K. Ream [EMAIL PROTECTED] wrote: On Mon, Sep 1, 2008 at 9:57 AM, Terry Brown [EMAIL PROTECTED] wrote: Had a quick look, looks interesting, I'm guessing much easier to integrate than Komodo, although I don't know how it compares to Komodo. API docs.

Re: Pysmell (auto completion)

2008-09-01 Thread Ville M. Vainio
On Mon, Sep 1, 2008 at 7:42 PM, Edward K. Ream [EMAIL PROTECTED] wrote: I wonder if that can be done fast enough for auto-completion? Perhaps by caching the text from preceding nodes part of the answer? Speed is the heart of the matter. In general, stupid scanning is too slow. There are

Re: Pysmell (auto completion)

2008-09-01 Thread Terry Brown
On Mon, 1 Sep 2008 20:10:04 +0300 Ville M. Vainio [EMAIL PROTECTED] wrote: pysmell seems to operate in tags like manner, and that should be good enough for most purposes. I.e. generate the completion database every now and then, and just use it (without updating it) in the interim Actually