Re: Automatically move to the beginning/end of line

2019-09-26 Thread jkn
On Thursday, September 26, 2019 at 2:46:23 PM UTC+1, Edward K. Ream wrote: > > On Thu, Sep 26, 2019 at 7:07 AM Brian Theado > wrote: > >> When moving down a text editor line-by-line, I rely on the common >> behavior of automatically moving to the end of the line when trying to >> scroll down

Re: Pytest command

2019-09-26 Thread Brian Theado
Vitalije, This looks nice. I'm really impressed with the assertion failure output pytest gives. I wonder how hard it would be to write a pytest plugin to support leo's unit tests. Their plugin system makes use of hooks like Leo does, only it is like hooks on steroids. This example code shows

Re: Automatically move to the beginning/end of line

2019-09-26 Thread Brian Theado
Thanks a lot, Edward! I'll give it a try later. I discovered when using my code on a mac laptop that I had to bind to Keypad-Up and Keypad-Down. Apparently the laptop keyboard on my mac doesn't have any keys mapping to just plain Up and Down. On Thu, Sep 26, 2019 at 12:10 PM Edward K. Ream

Re: Automatically move to the beginning/end of line

2019-09-26 Thread Brian Theado
Yes, I've always noticed this behavior from Leo and rather than look into fixing it, I've trained myself when using leo to select one fewer lines than needed before I hit the tab key to indent. Maybe it isn't all that hard to fix it, but maybe some people don't see this behavior as "broken". I

Re: Automatically move to the beginning/end of line

2019-09-26 Thread Edward K. Ream
On Thursday, September 26, 2019 at 8:51:02 AM UTC-5, Edward K. Ream wrote: > I'll add these commands later today to Leo's core, and add do-nothing entries for the new commands to leoSettings.leo. > See #1353 . Completed at 2d736a in devel.

Re: Pytest command

2019-09-26 Thread vitalije
I was not aware of #1222. :-) > > Vitalije -- 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

Re: Automatically move to the beginning/end of line

2019-09-26 Thread Edward K. Ream
On Thursday, September 26, 2019 at 8:46:23 AM UTC-5, Edward K. Ream wrote: > I'll add these commands later today to Leo's core, and add do-nothing entries for the new commands to leoSettings.leo. See #1353 . Edward > -- You received this

Re: Automatically move to the beginning/end of line

2019-09-26 Thread Edward K. Ream
On Thu, Sep 26, 2019 at 7:07 AM Brian Theado wrote: > When moving down a text editor line-by-line, I rely on the common behavior > of automatically moving to the end of the line when trying to scroll down > past the last line. Similar for when scrolling up past the first line. Leo > doesn't have

Re: Automatically move to the beginning/end of line

2019-09-26 Thread gar
1. move cursor to the beginning of the line 2. press shift and up twice 3. press tab 4. enjoy with how first not selected line is idented чт, 26 сент. 2019 г. в 16:41, Edward K. Ream : > > > On Thu, Sep 26, 2019 at 8:16 AM gar wrote: > >> Thanks for that, Brian! Exactly what is required! >> >>

Re: Automatically move to the beginning/end of line

2019-09-26 Thread Edward K. Ream
On Thu, Sep 26, 2019 at 8:16 AM gar wrote: > Thanks for that, Brian! Exactly what is required! > > By the way, recently I discovered another oddness. > When you select several lines at the moment and try to ident/deident them > by a single 'tab' or 'ctrl->` - the line above/below the cursor is

Re: Pytest command

2019-09-26 Thread Edward K. Ream
On Thu, Sep 26, 2019 at 5:19 AM vitalije wrote: > Two days ago I've added to Leo a new command 'execute-pytest' which runs > like `run-selected-unit-tests-locally`, but executes test functions in > @test nodes as if they were in a file processed by pytest. > Many thanks for this. It was the

Re: Automatically move to the beginning/end of line

2019-09-26 Thread gar
Thanks for that, Brian! Exactly what is required! By the way, recently I discovered another oddness. When you select several lines at the moment and try to ident/deident them by a single 'tab' or 'ctrl->` - the line above/below the cursor is also affected. This is not exactly what user expects.

Re: ENB: an --leo-id option might prevent gnx clashes

2019-09-26 Thread Edward K. Ream
On Thu, Sep 26, 2019 at 4:18 AM Edward K. Ream wrote: There may simple way forward for Bob Hossley, one that prevents gnx > conflicts before they happen. > Vitalije's comment in #1348 may have rendered all this moot.

Automatically move to the beginning/end of line

2019-09-26 Thread Brian Theado
When moving down a text editor line-by-line, I rely on the common behavior of automatically moving to the end of the line when trying to scroll down past the last line. Similar for when scrolling up past the first line. Leo doesn't have this behavior, so I wrote the below script. Thought I'd share

Re: Pytest command

2019-09-26 Thread vitalije
Hm, looking in the output it seems that the name of the test node, and failed test function in the output are missed. Revision 064e218 fixes this. Now the output is like: ---example/test_a failed- assert 4 == 4.1 + where 4 =

Pytest command

2019-09-26 Thread vitalije
Two days ago I've added to Leo a new command 'execute-pytest' which runs like `run-selected-unit-tests-locally`, but executes test functions in @test nodes as if they were in a file processed by pytest. To use this command one must have pytest installed. Command will look in the subtree of the

ENB: an --leo-id option might prevent gnx clashes

2019-09-26 Thread Edward K. Ream
There may simple way forward for Bob Hossley, one that prevents gnx conflicts before they happen. When spawning a host of .leo files, the process spawning that host would invoke each instance of Leo with --leo-id=. This would solve the problem at the source. *Background* Back in 2014 we

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-26 Thread vitalije
As I wrote in the #1348 it is my belief that this issue is caused by operating system itself. It seems that subprocess.call returns before process has fully finished and its file operations are actually flushed to