Re: ekr-leoInteg.leo

2020-08-15 Thread Xu Wang
OK well noted with thanks Félix 于2020年8月15日周六 下午10:54写道: > Sorry - one last thing: you have to switch Leo to its 'devel' branch too! > -- > Félix > > On Saturday, August 15, 2020 at 11:48:19 AM UTC-4, Austin(Xu) Wang wrote: >> >> OK noted. Thanks Felix fo

Re: ekr-leoInteg.leo

2020-08-15 Thread Xu Wang
ll be implemented soon... > > Please make sure to report any details you would like to see added or > corrected to leoInteg! > > Many thanks to you for trying it out and reporting errors or bugs! > > (Again, make sure to switch to the 'dev' branch) > -- > Félix > > O

Re: ekr-leoInteg.leo

2020-08-15 Thread Xu Wang
ube.com/watch?v=rutt11xL54I ...which > demonstrate the setup and install process,,, which I just realized I forgot > to put a link for into the 'Contributing.md' 🤦 > > *In any cases, I would recommend switching to the 'dev' branch while > trying things out as it contai

Re: ekr-leoInteg.leo

2020-08-15 Thread Xu Wang
Thanks EKR for sharing this.. Is there a HOWTO on using leoInteg with VS Code? For me, I enjoy using Leo for keeping my TODOs, meeting minutes and a lot of information received everyday. However, I switch to another editor(Textmate) for source code editing or some heavy editing work. If only I c

Re: Technical document writing using asciidoctor via Leo

2020-04-29 Thread Xu Wang
One more finding, in the generated .adoc file, there is one empty line between the tittle and the author line, = headline1 Austin Xu Wang :doctype: book :encoding: utf-8 :lang: en :toc: left :numbered: The empty line should be removed, otherwise the generated html is with wrong format. Edward

Re: Technical document writing using asciidoctor via Leo

2020-04-29 Thread Xu Wang
Some findings I have so far. 1) which leo directive to enable syntax highlight for asciidoc Use the @adoc node, for example a node with headline @adoc leoasciidoctest.adoc, Put @language asciidoc on the body of that node. 2) which directive to use for generating external .adoc file from Leoedito

Re: Technical document writing using asciidoctor via Leo

2020-04-28 Thread Xu Wang
于2020年4月29日周三 上午3:34写道: > > On Tuesday, April 28, 2020 at 1:27:41 AM UTC-4, Austin(Xu) Wang wrote: >> >> Dear All, >> >> I'm switching from Markdown to Asciidoctor for writing documents. I'd >> like to use Leo as the central part for orgenizing all

Technical document writing using asciidoctor via Leo

2020-04-27 Thread Xu Wang
Dear All, I'm switching from Markdown to Asciidoctor for writing documents. I'd like to use Leo as the central part for orgenizing all the docs. There are a list of questions I'm going to explore. If you have experience or recommendations please share we me. 1) which leo directive to enable synt

Re: Importer for todo.txt files is ready for testing

2020-03-10 Thread Xu Wang
great. Thanks Edward. I will test this feature in the coming weekend. Edward K. Ream 于 2020年3月10日周二 下午11:39写道: > This is #1499 , > which I have just close. Summary: > > The 'import-todo-text-files' command prompts for one or more .txt files >

Re: best practice for test driven development leo script?

2020-03-02 Thread Xu Wang
ah... Ok Edward K. Ream 于 2020年3月2日周一 下午6:41写道: > > > On Sun, Mar 1, 2020 at 7:40 AM Xu Wang wrote: > > >> What do you think the problem is? > > > I clicked "simple test cases collection" node first, so the p.h should > be "simple test cases c

Re: best practice for test driven development leo script?

2020-03-02 Thread Xu Wang
d this: > > File "D:\Tom\git\leo-editor\leo\core\leoNodes.py", line 1353, in copy > return Position(self.v, self._childIndex, self.stack) > RecursionError: maximum recursion depth exceeded > > I omitted the rest of the stack trace. > > On Sunday, March 1, 2020 at

Re: best practice for test driven development leo script?

2020-03-01 Thread Xu Wang
> > > > Everything seems fine to me. Both tests pass, as I think they should. > > Within an @test node, p is the position of the @test node itself. > > What do you think the problem is? > > > I clicked "simple test cases collection" node first, so the p.h should be "simple test cases collection" wh

Re: best practice for test driven development leo script?

2020-03-01 Thread Xu Wang
same result for minibuffer command: run-all-unit-tests-locally Xu Wang 于2020年3月1日周日 下午8:20写道: > Strange...please find attached a mini outline file to reproduce. > Click node "simple test cases collection" and then "Do-@test" button. > > Below is the output on m

Re: best practice for test driven development leo script?

2020-03-01 Thread Xu Wang
in 0.013s OK End of Do @test Edward K. Ream 于2020年3月1日周日 下午6:56写道: > On Sat, Feb 29, 2020 at 12:32 PM Xu Wang wrote: > > > I tried to use run-all-unit-tests-locally command to execute the two > test cases, still got same result. The position read by the test case code > is

Re: Zettelkasten - Notes Jim but not as we know them.

2020-02-29 Thread Xu Wang
I tried to figure out which key is "Alt" on Mac, but never find out. The "Command" key is catched as Ctrl, the "Control" and "Option" key are all catched as Meta on my MacBook. Thomas Passin 于2020年3月1日周日 下午12:36写道: > > > On Saturday, February 29, 2020 at 11:02:07 PM UTC-5, Thomas Passin wrote:

Re: best practice for test driven development leo script?

2020-02-29 Thread Xu Wang
> > No, I would not call a bug. I simply meant that it's a lot easier to > create outlines in unitTest.leo. > > Within a Test class, called by g.run_unit_test_in_separate_process, there > will always be difficulties creating outlines, traversing them, etc. These > difficulties can be overcome, it j

Re: best practice for test driven development leo script?

2020-02-29 Thread Xu Wang
is the issue I raised in my previous email a Leo bug regarding accessing position in the testcase? BR,Austin Edward K. Ream 于2020年2月29日周六 下午8:17写道: > > > On Fri, Feb 28, 2020 at 9:31 PM Xu Wang wrote: > >> Thanks Edward for the advice. I will try it later. For now, I'

best practice for test driven development leo script?

2020-02-27 Thread Xu Wang
Dear Leo Developer, I am writing a script in Leo, it is located in the body of a @button node. As adding more and more logic to the script, I feel I need to have some test case to make me confident on the development progress. As the moment, I am adding test case as below: def func1(): ...

Re: clone one node as a child of current position

2020-02-27 Thread Xu Wang
Thanks for the detailed demo.. it's very helpful for me to getting familiar with Leo scripting. Edward K. Ream 于2020年2月26日周三 上午3:12写道: > On Tue, Feb 25, 2020 at 12:42 PM Xu Wang wrote: > >> Dear Leo Developer, >> >> If I know the GNX of one node, how shall I c

clone one node as a child of current position

2020-02-25 Thread Xu Wang
Dear Leo Developer, If I know the GNX of one node, how shall I clone it to the position under current node(as a child of current position)? BR,Austin -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receivi

Re: event for changing the order of nodes

2020-02-24 Thread Xu Wang
Thanks Edward, I am drafting some script to manipulate todo.txt file inside Leo, will share it here when it's working. BR,Austin Edward K. Ream 于2020年2月24日周一 下午4:41写道: > On Saturday, February 22, 2020 at 12:13:41 PM UTC-6, Austin(Xu) Wang wrote: >> >> Dear Leo Developer, &g

Re: event for changing the order of nodes

2020-02-22 Thread Xu Wang
As an alternative solution, I'm thinking to create two new user defined commands, @key=Move_up_key and @key=Move_down_key for moving current node UP and DOWN. Would you please share me where I can find of Leo code for moving node UP and DOWN for reference? Thanks, Austin Xu Wang 于2020年2月

event for changing the order of nodes

2020-02-22 Thread Xu Wang
Dear Leo Developer, If I have a node with 5 subnodes, the child #1 is focused, I clicked SHIFT-DOWN, child #1 and child #2 will swap position. Is there an event for the position swap? I checked here http://leoeditor.com/slides/writingPlugins.html#handling-events but was not able to find a relate

Re: todo.txt importer

2020-02-19 Thread Xu Wang
Thanks for the implementation plan. I put my comments on under #1499 <https://github.com/leo-editor/leo-editor/issues/1499> . Edward K. Ream 于2020年2月19日周三 下午6:20写道: > On Tue, Feb 18, 2020 at 9:59 AM Xu Wang wrote: > > Does anybody implement an importer for todo.txt[1] file? >

todo.txt importer

2020-02-18 Thread Xu Wang
Dear Leo Developers, Does anybody implement an importer for todo.txt[1] file? The file format is documented [2]. My initial idea is to create something like @auto-todo todo.txt Each entry(task) in the todo.txt file will be a sub item under the auto-todo node, and there can be another two sub item

Re: zombie process generated by g.execute_shell_commands

2020-02-11 Thread Xu Wang
updated to devel 9b6f29d12..93abd72c6, the problem fixed on my MacBook too. Thanks EKR. Brian Theado 于2020年2月12日周三 上午5:29写道: > This is working fine for me now. I don't see zombie processes for the > exited background commands anymore. Nice work. > > On Sun, Feb 9, 2020 at 8:07 AM Edward K. Ream

zombie process generated by g.execute_shell_commands

2020-02-06 Thread Xu Wang
Dear Leo Developer, I created one button in Leo, the corresponding script is: c.save() g.execute_shell_commands(['git -C /Users//leodata add austin.leo', 'git -C /Users//leodata commit -mupdates', '&git -C /Users//leodata push']) Basically, it will save the changes and do a git add/

mindmap view of one subtree

2019-12-19 Thread Xu Wang
Dear Leo User, Is there any plugin can show a sub tree of Leo outlines into a mind map view? For example, like below https://www.mindmaps.app/# So user can edit outlines, or adding new childs.. BR, Austin -- You received this message because you are subscribed to the Google Groups "leo-edito

Re: macOS Catalina

2019-11-01 Thread Xu Wang
After upgraded to Catalina, the leo command does not work for unknown reason. But I can still invoke leo by go to the leo directory and run "python3 launchLeo.py" Since I only run it every time the computer is reboot, so, it's not an issue for me. Rob 于2019年10月31日周四 上午6:33写道: > I run Leo via py

Re: possible to convert all the tab in the body into space when save .leo file?

2019-09-10 Thread Austin(Xu) Wang
thanks Edward.. > > Yes. See the convert-* commands. > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this disc

possible to convert all the tab in the body into space when save .leo file?

2019-09-10 Thread Austin(Xu) Wang
Dear Leo User, Is there such a command available to convert tab into space? I'm facing one issue that the ReStructuredText table looks good in the body text, but when "make html" using sphinx, there are many Warnings regarding: WARNING: Malformed table. Text in column margin in table line 2.

Re: difference between @auto and @clean node regarding generating rst file

2019-09-07 Thread Austin(Xu) Wang
> > >1. As to your PS question, that's a matter of personal preference and >how big the xxx.leo file will become. I prefer external files (most of the >time) as I can open and use with other editors and tools (e.g. pandoc). > > Thanks Rob..I see. I switched to use @rst node. Compare

Re: difference between @auto and @clean node regarding generating rst file

2019-09-07 Thread Austin(Xu) Wang
also tried @nosent filename.rst with no luck. On Saturday, September 7, 2019 at 7:39:44 PM UTC+7, Austin(Xu) Wang wrote: > > Dear Leo Users, > > I have one node "@auto filename.rst", under that node, there are a few > chapters of the rst file, which works gre

difference between @auto and @clean node regarding generating rst file

2019-09-07 Thread Austin(Xu) Wang
Dear Leo Users, I have one node "@auto filename.rst", under that node, there are a few chapters of the rst file, which works great when I press save, the filename.rst will be generated. If I change the node to "@clean filename.rst", I am not able to save. Leo complains that: The following were

leoVUE issues

2019-09-06 Thread Austin(Xu) Wang
Dear Leo User, Just in case you are also a leoVUE user.. I need some help on two issues. https://github.com/kaleguy/leovue/issues/8 https://github.com/kaleguy/leovue/issues/9 The two issues are quite similar, some valid leo directives @auto, @clean, @language rest make leoVUE display abnormal.

Re: generate HTML from .txt via @rst node

2019-09-05 Thread Austin(Xu) Wang
On Thursday, September 5, 2019 at 8:04:54 PM UTC+7, Edward K. Ream wrote: > > cd leo/doc/html > make html (or make clean) > I am using auto node for generating rst file for now. @auto index.rst The children are chapters, sub-chapters...So far so good, without using the rst3 command. -- You

generate HTML from .txt via @rst node

2019-09-05 Thread Austin(Xu) Wang
Dear Leo User, Follow the tutorial https://leoeditor.com/tutorial-rst3.html , I use the rst3 command successfully created on .html.txt file. Is there any command I need to run from console to tell sphinx generate html from this .txt file? I tried sphinx-build ./ _build and got: Sphinx error:

Re: Studying Robert Cholette's vs-code leointeg project

2019-08-30 Thread Austin(Xu) Wang
> > > > Going forward, I'll take a couple hours to study leoVue a little bit, to > maybe make a tcp/ip communication instead of just stdIn/Out... > I vote for a standard RESTFUL API to access the nodes information. > So all right for now, I'm going to bed! Cheers! :D > > Have a good rest..

Re: best practice for managing calendar events

2019-08-27 Thread Austin(Xu) Wang
> > >>> If you put the following code into a node with the headline `@button > clone-to-calendar @key=Alt-4`: > v = p.v > cal = c.find_h('Calendar')[0] > cal_v = cal.v > if cal_v not in v.parents: > cal_v.children.append(v) > v.parents.append(cal_v) > cal_v.children.sort(key=lambda x:

Re: best practice for managing calendar events

2019-08-27 Thread Austin(Xu) Wang
Thanks Matt.. I checked http://leo.zwiki.org/Tododoc for document. Also play with the [task] tab. My understanding is todo.py can set priority and progress of node. My use case is I have too many projects, and each project may have one or more meeting reservations. I want to have one list o

best practice for managing calendar events

2019-08-25 Thread Austin(Xu) Wang
Hello Leonine, I have a number of projects in my leo file, some of the projects have events. For example: ProjectA -> Meeting With Donald (Next Monday 10:00) ProjectB -> Meeting with Steve(6th Sept 15:30) Is there a way I can see a list of events for all the projects? BR,Austin -- You

Re: clone short cut for Mac

2019-08-25 Thread Austin(Xu) Wang
on key works for me as Alt key. However, I only use a MacBook Pro > which, perhaps has a different keyboard than a desktop Mac (don't know > since I don't have one). > > Rob... > > On Sunday, August 25, 2019 at 12:39:33 AM UTC-5, Austin(Xu) Wang wrote: >> &

Re: source code for http://leoeditor.com/load-leo.html

2019-08-25 Thread Austin(Xu) Wang
Thanks Edward...Downloaded. It's time for me to learn the best programming language. ;) On Monday, August 26, 2019 at 3:35:23 AM UTC+7, Edward K. Ream wrote: > > On Sun, Aug 25, 2019 at 12:24 PM Austin(Xu) Wang > wrote: > >> The .leo file browsing logic is i

Re: source code for http://leoeditor.com/load-leo.html

2019-08-25 Thread Austin(Xu) Wang
The .leo file browsing logic is in the script do-leo.php? On Sunday, August 25, 2019 at 9:07:44 PM UTC+7, Edward K. Ream wrote: > > > > On Sat, Aug 24, 2019 at 10:58 PM Austin(Xu) Wang > wrote: > >> Dear Leonine, >> >> Checking the documentatio

Re: how to trigger double-click-icon-box

2019-08-25 Thread Xu Wang
OK. The new binded key works. 👍 Edward K. Ream 于2019年8月25日周日 下午9:12写道: > > > On Sun, Aug 25, 2019 at 4:16 AM Austin(Xu) Wang wrote: > >> >> Tried in minibuffer running command double-click-icon-box, it works as >> expected. My questions is how to trigger th

how to trigger double-click-icon-box

2019-08-25 Thread Austin(Xu) Wang
Dear Leonine, I'm trying the plugin "expfolder". for one node @expfolder, I need to double-click-icon-box to expend it. However, I cannot trigger double-click-icon-box on my Mac. Tried in minibuffer running command double-click-icon-box, it works as expected. My questions is how to trigger

Re: clone short cut for Mac

2019-08-24 Thread Austin(Xu) Wang
02:10 AM UTC+7, Austin(Xu) Wang wrote: > > Shift-Command-C doesn't work in my Mac. > Shift-Command-X copy one node > Shift-Command-V paste one node ( not clone) > > If the body editor control is focused, > Option-x will put one capitalized X. > > If the log panel i

source code for http://leoeditor.com/load-leo.html

2019-08-24 Thread Austin(Xu) Wang
Dear Leonine, Checking the documentation website, I found this tool http://leoeditor.com/load-leo.html which looks simple and easy to use. Is the source code for the tool in leo git repo? BR,Austin -- You received this message because you are subscribed to the Google Groups "leo-editor" grou

Re: clone short cut for Mac

2019-08-24 Thread Austin(Xu) Wang
UTC+7, Rob wrote: > > Maybe not the best way, but what I do on my Mac is: > > Shift-Command-C (copy node) > Option-x (mini-buffer) paste-retaining-clones > > HTH > Rob... > > On Friday, August 23, 2019 at 3:19:15 PM UTC-5, Austin(Xu) Wang wrote: >> >> Hello

Re: locate one node by it's path via leoBridge

2019-08-24 Thread Austin(Xu) Wang
> > This script you can make a button of it and then when you want to copy gnx > of some node, just select it and click the button. > > HTH Vitalije > > > > On Saturday, August 24, 2019 at 9:07:44 AM UTC+2, Austin(Xu) Wang wrote: >> >> >> I realized get_

Re: locate one node by it's path via leoBridge

2019-08-24 Thread Austin(Xu) Wang
IT-->Leo-->Writing Plugin-->Display Message") # return the body text On Saturday, August 24, 2019 at 12:46:07 PM UTC+7, Austin(Xu) Wang wrote: > > Dear Leo User, > > I want to access the headline and body of a specific node inside that file > usin

locate one node by it's path via leoBridge

2019-08-23 Thread Austin(Xu) Wang
Dear Leo User, I want to access the headline and body of a specific node inside that file using the leoBridge interface. Is it possible to get the body and headline from the path of that node? For example, for one node with headline "Display Message": /Users/wangxu/Documents/Leo/austin.leo#IT-->

clone short cut for Mac

2019-08-23 Thread Austin(Xu) Wang
Hello Mac Leo User, Please how to clone a node via keyboard? It should be Ctrl-` , but I tried Command-` , Control-`, Option-`, no one works... Also, Alt-x on my key board doesn't work too.. BR,Austin -- You received this message because you are subscribed to the Google Groups "leo-editor"

Re: render dock and tabs dock lost

2019-08-21 Thread Austin(Xu) Wang
ha.. alt-click works.. thanks. On Wednesday, August 21, 2019 at 5:25:52 PM UTC+7, Edward K. Ream wrote: > > > > On Tue, Aug 20, 2019 at 10:19 PM Austin(Xu) Wang > wrote: > >> Dear All, >> >> For some reason, I cannot find my render dock and tabs dock. >&g

Re: enable theme file

2019-08-20 Thread Xu Wang
7;s solved. Vitalije > > On Monday, August 19, 2019 at 12:57:59 PM UTC+2, Austin(Xu) Wang wrote: >> >> Dear All, >> >> I'm trying to enable a theme, below is the procedure I followed: >> >> 1) Create one empty leo file, name it myLeoSett

leo-editor@googlegroups.com

2019-08-19 Thread Austin(Xu) Wang
Thanks Chris.. Suggest to put this procedure in the document something like a best practice(for newbie?).. I was not able to config theme successfully following the instructions at https://leoeditor.com/customizing.html#theme-files Until I found this email. On Thursday, June 20, 2019 at 10: