Re: aeca2fc: @path is now valid in body text of @ nodes

2018-03-27 Thread Edward K. Ream
On Tuesday, March 27, 2018 at 3:15:51 PM UTC-5, Edward K. Ream wrote: > > > Next, the recursive import code will insert @path directives when it is > safe and useful to do so, namely for imported @clean nodes. > Done at e0ed35f. The "add_path" keyword arg to c.recursiveImport controls whether

Re: Constant width icon boxes are important

2018-03-27 Thread Edward K. Ream
On Tue, Mar 27, 2018 at 5:19 PM, Chris George wrote: > Done at fc2344a92. > > Fixed width icons are in ../leo/themes/fixed-width-icons > ​Thanks for this. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To

Re: Constant width icon boxes are important

2018-03-27 Thread Chris George
Done at fc2344a92. Fixed width icons are in ../leo/themes/fixed-width-icons Chris On Tue, Mar 27, 2018 at 8:15 AM, Edward K. Ream wrote: > > > On Tue, Mar 27, 2018 at 10:05 AM, Edward K. Ream > wrote: >> >> I finally understand why I have been having

Re: color icons

2018-03-27 Thread Terry Brown
On Tue, 27 Mar 2018 14:26:36 -0700 (PDT) jkn wrote: > On Tuesday, March 27, 2018 at 6:26:36 PM UTC+1, Terry Brown wrote: > > > > https://github.com/leo-editor/snippets/blob/master/examples/tests/make_icons.py > > > > > > make the simple icons attached. Intended for

Re: color icons

2018-03-27 Thread jkn
On Tuesday, March 27, 2018 at 6:26:36 PM UTC+1, Terry Brown wrote: > > > https://github.com/leo-editor/snippets/blob/master/examples/tests/make_icons.py > > > make the simple icons attached. Intended for dark rather than light > background. Might be useful for other automated icon

aeca2fc: @path is now valid in body text of @ nodes

2018-03-27 Thread Edward K. Ream
Previously, I have no idea why, @path directives were explicitly disallowed in the body text of @ nodes. But it's actually very useful to put them there, especially when studying code recursively imported. Why? Because nodes can be moved freely--they aren't constrained to be children of an

color icons

2018-03-27 Thread Terry Brown
https://github.com/leo-editor/snippets/blob/master/examples/tests/make_icons.py make the simple icons attached. Intended for dark rather than light background. Might be useful for other automated icon generation things, seeing it iterates the 16 states in the correct 00..15 order. Maybe it

Re: Edit text with a script in Leo

2018-03-27 Thread Edward K. Ream
On Tue, Mar 27, 2018 at 3:34 AM, Jeremy Chen wrote: Let say I have a text file like this: > ​ [snip] > Leo scripts, including @button nodes, can do any kind of text formatting.​ > I need to substitute pandas with pd and numpy with np etc. (step 1) > ​Assuming p is the

Re: zim-import

2018-03-27 Thread Edward K. Ream
On Tue, Mar 27, 2018 at 4:20 AM, Josef wrote: > > First I got error messages that the @string path_to_zim is missing, until > I figured out that it needs an @string path-to-zim instead, > ​ Either should work. both are equivalent to @string pathtozim. ​ > so the error message

Re: Constant width icon boxes are important

2018-03-27 Thread Edward K. Ream
On Tue, Mar 27, 2018 at 10:05 AM, Edward K. Ream wrote: > I finally understand why I have been having trouble recently. Variable > width icon don't just "misalign" headline text, the make it much harder to > see the outline structure. For now I have reverted to the old,

Constant width icon boxes are important

2018-03-27 Thread Edward K. Ream
I finally understand why I have been having trouble recently. Variable width icon don't just "misalign" headline text, the make it much harder to see the outline structure. For now I have reverted to the old, tiny boxes. Chris, are you willing to create a constant-width set? Edward -- You

Re: Change to icon functions

2018-03-27 Thread Edward K. Ream
On Tuesday, March 27, 2018 at 9:33:32 AM UTC-5, Terry Brown wrote: 5406b6e45 changes the calling signature of appendImageDictToList, it no > longer accepts an iconDir parameter. Always hard to know when a > method's "internal" and can be changed this way or part of the external > API and

Change to icon functions

2018-03-27 Thread Terry Brown
5406b6e45 changes the calling signature of appendImageDictToList, it no longer accepts an iconDir parameter. Always hard to know when a method's "internal" and can be changed this way or part of the external API and shouldn't be changed. Let me know if it causes trouble for anyone, we can change

Edit text with a script in Leo

2018-03-27 Thread Jeremy Chen
Hi, I'm a newbie. I read the tutorials a few times but I still can't figure out how to do this. Let say I have a text file like this: # bug fix for display formats to avoid run time errors pandas.set_option('display.float_format', lambda x:'%.2f'%x) data = pandas.read_csv('gapminder.csv') #

zim-import

2018-03-27 Thread Josef
Hello, I just tried to import a zim-wiki folder using the menu File --> Import --> Import Zim Folder. I assume that "Zim Folder" refers to a Zim-Wiki, which keeps its data in a local folder. First I got error messages that the @string path_to_zim is missing, until I figured out that it needs