On Tue, 7 Jul 2015 11:02:29 -0700 (PDT)
Chris George <technat...@gmail.com> wrote:

> This issue has been plaguing me for some time. It may be specific to
> Linux, but since the two applications involved are both
> multi-platform, simple testing by someone with access to a Windows
> box would be required to determine that.

Here's a shell script you can run in a console

https://gist.github.com/tbnorth/4b781ba2b8f59c83dd5e

to show the content of the primary and secondary selections, and the
clip-board.  You'll probably need to install xclip

When the mouse is released after drag-selecting text in Leo, the
primary selection updates as expected.  This doesn't happen with
shift-arrow selection.

It looks like keyboard shift-arrow selection should call 
QClipboard::setText(const QString & text, Mode mode = QClipboard::Selection)
either by converting Leo to C++ or converting the above to its Python
equivalent, whichever is easier :-)

Cheers -Terry


> The two applications are Artha (a spelling/thesaurus utility) and
> Leo. 
> 
> Install Artha and assign an unused system wide shortcut key. Test it
> using text from a webpage, text from a word processor or text from
> another text editor.
> 
> Create a node in Leo and dump in some text.
> 
> Select a word using the Shift-Arrow Key (left or right arrow is up to
> you). Hit the keyboard shortcut to bring up Artha. The intended
> outcome is that the selected word is loaded into the search box in
> Artha and you are presented with the definition window. It doesn't
> happen in Leo. The latest contents of the clipboard are loaded
> instead.
> 
> Now try it using the mouse to select the text, again starting at the 
> beginning or the end of the word. Hit the Artha hotkey again and
> enjoy the definition as it works exactly as intended.
> 
> Leo 5.1-final, build 20150707053226, Tue Jul  7 05:32:26 CDT 2015
> Git repo info: branch = master, commit = deb525c0d455
> Python 2.7.6, PyQt version 4.8.6
> linux2
> 
> Artha works as intended with every other text/wordprocessing/web
> browsing application on my workstation no matter how I select the
> word, so I am assuming it is a Leo issue, but as I began, I could be
> wrong.
> 
> Chris
> 

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to