rclick 'Edit with gvim' traceback

2012-03-02 Thread Kent Tenney
[ ktenney@lappy: ~/work ]$ Traceback (most recent call last): File /usr/fetching/leo-editor/leo/plugins/contextmenu.py, line 211, in editnode_rclick_cb c.openWith(data = ('subprocess.Popen', [editor], None)) TypeError: openWith() got an unexpected keyword argument 'data' Thanks, Kent --

Re: Define @command in settings file

2012-03-01 Thread Kent Tenney
' in the log pane What am I doing here? Thanks, Kent On Wed, Feb 29, 2012 at 5:51 PM, Edward K. Ream edream...@gmail.com wrote: On Wed, Feb 29, 2012 at 9:20 AM, Kent Tenney kten...@gmail.com wrote: just tried in ~/.leo/myLeoSettings.leo @commands  @command mycommand @settings  @commands

Re: Define @command in settings file

2012-03-01 Thread Kent Tenney
On Thu, Mar 1, 2012 at 10:18 AM, Edward K. Ream edream...@gmail.com wrote: On Thu, Mar 1, 2012 at 8:01 AM, Kent Tenney kten...@gmail.com wrote: However, when I open a leo file and type alt-x foo nothing. Right.  If you define a command with @command, then you type @ctab to see the list

Re: Define @command in settings file

2012-03-01 Thread Kent Tenney
On Thu, Mar 1, 2012 at 12:16 PM, Edward K. Ream edream...@gmail.com wrote: On Thu, Mar 1, 2012 at 11:16 AM, Kent Tenney kten...@gmail.com wrote: Good, then it will act the same as when the current file contains the command definition. That's what I was expecting. No wonder you are confused

Define @command in settings file

2012-02-29 Thread Kent Tenney
I want some @command defs automatically available. I thought putting them in myLeoSettings.leo would do that, but I'm having trouble. Is there a convention I'm missing when putting a @command node in ~/.leo/myLeoSettings.leo ? Am I wrong, and the @command node must exist in the file where it is

Re: Define @command in settings file

2012-02-29 Thread Kent Tenney
just tried in ~/.leo/myLeoSettings.leo @commands @command mycommand @settings @commands @command mycommand not working, but I'll investigate further later today. Thanks, Kent On Wed, Feb 29, 2012 at 8:06 AM, Edward K. Ream edream...@gmail.com wrote: On Wed, Feb 29, 2012 at 7:55 AM, Kent

Re: open-with starting to work: it's time to *really* fix it

2012-02-28 Thread Kent Tenney
The utility I use basically just specifies - interpreter (shell or an application) - code (node contents, either a command line or script) - where stdout and stderr go This has been adequate for me. On Tue, Feb 28, 2012 at 9:03 AM, Edward K. Ream edream...@gmail.com wrote: Revs 5037/8 contain

Traceback 5016

2012-02-25 Thread Kent Tenney
Leo Log Window Leo 4.9.1 devel, build 5016, 2012-02-25 18:01:01 Python 2.7.2, qt version 4.7.3 linux2 When running my 'session' script which opens a list of leo files:: exception executing script Traceback (most recent call last): Traceback (most recent call last): File

Re: Caution: the big switch to the new_config world is coming today

2012-02-24 Thread Kent Tenney
I don't know bzr beyond pulling, but I would expect that tags can allow reverting to a safe version if the trunk is no allowing me to work ... ? Thanks, Kent On Fri, Feb 24, 2012 at 6:32 AM, Edward K. Ream edream...@gmail.com wrote: The g.new_config switch controls how Leo loads files and

Re: Getting value from Bret Victor's video

2012-02-22 Thread Kent Tenney
On Wed, Feb 22, 2012 at 7:39 AM, Edward K. Ream edream...@gmail.com wrote: On Feb 22, 7:16 am, Edward K. Ream edream...@gmail.com wrote: I forgot to ask for your comments about the entire post.  I would welcome any ideas you might have for how to build more interactivity into Leo. I'd guess

Re: Recommended video

2012-02-21 Thread Kent Tenney
...@gmail.com wrote: On Feb 20, 2:29 pm, Kent Tenney kten...@gmail.com wrote: http://flowingdata.com/2012/02/20/live-coding-and-inventing-on-princi... I found this quite amazing, a glimpse at the future of programming environments, and a lovely description of a good way to live. Many thanks

Re: Recommended video

2012-02-21 Thread Kent Tenney
On Tue, Feb 21, 2012 at 9:19 AM, Edward K. Ream edream...@gmail.com wrote: On Feb 21, 8:47 am, Kent Tenney kten...@gmail.com wrote: It's hard to watch and not be consumed by envy of his tools. So the challenge is scaling that desire down to my capabilities. Haha. So, can I create a task

Re: Learning javascript

2012-02-21 Thread Kent Tenney
On Tue, Feb 21, 2012 at 10:56 AM, Edward K. Ream edream...@gmail.com wrote: On Feb 21, 10:51 am, Kent Tenney kten...@gmail.com wrote: MooTools vidhttp://www.youtube.com/watchv=6nOVQDMOvvE This is old, very web-centric Crockford: Javascript the good partshttp://www.youtube.com/watch?v

Re: About rev 4993

2012-02-20 Thread Kent Tenney
My 'session' code opens Leo files listed in a node body. How should the following be changed? Thanks, Kent exception executing script Traceback (most recent call last): File /usr/fetching/leo-editor/leo/core/leoCommands.py, line 2340, in executeScript execfile(scriptFile,d) File

Re: About rev 4993

2012-02-20 Thread Kent Tenney
Nice. On Mon, Feb 20, 2012 at 9:53 AM, Edward K. Ream edream...@gmail.com wrote: On Mon, Feb 20, 2012 at 8:49 AM, Kent Tenney kten...@gmail.com wrote: My 'session' code opens Leo files listed in a node body. How should the following be changed? TypeError: 'Commands' object is not iterable

Re: NEW: find-quick-timeline

2012-02-20 Thread Kent Tenney
Really nice. If all commands which put things in the nav pane were named nav_xxx: that, and tab completion would obviate memorization ... On Mon, Feb 20, 2012 at 12:42 PM, Terry Brown terry_n_br...@yahoo.com wrote: There are some Alt-X commands which put interesting lists of things into the

Re: NEW: find-quick-timeline

2012-02-20 Thread Kent Tenney
On Mon, Feb 20, 2012 at 2:12 PM, Terry Brown terry_n_br...@yahoo.com wrote: On Mon, 20 Feb 2012 13:47:39 -0600 Kent Tenney kten...@gmail.com wrote: If all commands which put things in the nav pane were named nav_xxx: that, and tab completion would obviate memorization ... It's fine with me

Recommended video

2012-02-20 Thread Kent Tenney
http://flowingdata.com/2012/02/20/live-coding-and-inventing-on-principle/ I found this quite amazing, a glimpse at the future of programming environments, and a lovely description of a good way to live. Bret Victor The guy has some cred: a _tiny_ fraction of his CV: Apple. I designed the

Re: magic refactor button

2012-02-15 Thread Kent Tenney
Cool. I'm changing the name to @adhoc Strikes me as 'macro' capability. With almost no overhead, define a filter for selected text, and persist it visually, no need for remembering! I'll put it into myLeoSettings.leo Thanks, Kent On Tue, Feb 14, 2012 at 8:34 PM, Terry Brown

Re: Leo's new configuration scheme

2012-02-14 Thread Kent Tenney
I have no idea if this is relevant, but in looking over @settings recently, I remembered the issue with plugins wherein it was difficult (impossible?) to de-activate a plugin appearing in leoConfig/leoSettings.leo.@enabled-plugins Was that ever resolved? If not maybe instead of bare names in

Re: Leo's startup code must be simplified

2012-02-10 Thread Kent Tenney
On Fri, Feb 10, 2012 at 9:13 AM, Edward K. Ream edream...@gmail.com wrote: On Thu, Feb 9, 2012 at 11:42 AM, Kent Tenney kten...@gmail.com wrote: Reacting according to _my_ Leo world view. I suspect that if you approve of a new settings scheme everyone else will too. I assume the existence

Re: Leo's startup code must be simplified

2012-02-10 Thread Kent Tenney
might it be feasible for myLeoSettings.leo to say: @include \ /path/to/settingsfile and the subtrees of @settings nodes in settingsfile would be slurped in? On Fri, Feb 10, 2012 at 4:14 PM, Edward K. Ream edream...@gmail.com wrote: On Feb 10, 3:39 pm, Edward K. Ream edream...@gmail.com

Re: Leo's startup code must be simplified

2012-02-09 Thread Kent Tenney
On Thu, Feb 9, 2012 at 11:06 AM, Edward K. Ream edream...@gmail.com wrote: On Feb 9, 7:39 am, Edward K. Ream edream...@gmail.com wrote: Leo's startup code is extremely complex.  It is becoming urgent to simplify it. There is a buglet involving the computation of the location of

Re: cursor keys self-inserting

2012-02-03 Thread Kent Tenney
So far, so good. On Fri, Feb 3, 2012 at 6:10 AM, Edward K. Ream edream...@gmail.com wrote: On Thu, Feb 2, 2012 at 6:31 PM, Edward K. Ream edream...@gmail.com wrote: Haven't built Qt for Python 3.x yet, but I should be able to fix the Python 2.x problems soon. Rev 4970 appears to work

Crash on startup with 4964

2012-02-01 Thread Kent Tenney
FYI One Leo file opens ok, all others I've tried fail to open with: File /usr/fetching/leo-editor/launchLeo.py, line 8, in module leo.core.runLeo.run() File /usr/fetching/leo-editor/leo/core/runLeo.py, line 112, in run files,options = doPrePluginsInit(fileName,pymacs) File

Startup crash regression

2012-02-01 Thread Kent Tenney
Working backwards, r4960 is ok 4961: [ ktenney@lappy: ~/work ]$ Traceback (most recent call last): File /usr/fetching/leo-editor/launchLeo.py, line 8, in module leo.core.runLeo.run() File /usr/fetching/leo-editor/leo/core/runLeo.py, line 124, in run ok =

More key regression stuff

2012-02-01 Thread Kent Tenney
I previously reported on an issue opening files. As I started working on the files, I found I didn't have basic bindings: ctl-r ctl-i alt-x I reverted one rev at a time, they reappeared at r4951 -- You received this message because you are subscribed to the Google Groups leo-editor group. To

Re: Startup crash regression

2012-02-01 Thread Kent Tenney
4968 is behaving nicely. On Wed, Feb 1, 2012 at 10:36 AM, Edward K. Ream edream...@gmail.com wrote: On Wed, Feb 1, 2012 at 10:04 AM, Kent Tenney kten...@gmail.com wrote: Working backwards, r4960 is ok 4961:  File /usr/fetching/leo-editor/leo/core/leoEditCommands.py, line 1504

Re: cursor keys self-inserting

2012-02-01 Thread Kent Tenney
with 4969 I seem to have lost bindings, no ctl-s, alt-x ... menu-save didn't work, closed the file to save On Wed, Feb 1, 2012 at 4:43 PM, Edward K. Ream edream...@gmail.com wrote: On Wed, Feb 1, 2012 at 3:31 PM, Terry Brown terry_n_br...@yahoo.com wrote: 4968 does not seem to be doing it any

Re: free_layout should store in leo file

2012-01-19 Thread Kent Tenney
On Thu, Jan 19, 2012 at 10:17 AM, Terry Brown terry_n_br...@yahoo.com wrote: On Thu, 19 Jan 2012 03:19:18 -0800 (PST) Josef joe...@gmx.net wrote: I just tried to modify a layout with free_layout, then renamed the .leo file, and the configuration was gone. Renaming back to the old name

Re: @auto refresh from disk error

2012-01-18 Thread Kent Tenney
wrote: On Tue, Jan 17, 2012 at 3:37 PM, Kent Tenney kten...@gmail.com wrote: rclick and Refresh from disk on a python @auto file readOneAtAutoNode    at.rememberReadPath(fileName,p) NameError: global name 'at' is not defined The fix is on the trunk at rev 4933. I'm debating what to do

@auto refresh from disk error

2012-01-17 Thread Kent Tenney
rclick and Refresh from disk on a python @auto file Traceback (most recent call last): File /usr/fetching/leo-editor/leo/plugins/contextmenu.py, line 188, in refresh_rclick_cb c.readAtAutoNodes() File /usr/fetching/leo-editor/leo/core/leoCommands.py, line 1906, in readAtAutoNodes

Re: ...has been modified outside of Leo. Overwrite this file?

2012-01-09 Thread Kent Tenney
On Mon, Jan 9, 2012 at 12:29 PM, Edward K. Ream edream...@gmail.com wrote: On Mon, Jan 9, 2012 at 9:15 AM, Terry Brown terry_n_br...@yahoo.com wrote: Steps to reproduce: Excellent.  I'll fix this today or tonight. The various flavors of @file nodes are maddeningly similar, yet each

Re: ...has been modified outside of Leo. Overwrite this file?

2012-01-09 Thread Kent Tenney
On Mon, Jan 9, 2012 at 3:47 PM, Edward K. Ream edream...@gmail.com wrote: On Mon, Jan 9, 2012 at 3:09 PM, Kent Tenney kten...@gmail.com wrote: I see it with @auto. Did your email cross in the ether?  I don't see the problem with rev 4919. Sorry for the noise, 4919 looks good. Edward

Re: A new db-oriented vision for Leo?

2011-12-26 Thread Kent Tenney
The entry point I envision is this: The gui shows 3 buttons: =, ||, = If the node which currently has focus, only the double bars are active, clicking that button puts the current node in the repository. if the node is edited, the double bar and the left arrow become active: clicking = reverts

Re: A new db-oriented vision for Leo?

2011-12-24 Thread Kent Tenney
seth.p.john...@gmail.com wrote: On Thu, Dec 22, 2011 at 3:30 PM, Kent Tenney kten...@gmail.com wrote: On Thu, Dec 22, 2011 at 1:16 PM, Seth Johnson seth.p.john...@gmail.com wrote: Okay, I think I have a sense of where you're situated.  What do those 5 key components of the address represent

Re: A new db-oriented vision for Leo?

2011-12-22 Thread Kent Tenney
can be seen in p.key() key: 150749356:0.151500012:5.151500300:0.151500492:0.151500844:1 On Wed, Dec 21, 2011 at 10:29 PM, Seth Johnson seth.p.john...@gmail.com wrote: On Wed, Dec 21, 2011 at 10:28 PM, Kent Tenney kten...@gmail.com wrote: On Wed, Dec 21, 2011 at 6:36 PM, Seth Johnson seth.p.john

Re: A new db-oriented vision for Leo?

2011-12-22 Thread Kent Tenney
. Seth On Thu, Dec 22, 2011 at 1:54 PM, Kent Tenney kten...@gmail.com wrote: OK, we're talking apples and oranges here. My approach is pretty simple-minded, aimed at versioning nodes, your schema is much richer, over my head. I just want a snapshot which saves node state to a dict / json object

Re: A new db-oriented vision for Leo?

2011-12-21 Thread Kent Tenney
On Wed, Dec 21, 2011 at 6:36 PM, Seth Johnson seth.p.john...@gmail.com wrote: On Tue, Dec 20, 2011 at 2:31 PM, Seth Johnson seth.p.john...@gmail.com wrote: On Tue, Dec 20, 2011 at 1:39 PM, Kent Tenney kten...@gmail.com wrote: It sounds like the moral equivalent of a linked list

Re: A new db-oriented vision for Leo?

2011-12-20 Thread Kent Tenney
In my architecture, nodes point up to their parents. How do you maintain sibling order? I've been settling on node addresses in metadata, it's a list of child indexes. It provides each node with a self contained description of where it lives, which I like. I haven't come across a more succinct

Re: A new db-oriented vision for Leo?

2011-12-20 Thread Kent Tenney
On Tue, Dec 20, 2011 at 12:24 PM, Seth Johnson seth.p.john...@gmail.com wrote: On Tue, Dec 20, 2011 at 12:58 PM, Kent Tenney kten...@gmail.com wrote: In my architecture, nodes point up to their parents. How do you maintain sibling order? I've been settling on node addresses in metadata

Re: Idea - SQL Leo

2011-12-16 Thread Kent Tenney
There's also been a suggestion of putting nodes in Fossil, which seems to offer the benefits of a db engine, plus versioning: all in one file. http://www.fossil-scm.org/index.html/doc/trunk/www/index.wiki On Fri, Dec 16, 2011 at 7:58 AM, mdb mdbol...@gmail.com wrote: I vote for allowing the

Re: leo-editor branch about to be deleted recreated: please *no* pushes until finished

2011-12-16 Thread Kent Tenney
Not knowing how to point to trunk2 instead of the old trunk, I deleted leo-editor/ so I could run $ bzr branch lp:leo-editor Now I'm seeing trunk2 On Fri, Dec 16, 2011 at 8:11 AM, Edward K. Ream edream...@gmail.com wrote: On Fri, Dec 16, 2011 at 9:08 AM, Edward K. Ream edream...@gmail.com

Re: @path glitch

2011-12-14 Thread Kent Tenney
On Wed, Dec 14, 2011 at 9:34 AM, Terry Brown terry_n_br...@yahoo.com wrote: On Tue, 13 Dec 2011 10:26:53 -0600 Kent Tenney kten...@gmail.com wrote: Howdy, (Terry) rclicking on @path /path/to/dir and choosing Path-Set node to absolute path recursive gives TypeError: cannot concatenate

@path glitch

2011-12-13 Thread Kent Tenney
Howdy, (Terry) rclicking on @path /path/to/dir and choosing Path-Set node to absolute path recursive gives Traceback (most recent call last): File /usr/fetching/leo-editor/leo/plugins/active_path.py, line 157, in f return cmd(c) File /usr/fetching/leo-editor/leo/plugins/active_path.py,

Question re: @command node vs. registerCommand()

2011-12-04 Thread Kent Tenney
I can define a command which takes args if I use a @command node # in file test-commands.py def tester(g, p): g.es(p.b) # in node @command tester \ from test-commands import tester tester(g, p) When I use registerCommand, I don't see how I can specify arguments. from test-commands

Re: leoInspect: remarkable collapse in complexity and attempted assessment

2011-11-29 Thread Kent Tenney
On Tue, Nov 29, 2011 at 9:37 AM, Edward K. Ream edream...@gmail.com wrote: On Tue, Nov 29, 2011 at 9:21 AM, Edward K. Ream edream...@gmail.com wrote: In short, the comments problem lies hidden in the background in the 2to3 sources.  I think I'll run some tests to see whether there might be

Re: Help requested re bug 893223: Unpredictable slow operation state cured by writing

2011-11-23 Thread Kent Tenney
On Wed, Nov 23, 2011 at 10:57 AM, Edward K. Ream edream...@gmail.com wrote: On Wed, Nov 23, 2011 at 10:32 AM, Terry Brown terry_n_br...@yahoo.com wrote: Ok - I guess I missed the bug's not reproducible.  Can the OP reproduce it?  Do we have the list of plugins active in the reporting

Re: Warning: key handling partially broken in the trunk

2011-11-21 Thread Kent Tenney
Not to worry, I can survive nicely without added editors. Thanks, Kent On Mon, Nov 21, 2011 at 12:15 PM, Edward K. Ream edream...@gmail.com wrote: On Sun, Nov 20, 2011 at 1:34 PM, Kent Tenney kten...@gmail.com wrote: try alt-x add-editor, type in new editor, very broken for me. Thanks

Re: Warning: key handling partially broken in the trunk

2011-11-20 Thread Kent Tenney
try alt-x add-editor, type in new editor, very broken for me. -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to

Re: Code for displaying a function call hierarchy in leo

2011-11-17 Thread Kent Tenney
Very cool! Makes me wish for a rclick on node option: Expand Subtree On Wed, Nov 16, 2011 at 9:19 PM, Brian Theado brian.the...@gmail.com wrote: The other day I stumbled across Ville's code in scripts.leo which displays the output of python's trace module in a leo outline.  The output of the

Re: How to re-assign a key binding

2011-11-17 Thread Kent Tenney
On Thu, Nov 17, 2011 at 4:07 PM, SegundoBob bhoss...@ieee.org wrote: On Nov 16, 12:50 pm, Kent Tenney kten...@gmail.com wrote: I thought this was discussed recently, but can't find the thread. Given this command defining node @command watch-write @key=Alt-w Is it possible to replace

Re: File 'Open' or 'Import File' command to follow @path directive

2011-11-16 Thread Kent Tenney
On Tue, Nov 15, 2011 at 9:31 PM, Largo84 larg...@gmail.com wrote: Suppose my focus node is under a @path directive, say @path E: \Documents\Some Folder\ Is there a setting that would cause the 'FileOpen' or 'FileImport File' commands to begin the search dialog in the directory, E:

Re: leoInspect: a hobby with a future?

2011-11-16 Thread Kent Tenney
Just the kind of stuff I like, looking forward to being able to try it without having to understand how it works :-] Probably off topic, but I'm reminded of my reaction to lots of testing tools, especially the coverage stuff which produces listings of execution paths. The intent of the listing is

Re: I forget, is there a view only @nodestyle ?

2011-11-14 Thread Kent Tenney
I'm going to implement this as a button/plugin, the the feature list I want keeps growing, so ... Nevermind. Thanks, Kent On Sun, Nov 13, 2011 at 12:09 PM, Kent Tenney kten...@gmail.com wrote: I think I've asked this many times, I'll really try to remember this time. I find myself more

I forget, is there a view only @nodestyle ?

2011-11-13 Thread Kent Tenney
I think I've asked this many times, I'll really try to remember this time. I find myself more and more often using Leo to _monitor_ files: nodes which _only_ load the current content of a file, have no concerns with ever writing to the file. Ideally it would react to saving the Leo file by

Re: Node date attributes

2011-11-10 Thread Kent Tenney
On Wed, Nov 9, 2011 at 10:42 PM, mdb mdbol...@gmail.com wrote: Thanks I did not know about gnx.  Your gnx2tuple( function makes it easy  to create a datetime object def gnx2datetime(gnx):    import datetime    (year, month, day, hour, minute, second) = gnx2tuple(gnx)    dx=

import glitch

2011-11-10 Thread Kent Tenney
I'm getting failed @auto imports with this traceback: reading: /home/ktenney/work/salt.leo reading: @auto pkg.py exception executing script Traceback (most recent call last): File /usr/fetching/leo-editor/leo/core/leoCommands.py, line 2180, in executeScript execfile(scriptFile,d) File

Re: import glitch

2011-11-10 Thread Kent Tenney
oops, r4767 On Thu, Nov 10, 2011 at 8:21 AM, Kent Tenney kten...@gmail.com wrote: I'm getting failed @auto imports with this traceback: reading: /home/ktenney/work/salt.leo reading: @auto pkg.py exception executing script Traceback (most recent call last):  File /usr/fetching/leo-editor

Re: import glitch

2011-11-10 Thread Kent Tenney
On Thu, Nov 10, 2011 at 10:08 AM, Edward K. Ream edream...@gmail.com wrote: On Thu, Nov 10, 2011 at 9:36 AM, Edward K. Ream edream...@gmail.com wrote: ValueError: too many values to unpack Sorry about that.  I'll fix immediately and add (or maybe enhance) a unit test. Thanks, the @auto

Re: BZR memory

2011-11-10 Thread Kent Tenney
On Thu, Nov 10, 2011 at 10:11 AM, Edward K. Ream edream...@gmail.com wrote: On Thu, Nov 10, 2011 at 6:49 AM, Ville M. Vainio vivai...@gmail.com wrote: Not ok with me. Destroy all your history sounds menacing, but it really means your commits get different id's, not that old commits

Re: BZR memory

2011-11-10 Thread Kent Tenney
On Thu, Nov 10, 2011 at 10:26 AM, Terry Brown terry_n_br...@yahoo.com wrote: On Thu, 10 Nov 2011 10:11:29 -0600 Edward K. Ream edream...@gmail.com wrote: On Thu, Nov 10, 2011 at 6:49 AM, Ville M. Vainio vivai...@gmail.com wrote: Not ok with me. Destroy all your history sounds menacing,

Re: import glitch

2011-11-10 Thread Kent Tenney
On Thu, Nov 10, 2011 at 10:37 AM, Edward K. Ream edream...@gmail.com wrote: On Thu, Nov 10, 2011 at 10:25 AM, Kent Tenney kten...@gmail.com wrote: The log shows the following for one file. The files are ones I don't have write permission on, I suspect the problem is related

Re: import glitch

2011-11-10 Thread Kent Tenney
On Thu, Nov 10, 2011 at 12:05 PM, Edward K. Ream edream...@gmail.com wrote: On Thu, Nov 10, 2011 at 11:03 AM, Kent Tenney kten...@gmail.com wrote: Did you get an actual indication of what lines did not match? No, I pasted verbatim from the log pane. Please send me the file, if you would

Re: Why can't Python print a dashed unicode string???

2011-11-10 Thread Kent Tenney
Just came across this, py 2 to 3 utilities, possibly germane. http://pypi.python.org/pypi/six/ On Tue, Nov 8, 2011 at 5:19 PM, Edward K. Ream edream...@gmail.com wrote: This is absolutely driving me nuts. Leo can handle unicode properly, but Python's own print statement can't. I've set

Re: unselect1 event question

2011-11-09 Thread Kent Tenney
I'm going to back-burner the live updating ideas and concentrate on running static analysis on Leo files, so no need to worry about this on my account. Thanks, Kent On Tue, Nov 8, 2011 at 3:12 PM, Kent Tenney kten...@gmail.com wrote: On Sun, Nov 6, 2011 at 3:35 PM, Edward K. Ream edream

Re: Node date attributes

2011-11-09 Thread Kent Tenney
the creation date of a node can be teased from the gnx I use the following functions: def gnx2tuple(gnx): return a tuple (year, month, day, hour, minute, second) result = gnx.split(.) # remove the user component who = result.pop(0) date = result.pop(0) #not all gnx's

Re: unselect1 event question

2011-11-08 Thread Kent Tenney
On Sun, Nov 6, 2011 at 3:42 PM, Edward K. Ream edream...@gmail.com wrote: On Nov 6, 3:35 pm, Edward K. Ream edream...@gmail.com wrote: *Important*: changing tabs or shifting focus from body to headline (or anywhere else) has nothing to do with selecting a node. I suppose activate/deactivate

Re: unselect1 event question

2011-11-08 Thread Kent Tenney
On Sun, Nov 6, 2011 at 3:35 PM, Edward K. Ream edream...@gmail.com wrote: On Nov 6, 2:20 pm, Kent Tenney kten...@gmail.com wrote: My expectation was for one call per each unselecting of a node. If it's possible to provide that behaviour, it would simplify writing code hooked to the event

Re: unselect1 event question

2011-11-06 Thread Kent Tenney
On Sun, Nov 6, 2011 at 10:04 AM, Edward K. Ream edream...@gmail.com wrote: On Fri, Nov 4, 2011 at 11:28 AM, Kent Tenney kten...@gmail.com wrote: I'm working on some node versioning ideas which involve hooking the unselect1 event. [big snip] Is this expected? I wouldn't say I have any

Re: unselect1 event question

2011-11-06 Thread Kent Tenney
On Sun, Nov 6, 2011 at 3:35 PM, Edward K. Ream edream...@gmail.com wrote: On Nov 6, 2:20 pm, Kent Tenney kten...@gmail.com wrote: My expectation was for one call per each unselecting of a node. If it's possible to provide that behaviour, it would simplify writing code hooked to the event

unselect1 event question

2011-11-04 Thread Kent Tenney
Howdy, I'm working on some node versioning ideas which involve hooking the unselect1 event. I came across this: if I register the following to unselect1 def on_unselect1(tag, keywords): p = keywords['old_p'] g.es(unselect %s % p.h, color=gray) I see the following - when a file is

font size in urls

2011-11-03 Thread Kent Tenney
Howdy, Leo is recognizing urls and rendering them in a large font, underlined. I prefer they be the same size as other text. I checked @setting @font url but it seems something else is making the change. Plugin? Thanks, Kent -- You received this message because you are subscribed to the

Re: font size in urls

2011-11-03 Thread Kent Tenney
On Thu, Nov 3, 2011 at 5:22 PM, Edward K. Ream edream...@gmail.com wrote: On Thu, Nov 3, 2011 at 4:13 PM, Kent Tenney kten...@gmail.com wrote: Leo is recognizing urls and rendering them in a large font, underlined. I prefer they be the same size as other text. For questions like this, do

Re: Two questions: quality, understanding

2011-10-31 Thread Kent Tenney
I'm pretty much a broken record here, I'll try not to be too repetitive. 1. How can I improve Leo's quality? This sounds like it targets the core issue: Are there any areas of core which can be simplified? Any reduction in complexity will ease testing requirements as well as the learning curve

Re: @auto and inline declarations

2011-10-28 Thread Kent Tenney
On Thu, Oct 27, 2011 at 7:48 PM, Edward K. Ream edream...@gmail.com wrote: On Thu, Oct 27, 2011 at 6:23 PM, Kent Tenney kten...@gmail.com wrote: Right, and Tim's point was that Unix thrived in great part because man pages provided a standard tool to address exploding capability

Re: @session fun

2011-10-28 Thread Kent Tenney
On Thu, Oct 27, 2011 at 7:51 PM, Edward K. Ream edream...@gmail.com wrote: On Thu, Oct 27, 2011 at 2:42 PM, Kent Tenney kten...@gmail.com wrote: I don't know if this code is of any use, it's working ok for me. Below is the code I'm calling from buttons. When I rclick on the session button, my

Re: feature request: 9P

2011-10-28 Thread Kent Tenney
On Fri, Oct 28, 2011 at 6:37 AM, ilkosta costantino.giuliod...@gmail.com wrote: I would like to propose a feature to leo: Integrate the leo tree with 9P. Using the window manager wmii, I realized the convenience of having a virtual file system that represents the structure of a running

Re: @session fun

2011-10-28 Thread Kent Tenney
On Fri, Oct 28, 2011 at 3:48 PM, SegundoBob bhoss...@ieee.org wrote: On Oct 27, 5:51 pm, Edward K. Ream edream...@gmail.com wrote: Thanks for this. Imo, these would make good commands. Anyone have any suggestions?  I'd like to make these into first-class comments soon. I assume you meant

Re: Red rectangle focus = bad with body pane

2011-10-27 Thread Kent Tenney
On Thu, Oct 27, 2011 at 8:09 AM, Edward K. Ream edream...@gmail.com wrote: On Thu, Oct 27, 2011 at 6:54 AM, Ville M. Vainio vivai...@gmail.com wrote: What do you think of this approach overall? Seems pretty elegant from where I'm looking. I agree. On this particular matter, I care more

Re: @session fun

2011-10-27 Thread Kent Tenney
I don't know if this code is of any use, it's working ok for me. Below is the code I'm calling from buttons. When I rclick on the session button, my choices are save, load, clear, refresh, snapshot-save, snapshot-load get_session: create a node describing the current state After the node is

Re: @auto and inline declarations

2011-10-27 Thread Kent Tenney
On Thu, Oct 27, 2011 at 2:55 PM, Edward K. Ream edream...@gmail.com wrote: On Thu, Oct 27, 2011 at 2:52 PM, Kent Tenney kten...@gmail.com wrote: It's starting to sink in, completion is the first line of help. Yes!  Also alt-xprint-tab  and alt-xapropos-tab. I was struck by Tim O'Reilly's

Re: leoSettings.leo about to change

2011-10-25 Thread Kent Tenney
On Tue, Oct 25, 2011 at 9:16 AM, Edward K. Ream edream...@gmail.com wrote: On Mon, Oct 24, 2011 at 9:14 AM, ne1uno eltro...@gmail.com wrote: is there any way extra options could be passed onto QApplication(sys.args)? it's possible if you would be consulting an @data stylesheet node to

Re: leoSettings.leo about to change

2011-10-25 Thread Kent Tenney
On Tue, Oct 25, 2011 at 10:07 AM, Edward K. Ream edream...@gmail.com wrote: On Tue, Oct 25, 2011 at 9:32 AM, Kent Tenney kten...@gmail.com wrote: This thread has been over my head Well, parts of it are over my head as well, as Terry surely must have guessed by now :-) However, I just tried

Re: Leo user space API

2011-10-22 Thread Kent Tenney
On Sat, Oct 22, 2011 at 3:59 PM, Edward K. Ream edream...@gmail.com wrote: On Sat, Oct 22, 2011 at 6:58 AM, Kent Tenney kten...@gmail.com wrote: I have turned on calltips and autocompletion, enter the following: c.app.config.getData( Oops, the c in this message was a typo. I was typing

Re: @session fun

2011-10-20 Thread Kent Tenney
On Thu, Oct 20, 2011 at 10:34 AM, Terry Brown terry_n_br...@yahoo.com wrote: On Thu, 20 Oct 2011 10:21:11 -0500 Edward K. Ream edream...@gmail.com wrote: However, I still wonder why you want to do this.  The following pattern seems much simpler::     (in .bat or script file)     leo

Re: Ratcheting: kaizen and unit tests

2011-10-20 Thread Kent Tenney
...@gmail.com wrote: On Oct 17, 2:41 pm, Kent Tenney kten...@gmail.com wrote: As I understand the discipline expected in the Zope community: When approaching a bug, begin by writing a test which fails due to the bug. Then fix the code such that the test succeeds. Patches which don't follow

Re: Save tabs button.

2011-10-19 Thread Kent Tenney
On Tue, Oct 18, 2011 at 7:36 AM, Edward K. Ream edream...@gmail.com wrote: On Sun, Oct 16, 2011 at 12:35 PM, SegundoBob bhoss...@ieee.org wrote: I think there is another problem that is probably unrelated to the Log Pane problems. I think openWithFileName() is not quite correct.  The symptom

Leo user space API

2011-10-17 Thread Kent Tenney
When I'm writing Leo scripts, I spend much time figuring out what function to use: for child related methods: for item in dir(c): if hild in item: g.es(item) Sometimes I can identify the right method to use by name, sometimes it takes trial and error. I'm forever doing this for dir(c)

Re: DingDing: put @commands in myLeoSettings.leo!

2011-10-17 Thread Kent Tenney
On Sun, Oct 16, 2011 at 6:41 PM, Edward K. Ream edream...@gmail.com wrote: On Oct 16, 7:50 am, Edward K. Ream edream...@gmail.com wrote: Last night I had a forehead-slapping moment: the place to put @button nodes is in myLeoSettings.leo. This morning, I realized that using @command rather

@session fun

2011-10-17 Thread Kent Tenney
Once again, ask and ye shall receive. Saving and restoring sessions sounded like a worthy, but challenging coding project, but for Leo, it's a yawner. the following two functions look like they'll be all I need, I'm sure they can be improved. Software sometimes feels manual, is visible.

Re: Breakthrough: identity-based links vs. content-based links

2011-10-17 Thread Kent Tenney
On Mon, Oct 17, 2011 at 12:12 PM, Edward K. Ream edream...@gmail.com wrote: On Mon, Oct 17, 2011 at 11:32 AM, Edward K. Ream wrote:    **Design content for searching** That is, searching by special-purpose Leo scripts. We aren't talking about Leo's search command here! Sounds kind of like

Re: Ratcheting: kaizen and unit tests

2011-10-17 Thread Kent Tenney
As I understand the discipline expected in the Zope community: When approaching a bug, begin by writing a test which fails due to the bug. Then fix the code such that the test succeeds. Patches which don't follow this convention are not considered. (code without tests is assumed buggy) On Mon,

Re: Save tabs button.

2011-10-15 Thread Kent Tenney
On Fri, Oct 14, 2011 at 4:06 PM, Terry Brown terry_n_br...@yahoo.com wrote: On Fri, 14 Oct 2011 13:52:48 -0700 (PDT) SegundoBob bhoss...@ieee.org wrote: Great idea.  I played with the save tabs button you suggest, and I noticed that the start up messages to the Log Pane get messed up. When I

Re: Leo on Mac OSX

2011-10-14 Thread Kent Tenney
On Fri, Oct 14, 2011 at 8:18 AM, Edward K. Ream edream...@gmail.com wrote: On Fri, Oct 14, 2011 at 3:24 AM, Ludwig Schwardt ludwig.schwa...@gmail.com wrote: I bear good tidings of great joy! Great news indeed. Kent, please note the first lines of http://mxcl.github.com/homebrew/ Hmm, I

Re: Help: all Leo's on Ubuntu are hosed

2011-10-14 Thread Kent Tenney
On Fri, Oct 14, 2011 at 8:37 AM, Edward K. Ream edream...@gmail.com wrote: On Thu, Oct 13, 2011 at 8:44 PM, Edward K. Ream edream...@gmail.com wrote: Well, I just installed 11.10, and once again wireless networking is not enabled.  Slightly different from 11.04 though, so maybe I'll mess

Re: Help: all Leo's on Ubuntu are hosed

2011-10-14 Thread Kent Tenney
On Fri, Oct 14, 2011 at 8:57 AM, Edward K. Ream edream...@gmail.com wrote: On Fri, Oct 14, 2011 at 8:47 AM, mdb mdbol...@gmail.com wrote: Ed.  Are you saying upgrading to ubuntu 11.10 is likely to create wireless problems and python version problems, and/or other problems ( SIP?).  I almost

Re: active_path rumination

2011-10-14 Thread Kent Tenney
I've got the following in @data active_path_ignore ^\.hg$ ^\.git$ ^\.bzr$ ^\.svn$ ^\.pyc$ \.swp$ But I'm still getting nodes like /.hg/ Also, Load recursive is doing nothing. Thanks, Kent On Sun, Nov 29, 2009 at 10:13 AM, Terry Brown terry_n_br...@yahoo.com wrote: On Sun, 29 Nov 2009 08:46:35

Re: Terry, did you write a docstring finder for plugins?

2011-10-14 Thread Kent Tenney
On Fri, Oct 14, 2011 at 10:30 AM, Kent Tenney kten...@gmail.com wrote: On Fri, Oct 14, 2011 at 9:48 AM, Edward K. Ream edream...@gmail.com wrote: Thought I had better ask, before writing one myself. Wouldn't it be great if we all could remember what we, and others, have already done

Re: Considering leo.leo

2011-10-14 Thread Kent Tenney
On Fri, Oct 14, 2011 at 11:07 AM, Edward K. Ream edream...@gmail.com wrote: Following up on Kent's prizel. We could create a Leo repository now. In another post I discussed this possibility:: - @file x.leo - @file y.leo etc. This morning I realized we could have the same thing, just by

<    1   2   3   4   5   6   7   8   9   10   >