Re: Aha! A better way to study code

2023-02-03 Thread jkn
It's always interesting to see other people's work... Two trivial things I noted in rope.leo, neither rope-related 1) you use a checkbox style for 'things to do' which I quite like - [x] a done item - [ ] a 'to be done' item, I presume (haven't seen one yet...) I tend to use the following

Re: Aha! A better way to study code

2023-02-03 Thread Edward K. Ream
On Fri, Feb 3, 2023 at 6:36 AM jkn wrote: > is it possible to mark headlines with icons of different kinds? Yes. At first I remembered only that it involves adding some key to p.v.u, the user attributes dict. I'll describe a slightly cleaned up version of my study process. Terry's todo plugin s

Re: Aha! A better way to study code

2023-02-03 Thread Thomas Passin
The attached outline has some icons attached to headlines. It was posted for issue 3121 by @wangzhaohe. I don't know how he attached them, but it gives a dramatic example. On Friday, February 3, 2023 at 10:15:38 AM UTC-5 Edward K. Ream w

What is Leo's current formatter for it's current code formating standards?

2023-02-03 Thread Félix
autopep8? or black, (or yapf?) Félix -- 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 discussion on the web v

Coming soon in LeoInteg 1.0.12 (...and leojs beta!)

2023-02-03 Thread Félix
Hello to all my Leonistas friends! Here's some good news for a change: Since the VSCode API now allows for the nodes in a tree to have visible highlight ranges in their headlines, LeoInteg 1.0.12 will feature 'distinct search results' to be visible in the outline. Just like the regular Leo off

Re: What is Leo's current formatter for it's current code formating standards?

2023-02-03 Thread Edward K. Ream
On Fri, Feb 3, 2023 at 2:55 PM Félix wrote: autopep8? or black, (or yapf?) Great question. I was unwisely assuming you knew the answer. To beautify Leo I run the script: leo/scripts/beautify-leo.cmd. Like all .cmd files, this is a Windows-only script. I just checked. Yes, @clean ../scripts/be

Re: Coming soon in LeoInteg 1.0.12 (...and leojs beta!)

2023-02-03 Thread Thomas Passin
Felix, you have done a lot of hard work! I've been wondering what the possibilities will be for writing scripts for LeoInteg or LeoJS (of course, in Java/Type -script instead of Python)? How hard will it be to code up and run small utility scripts, for example? On Friday, February 3, 2023 at

Re: Coming soon in LeoInteg 1.0.12 (...and leojs beta!)

2023-02-03 Thread Edward K. Ream
On Fri, Feb 3, 2023 at 3:42 PM Félix wrote: Since the VSCode API now allows for the nodes in a tree to have visible > highlight ranges in their headlines, LeoInteg 1.0.12 will feature 'distinct > search results' to be visible in the outline. Just like the regular Leo > offers. > Excellent. Thank

Re: Coming soon in LeoInteg 1.0.12 (...and leojs beta!)

2023-02-03 Thread Edward K. Ream
On Fri, Feb 3, 2023 at 4:11 PM Edward K. Ream wrote: > The original reason for the PR was that ctrl-clicking, say, _MyClass wouldn't work. The old code only searched for def _myClass, not class _MyClass. The new (simpler!) code tries more search patterns. Oops. I should have said, def _*M*yCla

Re: Coming soon in LeoInteg 1.0.12 (...and leojs beta!)

2023-02-03 Thread Félix
@Thomas : For leointeg, it just relays the commands to the leoBridge instance the server is running. So leointeg already ran any scripts from it's first inception back in 2021. Just like it would normally in Leo, via @buttons, @commands, or just hittin CTRL+B with focus on onw of LeoInteg's pan

Re: What is Leo's current formatter for it's current code formating standards?

2023-02-03 Thread Félix
Thanks for your answer Edward! :) I should have mentioned that I was editing leoserver in leointeg, and I happened to modify the file directly, (not via the Leo:BODY pane) and when saving, vscode asked me if I wanted to install (and format with) one of those 3 formatters. (autopep8, black, or

Testing "Equality" Floating Numbers In Unit Testing

2023-02-03 Thread Thomas Passin
In working on developing unit tests for my GF4 project, I'm going to have to compare expected vs actual results of floating point numbers. This subject is notoriously difficult to get "right" - there are all kinds of pitfalls one would never think about. The standard Python library now has on