Re: question about scripting

2009-02-20 Thread Edward K. Ream
On Thu, Feb 19, 2009 at 3:56 PM, uve...@gmail.com uve...@gmail.com wrote: I got it! :-) # See unitTest.leo, All unit tests--Organized by file--leoCommands-- @test c.insertBodyTime w = c.frame.body.bodyCtrl insert_point = w.getInsertPoint() w.insert(insert_point, template)

Re: New intro on Leo's wiki

2009-02-20 Thread Edward K. Ream
On Thu, Feb 19, 2009 at 2:55 PM, jkn jkn...@nicorp.f9.co.uk wrote: ?? why is it called the 'minibuffer'?? Because that's what it is called in Emacs. I've just updated the top page to refer to it as an Emacs-like minibuffer. This will be enough for many readers, and the term minibuffer

Re: New intro on Leo's wiki

2009-02-20 Thread Edward K. Ream
On Thu, Feb 19, 2009 at 4:19 PM, jkn jkn...@nicorp.f9.co.uk wrote: The last thing you want prospective users to think is 'hey, Leo is like emacs...' There is no danger of that, IMO. Take a look at the top page. How much is similar to Emacs. Only the one word, 'minibuffer'. Furthermore, I

Re: New intro on Leo's wiki

2009-02-20 Thread Edward K. Ream
On Fri, Feb 20, 2009 at 8:06 AM, Edward K. Ream edream...@gmail.com wrote: To repeat, at the top level we have to be ruthless in presenting the big-picture narrative without becoming bogged down in details. All clarifications belong in the children. Some introductory words saying that

Re: active_path update (Plone Product development mode :-)

2009-02-20 Thread Edward K. Ream
On Thu, Feb 19, 2009 at 4:26 PM, Terry Brown terry_n_br...@yahoo.comwrote: I just pushed a new version of active_path.py, the plugin which lets you browse the filesystem in leo, expanding directories and opening files easily within a hierarchical @path environment. Thanks very much for this

Re: question about scripting

2009-02-20 Thread Vicent
Thanks a lot for your guidance. Vicent On 20 Feb, 14:23, Edward K. Ream edream...@gmail.com wrote: On Thu, Feb 19, 2009 at 3:56 PM, uve...@gmail.com uve...@gmail.com wrote: I got it! :-) # See unitTest.leo, All unit tests--Organized by file--leoCommands-- @test c.insertBodyTime w =

Vimperator

2009-02-20 Thread Edward K. Ream
I just discovered a totally cool Mozilla add-on called vimperator. http://vimperator.org/trac/wiki/Vimperator This allows you to navigate web pages using vim-like keystrokes. It does take some time to get used to it, but once you are comfortable with it I think you will never use the mouse for

Re: New intro on Leo's wiki

2009-02-20 Thread tfer
An attempt at the page for external files: External files: Interpreters, compilers, and text processors/manipulators don't expect their input to be in the form of outlines, these are all expecting text files for their input. Leo lets you organize/develope your text as you go and this is the

Re: Ubuntu horizontal scrolling woes

2009-02-20 Thread Terry Brown
What's the status of this bug? It makes tree on the left unusable in Ubuntu 8.10, and I like the tree on the left. Note that it doesn't always manifest immediately, you may have to expand a few nodes to get the horizontal scroll bar to appear. Cheers -Terry On Tue, 18 Nov 2008 07:07:54 -0800

Re: Who changed Leo's menu code?

2009-02-20 Thread Edward K. Ream
On Feb 20, 9:11 am, Terry Brown terry_n_br...@yahoo.com wrote: I changed it (I think, I haven't checked for more recent changes).  It wasn't a stealthy change, it's received plenty of discussion on the list. Many thanks for this long explanation. Here's hoping we can put this issue behind

Re: active_path update (Plone Product development mode :-)

2009-02-20 Thread Ville M. Vainio
On Fri, Feb 20, 2009 at 12:26 AM, Terry Brown terry_n_br...@yahoo.com wrote: I just pushed a new version of active_path.py, the plugin which lets you browse the filesystem in leo, expanding directories and opening files easily within a hierarchical @path environment. Great stuff! - it's

Re: active_path update (Plone Product development mode :-)

2009-02-20 Thread Ville M. Vainio
On Fri, Feb 20, 2009 at 6:23 PM, Ville M. Vainio vivai...@gmail.com wrote: Great stuff! With the caveat that the @button stopped working ;-). I now get 'no script selected' on log every time I push it. Can you inject something to g namespace, so the @button could just do

Re: active_path update (Plone Product development mode :-)

2009-02-20 Thread Ville M. Vainio
On Fri, Feb 20, 2009 at 6:39 PM, Ville M. Vainio vivai...@gmail.com wrote: With the caveat that the @button stopped working ;-). I now get 'no script selected' on log every time I push it. Can you inject something to g namespace, so the @button could just do 'g.active_path_activate(c,p)'

Re: New intro on Leo's wiki

2009-02-20 Thread jkn
Hi Edward ?? why is it called the 'minibuffer'?? I have no problem with mimicking/stealing(*) such a feature from emacs - I just think that calling it a minibuffer is weird, and loses you more than it gains. This from a potential Leo *** with 25+ years experience using many different

Can't type non ASCII characters in qt body

2009-02-20 Thread vitalije
Hi. I can't type any non ASCII character like Виталије in Leo's body when using Qt gui. Instead of characters that I type Leo shows only ?-s. It displays correct text that I have typed in using Tk as gui. If it would help the this bug was introduced in revision 1527. Although in that revision

Qt: Tab stop width very big (active_path.py, c++ files)

2009-02-20 Thread Ville M. Vainio
I imported some files that use tabs for indentation with active_path plugin. I noted that the tab size was huge. QTextEdit has a way to specify tab stop width in pixels. I ran this and tabs were sane again: c.frame.top.ui.richTextEdit.setTabStopWidth(20) Note that it's probably a *good* idea

Re: Can't type non ASCII characters in qt body

2009-02-20 Thread Ville M. Vainio
On Fri, Feb 20, 2009 at 6:50 PM, vitalije vitali...@gmail.com wrote: I can't type any non ASCII character like Виталије in Leo's body when using Qt gui. Instead of characters that I type Leo shows only ?-s. It displays correct text that I have typed in using Tk as gui. If it would help the

Re: Who changed Leo's menu code?

2009-02-20 Thread Terry Brown
Ok, after a frustrating hour or so banging my head against delete_range, I've found that Tk appears to be unable to delete separators from menus, at least in Ubuntu 8.10, at least for the way Leo creates separators. So I pushed a version which doesn't use a separator in the Recent Files menu,

Re: active_path update (Plone Product development mode :-)

2009-02-20 Thread Terry Brown
On Fri, 20 Feb 2009 18:23:10 +0200 Ville M. Vainio vivai...@gmail.com wrote: - it's ideal for things like Plone Products and GeoMoose MapServer apps. and similar things that are composed of a bunch of different files in a hierarchy. ... like, say, source code in general ;-). :-)

Re: active_path update (Plone Product development mode :-)

2009-02-20 Thread Ville M. Vainio
On Fri, Feb 20, 2009 at 6:59 PM, Terry Brown terry_n_br...@yahoo.com wrote: Yep a bit more dev. needed there, it should do that itself, and I want to make the choice between @auto, @thin, @shadow easier (i.e. user defined default, with the possibility to ask each time). If you start adding

Re: active_path update (Plone Product development mode :-)

2009-02-20 Thread Terry Brown
On Fri, 20 Feb 2009 19:15:32 +0200 Ville M. Vainio vivai...@gmail.com wrote: If you start adding configurability to this, why not: - put the config into the body of some of the parent @path nodes (@filetype shadow). If you put @filetype auto in the first @path to be activated, you hardly

Re: Can't type non ASCII characters in qt body

2009-02-20 Thread Vicent
Hi, I'm using lots of non ASCII characters (qith qt being my default gui) in my daily work and everything is fine here. I'm using rev 1589 now. Have you had a look to the (invalid) bug http://launchpad.net/bugs/323105 ? Setting the sys.defaultencoding() to 'utf-8' fixed the problem for me in

Re: Can't type non ASCII characters in qt body

2009-02-20 Thread Ville M. Vainio
On Fri, Feb 20, 2009 at 7:28 PM, Vicent uve...@gmail.com wrote: Have you had a look to the (invalid) bug http://launchpad.net/bugs/323105 ? Setting the sys.defaultencoding() to 'utf-8' fixed the problem for me in rev 1447 and I have had no issues (IIRC) with unicode since then.

Re: Can't type non ASCII characters in qt body

2009-02-20 Thread Vicent
Hi, I don't understand. I'm not encoding/decoding anything. I just have set sys.defaultencoding in my sitecustomize.py. So when leo uses this value (and it seems it does, at least that is what I understand from thread copy + paste erratic behavior in qt-plugin) it produces the right results (at

Re: Can't type non ASCII characters in qt body

2009-02-20 Thread Ville M. Vainio
On Fri, Feb 20, 2009 at 7:55 PM, Vicent uve...@gmail.com wrote: I don't understand. I'm not encoding/decoding anything. I just have set sys.defaultencoding in my sitecustomize.py. So when leo uses this value (and it seems it does, at least that is what I understand from thread copy + paste

Re: Can't type non ASCII characters in qt body

2009-02-20 Thread Vicent
Hi, thanks for the explanation. Now I understand you. And agree with you :-) Vicent On 20 Feb, 19:02, Ville M. Vainio vivai...@gmail.com wrote: On Fri, Feb 20, 2009 at 7:55 PM, Vicent uve...@gmail.com wrote: I don't understand. I'm not encoding/decoding anything. I just have set  

Re: Who changed Leo's menu code?

2009-02-20 Thread zpcspm
On Feb 20, 5:11 pm, Terry Brown terry_n_br...@yahoo.com wrote: Come to think of it I also added grouping for cases where the same filename occurs on multiple paths (also discussed at length), as the old system would generate a full screen of text, a real pain to scan for the file you want.

Re: Can't type non ASCII characters in qt body

2009-02-20 Thread vitalije
Thanks for advise. Indeed, creating sitecustomize.py with sys.setdefaultencoding('utf-8') in it solved problem, but ojn the other hand I agree that Leo should not require such a hack from user in order to work properly. Vitalije. --~--~-~--~~~---~--~~ You

Re: Who changed Leo's menu code?

2009-02-20 Thread Edward K. Ream
On Fri, Feb 20, 2009 at 10:52 AM, Terry Brown terry_n_br...@yahoo.comwrote: Ok, after a frustrating hour or so banging my head against delete_range, I've found that Tk appears to be unable to delete separators from menus, at least in Ubuntu 8.10, at least for the way Leo creates separators.

Re: Qt: Tab stop width very big (active_path.py, c++ files)

2009-02-20 Thread Edward K. Ream
On Fri, Feb 20, 2009 at 10:52 AM, Ville M. Vainio vivai...@gmail.comwrote: I ran this and tabs were sane again: c.frame.top.ui.richTextEdit.setTabStopWidth(20) Note that it's probably a *good* idea to specify tab stop width that is not exactly 4/8 spaces. That way, mixed spaces and tabs

Re: New intro on Leo's wiki

2009-02-20 Thread Edward K. Ream
On Fri, Feb 20, 2009 at 10:43 AM, jkn jkn...@nicorp.f9.co.uk wrote: 'Minibuffer' comes over to me as another new paradigm within Leo that I need to shift my brain to think about. 'Command area' or similar doesn't. I'm starting to be convinced. Maybe I'm resisting because 'minibuffer' and

Re: New intro on Leo's wiki

2009-02-20 Thread Edward K. Ream
On Fri, Feb 20, 2009 at 9:35 AM, tfer tfethers...@aol.com wrote: An attempt at the page for external files: I think this is an excellent first draft. It's way different from what I would have written, and that makes is all the more valuable. I'll put a revised version of this on the wiki

Re: New intro on Leo's wiki

2009-02-20 Thread jkn
'Minibuffer' comes over to me as another new paradigm within Leo that I need to shift my brain to think about. 'Command area' or similar doesn't. I'm starting to be convinced. Maybe I'm resisting because 'minibuffer' and 'minibuffer commands' are entrenched Leo terms now. Yeah, I

Re: New intro on Leo's wiki

2009-02-20 Thread jkn
On Feb 20, 3:35 pm, tfer tfethers...@aol.com wrote: An attempt at the page for external files: Even in this draft form I found this very helpful - thanks. Jon N --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Headline vs. Heading

2009-02-20 Thread Randy Kramer
I hesitate to bring this up, because it was brought up once before (I brought it up), but I stumbled over the headline terminology--to me it's a heading. Just wondering what the general opinion is--is that a stumbling block for others? For newbies? Randy Kramer -- I didn't have time to

Re: New intro on Leo's wiki

2009-02-20 Thread Seth Johnson
I was probably way too boisterous in my edits, trusting the wiki to keep history and manage dependencies . . Um, the upshot is I changed the name of the page . . . oops, sorry. You can change it back, but I put it here: http://leo.zwiki.org/LeoStories Seth On Wed, Feb 18, 2009 at 10:41 AM,

Re: New intro on Leo's wiki

2009-02-20 Thread Seth Johnson
The wiki did put the new named page under the Documentation page: http://leo.zwiki.org/Documentation Seth On Sat, Feb 21, 2009 at 2:54 AM, Seth Johnson seth.p.john...@gmail.comwrote: I was probably way too boisterous in my edits, trusting the wiki to keep history and manage dependencies .