Re: Copy/Paste into abbreviations weirdness

2018-07-28 Thread Edward K. Ream
On Friday, July 27, 2018 at 12:40:00 PM UTC-5, Rob wrote: Thanks, Terry! That did the trick. > Thanks, Terry and Vitalije for this work. Here, I agree with Vitalije that the kwarg does more harm than good. Duplicating code to do exactly what is wanted in each place/situation is/would be a good

Re: Copy/Paste into abbreviations weirdness

2018-07-27 Thread Rob
Thanks, Terry! That did the trick. Rob... On Friday, July 27, 2018 at 12:37:10 PM UTC-4, Terry Brown wrote: > > Try 5ff9a7f3e5 > > >> -- 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 i

Re: Copy/Paste into abbreviations weirdness

2018-07-27 Thread Terry Brown
Your change didn't seem to fix the bug Rob reported, so I reverted it "just because" :-) I'm not sure that kwarg really does anything at all. I run this code from a @script to get middle button pasting in Windows. # monkey patch to give Leo body widget X11 like select->copy and # middle-button->

Re: Copy/Paste into abbreviations weirdness

2018-07-27 Thread Terry Brown
Try 5ff9a7f3e5 Cheers -Terry On Fri, Jul 27, 2018 at 7:58 AM Rob wrote: > Just updated to latest in devel branch and it's still pasting the > placeholder text instead of clipboard. > > Rob... > > On Friday, July 27, 2018 at 3:57:47 AM UTC-4, vitalije wrote: >> >> I saw this behavior recently bu

Re: Copy/Paste into abbreviations weirdness

2018-07-27 Thread Rob
Just updated to latest in devel branch and it's still pasting the placeholder text instead of clipboard. Rob... On Friday, July 27, 2018 at 3:57:47 AM UTC-4, vitalije wrote: > > I saw this behavior recently but I thought it might have something to do > with my machine. > > Rev 0eab277bfdd sho

Re: Copy/Paste into abbreviations weirdness

2018-07-27 Thread vitalije
I saw this behavior recently but I thought it might have something with my machine. Rev 0eab277bfdd should fix this. It was just that one flag was set to True instead to False. The flag is "middleButton" and it seems that the intent was to simulate on Windows middle button pasting feature of

Re: Copy/Paste into abbreviations weirdness

2018-07-26 Thread Terry Brown
Ish - I see this in 4d23cbb5, but there's a block of commits which crash on load with current (vestigial) cache, making it hard to use git bisect. I guess a clean ~/.leo should work... so running git bisect and launching Leo like this: rm -rf /tmp/.leo ; HOME=/tmp python3 /home/tbrown/t/Package/

Copy/Paste into abbreviations weirdness

2018-07-26 Thread Rob
Suppose a simple abbreviation such as: h1;;=<|HEADING1|> 1. Suppose next that we copy some text to the clipboard, such as `This is a heading.` 2. Invoke the abbreviation, which highlights the text `HEADING1`. 3. Try pasting the clipboard text (CTRL-V in Windows or CMD-V on MacOS).