Re: Terry, why does g.do_exec exist?

2013-05-01 Thread Edward K. Ream
On Tue, Apr 30, 2013 at 11:22 PM, Terry Brown wrote: > On Tue, 30 Apr 2013 18:29:23 -0500 > "Edward K. Ream" wrote: > > > I'd like to eliminate g.do_exec unless there is a good reason not to do > > so. Do you agree? > > I've removed it. > Thanks! Edward -- You received this message because y

Re: border crossing heads up...

2013-05-01 Thread Edward K. Ream
On Thu, Apr 11, 2013 at 2:01 PM, Terry Brown wrote: > > I know the current implementation replaces a previous implementation > which was implicated in the scroll jumping bug, but the point is there > should be no implementation at all, it should be pure style sheet, with > no .setStyleSheet calls

Re: Importing java file using @auto. How do I adjust Leo to ignore whitespace and indentation irregularities?

2013-05-01 Thread Edward K. Ream
On Fri, Apr 5, 2013 at 6:35 AM, Eoin wrote: > > I'm using @auto to import java files into my Leo project. > [snip] However, the whitespace in the Java files isn't completely regular. In > particular, debug logging is always placed in column 1 - regardless of the > surrounding indentation. > Othe

Re: Leo does not display all content of a node ...

2013-05-01 Thread Edward K. Ream
On Sat, Oct 20, 2012 at 9:51 AM, Terry Brown wrote: > On Sat, 20 Oct 2012 05:28:56 -0700 (PDT) > Viktor Ransmayr wrote: > > > even at the latest revision (rev. 5500) Leo does not display all content > of > > larger nodes > > - Larger nodes approximately defined as >= 150 lines ... > > > > That is

Re: Background Images in body pane?

2013-05-01 Thread Edward K. Ream
On Fri, Jul 13, 2012 at 3:57 PM, tfer wrote: > I was wondering if the Qt widget used for body text has a provision for > background images? > Sorry for the delay in responding. Leo's body pane is a QTextBrowser: http://qt-project.org/doc/qt-4.8/qtextbrowser.html a subclass of QTextEdit. QTextB

Re: document leo plugins/configuration for specific task (web developement)

2013-05-01 Thread Edward K. Ream
On Tue, Aug 14, 2012 at 4:08 AM, ilkosta wrote: > hello, > I often find on the internet (eg. stackoverflow) tips to install or > configure plugins for a specific task (web development, ...), in emacs or > vim. > I found that the leo docs lacks tutorial for configuring a tool so > versatile and hor

Re: @paragraph(s)

2013-05-01 Thread Edward K. Ream
On Fri, Jun 15, 2012 at 5:46 PM, Offray Vladimir Luna Cárdenas < off...@riseup.net> wrote: > > Now I think that is time to start hacking Leo for a better support of my > work flow and the first thing I would like to have is a "@paragraph" > directive that works the same as @rst-no-head but can be

Re: Garbled text with BOM-marked files

2013-05-01 Thread Edward K. Ream
On Tue, Jul 10, 2012 at 4:00 AM, Chema Cortes wrote: > I have some external files encoded with utf8 and utf16-le with BOM > marks. Leo ignores these marks, become these files garbled. I cannot > fix this problem with @enconding directives. > > Reading the code, I can see the problem when leo open

Re: execute script with parameters?

2013-05-01 Thread Kent Tenney
On Tue, Apr 30, 2013 at 5:35 PM, Edward K. Ream wrote: > On Sat, Nov 17, 2012 at 12:53 AM, Matt Wilkie wrote: >> >> >> I'm working on a python command line script and am spening a lot of time >> swtiching back and forth between a console window and Leo. Is there a way to >> pass parameters to a n

Re: I can't make Leo-Editor start in a full-screen window under openSUSU 12.1

2013-05-01 Thread Edward K. Ream
On Sat, Apr 28, 2012 at 11:24 AM, SegundoBob wrote: > Thanks for the suggestion. But doing a save does not help with my > problem. I was already aware that some parameters are only remembered when > a save is done--and this is a minor annoyance. Wouldn't it be better, more > consistent, and mo

Re: execute script with parameters?

2013-05-01 Thread Jacob Peck
On 5/1/2013 9:19 AM, Kent Tenney wrote: I often find myself wanting to run os stuff from Leo, when I do, subprocess ends up consuming too much time. Since I've found 'sh' https://pypi.python.org/pypi/sh/1.08 I haven't looked back, so far it has always just done what I want. I know you are loath

Re: border crossing heads up...

2013-05-01 Thread Terry Brown
On Wed, 1 May 2013 03:11:10 -0500 "Edward K. Ream" wrote: > In this case, I don't understand the @ stuff. I assume it's some > macro-like thing you added. Right? I don't think it's part of qt > stylesheets. Correct, the stylesheet is parsed for constructs like @identifier = something or

Re: border crossing heads up...

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 8:28 AM, Terry Brown wrote: > > I don't care much what you do, so long as focus borders work. If you can > > get rid of all the w.setStyleSheet calls, so much the better. > > > > Just let us know when you push what you have. > > At the moment your original border highligh

Re: execute script with parameters?

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 8:19 AM, Kent Tenney wrote: > I often find myself wanting to run os stuff from Leo, when I do, subprocess > ends up consuming too much time. Since I've found 'sh' > https://pypi.python.org/pypi/sh/1.08 > > I haven't looked back, so far it has always just done what I want.

Re: Leo does not display all content of a node ...

2013-05-01 Thread Terry Brown
On Wed, 1 May 2013 03:23:46 -0500 "Edward K. Ream" wrote: > > Today (the outline's changed) it's not doing that, but I still > > notice the difference between inserting and immediately deleting a node > > (scroll position in A restored incorrectly), vs. inserting a node, > > selecting its body, a

Re: Background Images in body pane?

2013-05-01 Thread Terry Brown
On Wed, 1 May 2013 04:19:52 -0500 "Edward K. Ream" wrote: > On Fri, Jul 13, 2012 at 3:57 PM, tfer wrote: > > > I was wondering if the Qt widget used for body text has a provision for > > background images? > > > > Sorry for the delay in responding. Leo's body pane is a QTextBrowser: > http://

Re: Background Images in body pane?

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 8:42 AM, Terry Brown wrote: > > > QTextEdit#richTextEdit { background-image: > url('/home/tbrown/Desktop/cow2.jpg'); } > > in the stylesheet gives the effect attached (i.e. it works). > > If you wanted node specific backgrounds Leo would have to start setting > an attribute

Re: Leo does not display all content of a node ...

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 8:36 AM, Terry Brown wrote: > > > Although I still see the above behavior in my personal set up, I can't > reproduce in vanilla Leo. I'll post a bug if I get something > reproducible. > Thanks. I've just created a to-do item to reopen the old bug. Yesterday I read an em

Re: Centralizing focus handling (to make debugging easier)

2013-05-01 Thread Edward K. Ream
On Sun, Dec 23, 2012 at 2:30 PM, Ville M. Vainio wrote: > I am having some problems wrapping my head around how focus behaves > throughout leo. > > IMO it would be a good idea to have only one place in Leo where focus is > explicitly set. E.g. g.setFocus(widget). This implementetation would > suf

Re: Coming soon: epydoc api's for Leo

2013-05-01 Thread Edward K. Ream
On Sat, May 26, 2012 at 6:59 AM, Edward K. Ream wrote: > At least a year ago Kent suggested using epydoc, > http://epydoc.sourceforge.net/, > to generate one form of Leo's documentation. It looks good to me. > I'll put a link on Leo's home page to the generated docs when they are > ready. > I'm

Re: Open With ... how should it work?

2013-05-01 Thread Edward K. Ream
On Tue, May 29, 2012 at 11:00 AM, mdb wrote: My apologies for not answering this question. It's been almost a year. Under the File menu item I see 'Open With ... >' and then a selection for > IDLE > > But when I select this, I do not understand what should happen. The Open With menu items are

Re: Bat file launchers for nightly builds

2013-05-01 Thread Edward K. Ream
On Fri, Dec 14, 2012 at 1:59 AM, Matt Wilkie wrote: > > > Inspired by the recent problem Nils reported with the 4.10 final > installer, I've built a batch file to make running the development > snapshots a little easier, attached. I'm going to file this under Leo/Install for now. This will giv

Desired outcomes for Leo

2013-05-01 Thread Edward K. Ream
I'm still reading Getting Things Done, but it's becoming clear that there are just a few desired outcomes to be accomplished before the next release of Leo: 1. Newbies can install Leo easily. 2. Newbies can learn Leo's main features easily. 3. *Good* documentation exists for all important plugin

Rev 5755 adds sh.py to leo/extensions

2013-05-01 Thread Edward K. Ream
There was some interest in making this a part of the Leo distro, even if it isn't presently used by Leo's core. Extensions is a convenient place: code can use g.importExtension to import it. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" grou

Re: Cannot open Leo files by double-click in Windows Explorer?

2013-05-01 Thread Edward K. Ream
On Thu, Apr 19, 2012 at 3:50 AM, Eoin wrote: > I got the association working on Windows 7 using: > >ftype LeoFile="C:\Python322\pythonw.exe" "C:\Program Files > (x86)\Leo-4.9-final\launchLeo.py" "%1" > >assoc .leo=LeoFile > >regsvr32 /i shell32.dll > Thanks for this report. I've filed it under

Re: Really @edit can expand nodes?

2013-05-01 Thread Edward K. Ream
On Thu, Jul 5, 2012 at 6:21 PM, Chema Cortes wrote: > I was testing the @edit directive. I understand how it works and check > that Leo does not allow adding new child nodes to an @edit node. Then, > why does the documentation says that can expand sections, @other y > @all on writing? Is that pos

Re: OMG: @nosent should put headlines as comments

2013-05-01 Thread Edward K. Ream
On Sat, Dec 15, 2012 at 11:05 AM, Ville M. Vainio wrote: > I use @nosent for non-code text mostly, and it's not clear what "comment" > should mean in that context. > > I for sure would like this kind of feature, but sometimes I'd like to have > the headlines written as reST style headlines (underl

Re: distributed collaboration tool

2013-05-01 Thread Edward K. Ream
On Wed, Aug 15, 2012 at 2:07 PM, Miles Fidelman wrote: > Hi Folks, > > A big Leo fan pointed me at Leo, and this group - indicated that sharing > Leo documents has been talked about over the years, but not really > implemented, and suggested that I post some details about a project that > I've bee

Re: RST3 Tables & @rst-no-head

2013-05-01 Thread Edward K. Ream
On Fri, Feb 8, 2013 at 5:29 AM, Craig Johnson wrote: > Hi All, > > I hope that the post takes this time. > > I'm trying to use rst tables by using the table markup in the body text, > with one node per table row. However it seems that the nodes are being > preceded with a line-feed even-though @

Re: Outline to executable?

2013-05-01 Thread Edward K. Ream
On Wed, Sep 26, 2012 at 9:26 AM, Steve Litt wrote: Edward, I am sooo tired of all the hassle I need to go through to > build an app with a GUI user interface. Qt, Gtk, PythonTk, Java+Swing, > Rails, even Lazarus -- they're all such a clunky procedure for > something that *could* be so simple.

Re: active_path issue

2013-05-01 Thread Edward K. Ream
On Tue, Oct 9, 2012 at 2:31 PM, Terry Brown wrote: > On Fri, 5 Oct 2012 16:01:33 -0500 > Kent Tenney wrote: > > > 'Load Recursive' does nothing. > > Noted - will try and take a look soon. > Not that it's my business, but whatever happened to this? Does it need a bug report? Edward -- You re

Re: active_path issue

2013-05-01 Thread Terry Brown
On Wed, 1 May 2013 11:34:30 -0500 "Edward K. Ream" wrote: > On Tue, Oct 9, 2012 at 2:31 PM, Terry Brown wrote: > > > On Fri, 5 Oct 2012 16:01:33 -0500 > > Kent Tenney wrote: > > > > > 'Load Recursive' does nothing. > > > > Noted - will try and take a look soon. > > > > Not that it's my busine

Templates with macro expansions

2013-05-01 Thread Jacob Peck
Hello all, I implemented something in a Leo outline yesterday, but I feel my code is absolutely atrocious. One of the ways I use Leo is as an information management/database for when I'm running tabletop RPGs. Such games involve a fair amount of similarly structure data. I set out to make

Re: Templates with macro expansions

2013-05-01 Thread Terry Brown
On Wed, 01 May 2013 13:07:26 -0400 Jacob Peck wrote: > similarly structure data. I set out to make a way of defining a > template, and providing macro expansions within the template, so that > the user could click a script button, be prompted for data, and be > rewarded with a fully-populated

Re: distributed collaboration tool

2013-05-01 Thread Kent Tenney
On Wed, May 1, 2013 at 10:40 AM, Edward K. Ream wrote: > On Wed, Aug 15, 2012 at 2:07 PM, Miles Fidelman > wrote: >> >> Hi Folks, >> >> A big Leo fan pointed me at Leo, and this group - indicated that sharing >> Leo documents has been talked about over the years, but not really >> implemented, an

Re: execute script with parameters?

2013-05-01 Thread Matt Wilkie
>I often find myself wanting to run os stuff from Leo, when I do, subprocess ends up consuming too much time. Since I've found 'sh' https://pypi.python.org/pypi/sh/1.08 > >I haven't looked back, so far it has always just done what I want. {first} really excited! {later} Awww nuts,* "ImportError:

Re: execute script with parameters?

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 1:42 PM, Matt Wilkie wrote: > > Awww nuts,* "ImportError: sh 1.08 is currently only supported on linux > and osx. please install pbs 0.110 (http://pypi.python .org/pypi/pbs) for > windows support." * > There are only two choices, imo. Leave sh.py in leo\extensions for Lin

Re: distributed collaboration tool

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 12:28 PM, Kent Tenney wrote: > My apologies for not responding sooner. That was really unfortunate. In my > > experience, the best way to ruin good ideas is to ignore them :-( > > OTOH, ideas which are really good and/or have a committed champion will > keep > coming bac

Re: Templates with macro expansions

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 12:20 PM, Terry Brown wrote: Haven't looked at it hard enough to evaluate code, but it doesn't seem > too excessive for what it does. I agree. Code can usually be improved. Your interesting ideas are what are important. Once again, we have a problem: how to make this cod

Re: active_path issue

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 11:48 AM, Terry Brown wrote: > > Not that it's my business, but whatever happened to this? Does it need a > > bug report? > > It's still on my to do list. I looked at it recently I think, but > apparently without resolving it. > Thanks for the update. I'll leave it in y

Re: putting a label for a section in Sphinx

2013-05-01 Thread Edward K. Ream
On Sun, Oct 7, 2012 at 1:50 AM, Joon Ro wrote: > Actually, I think this functionality ( > http://sphinx.pocoo.org/markup/inline.html#ref-role) is needed because > sometimes I want to link to a section which is in different file. > > It would be great if there is an heading option which I could g

Re: "Go anywhere" from sublime text

2013-05-01 Thread Edward K. Ream
On Tue, Nov 6, 2012 at 3:33 PM, Ville M. Vainio wrote: > I believe Leo could benefit from having the "go anywhere" feaure from > sublime text. It's activated by ctrl+p, after which you just start typing. What's the status of this project? Edward -- You received this message because you are s

Re: go-anywhere a'la sublime text: first light

2013-05-01 Thread Edward K. Ream
On Tue, Nov 20, 2012 at 3:43 PM, Ville M. Vainio wrote: > Trunk now has alt-x go-anywhere command handy Ah. This answers the question I just asked. I'll put this on the list of things to document. Edward -- You received this message because you are subscribed to the Google Groups "leo-edi

Re: Parameterized template nodes

2013-05-01 Thread Edward K. Ream
On Wed, Nov 21, 2012 at 8:55 AM, João Alexandre Toledo < jalexandretol...@gmail.com> wrote: > > As I use Leo to write PL/SQL code, I need to write similar text several > times, changing only small parts of it. It would be great if I could create > a node with the "template" and then clone it every

Re: importing a medium sized java project ~ 400 files

2013-05-01 Thread Edward K. Ream
On Thu, Nov 29, 2012 at 4:08 PM, Todd Greenwood-Geer < t.greenwoodg...@gmail.com> wrote: > > I'm currently wrapping up a project with about 400 java files and a > handful of html/bash/python. As a test, I tried importing this project into > leo, as follows: > [snip] > At this point, I have a few

Re: Issue 1 with build 5752

2013-05-01 Thread Viktor Ransmayr
Hello Edward, Am Montag, 29. April 2013 21:13:20 UTC+2 schrieb Viktor Ransmayr: > > Hello Edward, > > Am Montag, 29. April 2013 11:46:05 UTC+2 schrieb Edward K. Ream: >> >> On Sat, Apr 27, 2013 at 5:16 AM, Viktor Ransmayr wrote: >> >> Based on your current understanding: Should the '@rst' command

Re: Issue 1 with build 5752

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 2:29 PM, Viktor Ransmayr wrote: > > The funny part is that I see neither. - What happens in my case is that >> Leo changes from 3 to 4 tiles. >> > [snip] > I have now found a reliable way to create the HTML documentation from my >> log-outline. >> >> From my POV it indicate

Re: importing javascript

2013-05-01 Thread Edward K. Ream
On Sat, Dec 1, 2012 at 9:42 AM, Todd Greenwood-Geer < t.greenwoodg...@gmail.com> wrote: > I have a project that I've imported. Upon read @auto nodes (or whenever I > open this project in leo), I get the following error dialog: > > http://imgur.com/2oGfB > > On import, I get quite a few errors in t

Re: Autosaving when external file saved

2013-05-01 Thread Edward K. Ream
On Tue, Dec 11, 2012 at 5:55 AM, Ville M. Vainio wrote: > """ > My present plan is to write a helper, say c.write_vnode, that will > discover the external file (if any) containing the vnode, and immediately > write that external file *without* a prompt. If there is no external file, > c.write_vn

Re: @wrap now suppresses horizontal scrolling

2013-05-01 Thread Edward K. Ream
On Tue, Dec 11, 2012 at 7:53 AM, redla wrote: > > There is one problem which is (IMHO) caused by this change: I have @wrap > active and see my "plain" text wrapped properly. But if there is any "long > enough" URL on the page (i.e. longer than the screen width), this is not > wrapped (as there is

Re: Gauging interest: markdown processing addition to viewrendered?

2013-05-01 Thread Edward K. Ream
On Thu, Feb 7, 2013 at 1:45 PM, Jacob Peck wrote: > I've coded it up. > > While I was at it, I added colorizer and comment support for .md files as > best as I understood. > > If someone wants to examine my code for possible inclusion in trunk2, it's > on launchpad: > > lp:~gatesphere/**leo-edit

Re: Gauging interest: markdown processing addition to viewrendered?

2013-05-01 Thread Jacob Peck
On 5/1/2013 3:57 PM, Edward K. Ream wrote: Hi Jake. What's the present status of this code? Edward The mentioned branch is up, but I haven't merged anything from trunk since rev 5644... If I remember correctly, you were playing around with viewrendered after that, and I haven't had the tim

Re: distributed collaboration tool

2013-05-01 Thread Kent Tenney
On Wed, May 1, 2013 at 2:00 PM, Edward K. Ream wrote: > On Wed, May 1, 2013 at 12:28 PM, Kent Tenney wrote: > >> My apologies for not responding sooner. That was really unfortunate. In >> my >> >> > experience, the best way to ruin good ideas is to ignore them :-( >> >> OTOH, ideas which are re

Re: How do I create a Leo Blog entry?

2013-05-01 Thread tfer
Invite me in if you would, tfer on github as here. Tom On Tuesday, April 30, 2013 6:23:59 PM UTC-4, Ville M. Vainio wrote: > > Yes, you need to sign up with github: https://github.com/signup/free > > After that, we can invite you to leo-blog project and it'll be a similar > story to committing s

Re: How do I create a Leo Blog entry?

2013-05-01 Thread Jacob Peck
On 5/1/2013 4:18 PM, tfer wrote: Invite me in if you would, tfer on github as here. Tom On Tuesday, April 30, 2013 6:23:59 PM UTC-4, Ville M. Vainio wrote: Yes, you need to sign up with github: https://github.com/signup/free After that, we can invi

Group's top sticky

2013-05-01 Thread tfer
I see on other groups, (e.g. Anki Users, AngularJS, Plover), that it is possible to have a welcome message, (with links), with a google group now, should we have one? Tom -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this

Re: towards a file rename button/command/thing

2013-05-01 Thread Edward K. Ream
On Mon, Feb 11, 2013 at 12:44 PM, Matt Wilkie wrote: > > I thought I'd try my hand at writing a leo button/command/thing to rename > an external file to match the current node headline. I'm stuck at getting > the previous headline contents. How does one get to the undo history? (and > am I even

Best way to synchronize/update myLeoSettings.leo and leoSettings.leo ?

2013-05-01 Thread wgw
For the moment, I use Meld to compare/update myLeoSettings.leo file. That seems a bit error-prone. Is there a better way? By update, I mean that, for example, in the bzr copy of LeoSettings.leo, the code_wise node says : True: use codewise completions. False: use leo-specific completions. This

Re: Templates with macro expansions

2013-05-01 Thread Fidel Pérez
Hey, as I said two days ago, Im new here, but I am preparing one Leo file which structures how we could make Leo super easy to learn, more interesting for a much wider public to use, and an extremely useful automation and learning tool. I want to structure that really well so its easy to underst

Re: Group's top sticky

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 3:22 PM, tfer wrote: > I see on other groups, (e.g. Anki Users, AngularJS, Plover), that it is > possible to have a welcome message, (with links), with a google group now, > should we have one? Done. Please suggest improvements. Edward -- You received this message bec

Re: Gauging interest: markdown processing addition to viewrendered?

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 3:02 PM, Jacob Peck wrote: > On 5/1/2013 3:57 PM, Edward K. Ream wrote: > >> >> >> Hi Jake. What's the present status of this code? >> >> Edward >> >> The mentioned branch is up, but I haven't merged anything from trunk > since rev 5644... If I remember correctly, you wer

Re: Best way to synchronize/update myLeoSettings.leo and leoSettings.leo ?

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 3:26 PM, wgw wrote: > For the moment, I use Meld to compare/update myLeoSettings.leo file. That > seems a bit error-prone. Is there a better way? By update, I mean that, for > example, in the bzr copy of LeoSettings.leo, the code_wise node says : > > True: use codewise comp

Re: distributed collaboration tool

2013-05-01 Thread Edward K. Ream
On Wed, May 1, 2013 at 3:11 PM, Kent Tenney wrote: > > >>> My apologies for not responding sooner. That was really unfortunate. > In my experience, the best way to ruin good ideas is to ignore them :-( > > >> OTOH, ideas which are really good and/or have a committed champion will > keep coming

Re: RST3 Tables with Nodes as Rows

2013-05-01 Thread Edward K. Ream
On Fri, Feb 8, 2013 at 4:13 AM, Craig Johnson wrote: > > I've been creating rst tables using rst markup directly in the body text. > For field lists. As the same field apears in multiple programs, I would > like to use Leo's cloning to reproduce a table row in several locations in > the tree. T

Re: RST3 Tables with Nodes as Rows

2013-05-01 Thread Edward K. Ream
On Mon, Feb 11, 2013 at 1:06 PM, wgw wrote: > No fix (sorry), but can confirm the problem -- it should go in the bug > list. (I looked at the rst code, and fainted) Yeah, the code is hairy. I'm probably the only one that should touch leoRst.py. EKR -- You received this message because you a

Re: Desired outcomes for Leo

2013-05-01 Thread Edward K. Ream
On Wednesday, May 1, 2013 10:01:46 AM UTC-5, Edward K. Ream wrote: > > I'm still reading Getting Things Done, but it's becoming clear that there > are just a few desired outcomes to be accomplished before the next release > of Leo: > > 1. Newbies can install Leo easily. > 2. Newbies can learn L

Re: Templates with macro expansions

2013-05-01 Thread Fidel Pérez
Here is the list of ideas I couldn't explain better than with a Leo file. Im looking forward to your opinions, I will love to hear them (either positive or negative) I really think Leo would become a *mandatory* piece of software for absolutely anyone if it could do the suggested things. (Yes, ev

Re: Leo script to set .leo association (Windows)

2013-05-01 Thread Matt Wilkie
...and here's a version that actually works! (previous one just assigned python, and not leo, to the file type). {{{ http://www.leo-editor.org/2011/leo"; > Add Windows handler for .leo files @language python @tabwidth -4 '''Tell Windows how to handle .leo files, enables double clicking on

Re: Best way to synchronize/update myLeoSettings.leo and leoSettings.leo ?

2013-05-01 Thread wgw
Thanks for getting me on track: I realize now that I copied over to myLeoSettings much more than is necessary (though I'm not really sure how it got there -- it's been a long time!) Once I trim things down, it will be easy to manage. (I did know that myLeoSettings could be empty, but forgot i

Leo button to publish selected node as Gist

2013-05-01 Thread Matt Wilkie
wow. Leo, python, and Github are frickin amazing. This leo script, when used as a buttton, will publish the currently selected node to Github as a Gist. Requires the "requests" module. Run from leo from python.exe in order to see the console messages. Here's the result: https://gist.github.com/a

Re: Leo button to publish selected node as Gist

2013-05-01 Thread gatesphere
On 5/1/2013 8:41 PM, Matt Wilkie wrote: wow. Leo, python, and Github are frickin amazing. This leo script, when used as a buttton, will publish the currently selected node to Github as a Gist. Requires the "requests" module. Run from leo from python.exe in order to see the console messages.

Re: Leo button to publish selected node as Gist

2013-05-01 Thread Terry Brown
On Wed, 1 May 2013 17:41:28 -0700 Matt Wilkie wrote: > This leo script, when used as a buttton, will publish the currently > selected node to Github as a Gist. > > Requires the "requests" module. Run from leo from python.exe in order to > see the console messages. Very neat - what's requests do

Re: towards a file rename button/command/thing

2013-05-01 Thread Matt Wilkie
> So c.frame.tree.revertHeadline is initial contexts of the headline text. > This might be enough for you. > Thanks! {later} After some testing I think this is the wrong approach even though `c.frame.tree.revertHeadline` does actually work. Problems include *which* undo event does one want? and t

Re: Leo button to publish selected node as Gist

2013-05-01 Thread wgw
Great! This is like the sublime plugin: https://tutsplus.com/lesson/sexy-code-snippet-management-with-gists/ It would be great if leo branches could go there too I suppose it is do-able. At any rate, this looks like a great way to archive snippets and ideas. Thanks! Bill Le mercredi 1

Re: Best way to synchronize/update myLeoSettings.leo and leoSettings.leo ?

2013-05-01 Thread Matt Wilkie
Something in the "leoSettings >> myLeoSettings >> [current workbook]" cascade is a little wonky. There a few plugins and settings I've only been able to get working by having them in leoSettings instead of myLeoSettings. I've not filed a bug report yet as building a reproducible test case has been

reference for leo functions?

2013-05-01 Thread Matt Wilkie
Now that I'm starting to get into deeper water and create scripts which do more things, I'm finding it hard to progress. Where do I read up on all the functions which are listed when autocompleting? For example typing "c.cr[ctrl-space]" [1] lists interesting sounding things like "createLastChildNo

Re: reference for leo functions?

2013-05-01 Thread Matt Wilkie
eventually I find `def createLastChildNode (self,parent,headline,body):` in LeoCommands.py by grepping in the file system, but using that to construct the command in a body script still eludes me: {{{ c.createLastChildNode(self, parent, my_head, my_body_text) }}} {{{ exception executing script Na