I got the latest Leo from bzr, and tried it out on OS-X

First:

It mostly works, which is a real testament to Python and tkInter --pretty cool!

OS-X support?
   - native-ish key bindings (for the biggies, anyway - cut, copy,

You can choose bindings as you wish in myLeoSettings.leo.

I'll have to mess with that, but out of the box, only ctrl works. Even though there are bindings listed in the menus for alt and alt+shift, they don't work.

I'm surprised that TK didn't make more of of them work by default -- oh well.

   - Set up to run as a *.app -- drag and drop file son it, etc.

OS-X support isn't the best.

It wouldn't be too hard to add that if I (or someone else with a Mac ) choose to -- and there are also some layout issues it would be nice to fix -- buttons too close together, etc.

Language support: what kinds of text files are supported out of the box?

Leo supports syntax coloring for all languages supported by jEdit,

Good start -- but syntax coloring is only a start. Is there any other support?

Why so long with the interactive search --

You've go that now, but it either is broken, or there was a misunderstanding of what it means -- it seems to just search one letter -- that's not what we (or at least, I) want. We want to be able to type s many letters as we need to get to what we're looking for:

type a "t" get the first "t", then type an "h", get the first "th", type an "e", get the first "the", etc...

In the middle of that, you should be able to type <enter> or the I-search keystroke and get the next occurrence of that string.

Firefox has a pretty good one, if you want an example.


Other notes:

I could easily just open a file -- no problem there any more.

Indenting:

Almost no editors get this right. It's critical for Python, but good to have for any programming language. (X)Emacs gets it right, and Peppy gets it right -- those are the only two I know of. Here's what I mean by "right"

* The <tab> key means "indent this line as it should be"
- if you are at the beginning of a blank the line, it puts the cursor at the right indent level, whatever that is. - if you are in the middle of the line, it indents that line to where it should be

* if the <backspace> key is pressed in the indentation space, it means: reduce the indentation level by one.

Whether an indentation level is a tab or n spaces should be set-able depending on the type of file and/or personal preference.

There is one trick for Python: there are often multiple indentation levels that are "right", depending on what the programmer wants:

if something:
    some code
    if SomethingElse:
        some more code

so, what is the "right" indentation level for the next line? Peppy, and I'm pretty sure emacs, would put it two levels in. If you don't want that, you hit <backspace> once or twice as need be.

I find this method works very well, and I'm amazed by how much I miss it when I use any other editor.

-Chris




--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]

Reply via email to