Hello,
I tried to copy a string out of results with the copy command on the drop down but don't seem to be able to paste into Emacs.
Trying to be good and document my steps but if I can't copy-paste, that's going to be tedious.
Suggestions?
Thanks!
Patrick
Hi Patrick -
I was able to copy (ctrl-c) out of the Result window and paste into Emacs with ctrl-y. Is that not working for you?
Best, Bridger
On Fri, Apr 1, 2022 at 10:34 AM Patrick Durusau patrick@durusau.net wrote:
Hello,
I tried to copy a string out of results with the copy command on the drop down but don't seem to be able to paste into Emacs.
Trying to be good and document my steps but if I can't copy-paste, that's going to be tedious.
Suggestions?
Thanks!
Patrick
-- Patrick Durusau patrick@durusau.net Technical Advisory Board, OASIS (TAB) Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps)
Another Word For It (blog): http://tm.durusau.net Homepage: http://www.durusau.net Twitter: patrickDurusau
Bridger,
You're right!
I has copy setup on highlighting and that doesn't seem to work, but your suggestion does.
Thanks!
Patrick
On 4/1/22 11:22, Bridger Dyson-Smith wrote:
Hi Patrick -
I was able to copy (ctrl-c) out of the Result window and paste into Emacs with ctrl-y. Is that not working for you?
Best, Bridger
On Fri, Apr 1, 2022 at 10:34 AM Patrick Durusau patrick@durusau.net wrote:
Hello, I tried to copy a string out of results with the copy command on the drop down but don't seem to be able to paste into Emacs. Trying to be good and document my steps but if I can't copy-paste, that's going to be tedious. Suggestions? Thanks! Patrick -- Patrick Durusau patrick@durusau.net Technical Advisory Board, OASIS (TAB) Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps) Another Word For It (blog): http://tm.durusau.net Homepage: http://www.durusau.net Twitter: patrickDurusau
Patrick - Glad that helped. I find myself working with Unix-like OS most of the time, and I'm very accustomed to the XWindows "use the middle mouse button to copy highlighted selection" behavior. I've noticed that some applications don't support this behavior - BaseX GUI is one of them - and I think the commonality is Java... Swing (? at least as I type this I think that Swing is the commonality).
Best, Bridger PS Does MS Windows support this kind of thing? I'm not sure - I don't have a Windows machine handy....
On Fri, Apr 1, 2022 at 11:51 AM Patrick Durusau patrick@durusau.net wrote:
Bridger,
You're right!
I has copy setup on highlighting and that doesn't seem to work, but your suggestion does.
Thanks!
Patrick
On 4/1/22 11:22, Bridger Dyson-Smith wrote:
Hi Patrick -
I was able to copy (ctrl-c) out of the Result window and paste into Emacs with ctrl-y. Is that not working for you?
Best, Bridger
On Fri, Apr 1, 2022 at 10:34 AM Patrick Durusau patrick@durusau.net wrote:
Hello, I tried to copy a string out of results with the copy command on the drop down but don't seem to be able to paste into Emacs. Trying to be good and document my steps but if I can't copy-paste, that's going to be tedious. Suggestions? Thanks! Patrick -- Patrick Durusau patrick@durusau.net Technical Advisory Board, OASIS (TAB) Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps) Another Word For It (blog): http://tm.durusau.net Homepage: http://www.durusau.net Twitter: patrickDurusau
-- Patrick Durusau patrick@durusau.net Technical Advisory Board, OASIS (TAB) Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps)
Another Word For It (blog): http://tm.durusau.net Homepage: http://www.durusau.net Twitter: patrickDurusau
Hi Bridger,
Glad that helped. I find myself working with Unix-like OS most of the time, and I'm very accustomed to the XWindows "use the middle mouse button to copy highlighted selection" behavior. I've noticed that some applications don't support this behavior - BaseX GUI is one of them - and I think the commonality is Java... Swing (? at least as I type this I think that Swing is the commonality).
True, the middle mouse button for copying and pasting text is not supported by Swing, probably because this feature is specific to Unix-like OS. We have added support for it in the text areas, though, no matter which OS is used. Does this work on your system?
The BaseX text area component has been written by ourselves, as the standard JTextArea components cannot process and highlight long texts efficiently. I think we could try to extend the standard Swing components (JTextField, etc.) to also support the middle mouse button; would that be helpful?
Best, Christian
I think we could try to extend the standard Swing components (JTextField, etc.) to also support the middle mouse button;
I have added middle mouse button support to single-line text fields [1], and I have revised the implementation for our custom text areas. I decided to either copy or paste text when the middle button is clicked, not both at the same time.
Feedback is welcome.
Thanks!
I'm downloading it now.
It's a hard habit to break!
Patrick
On 4/4/22 07:45, Christian Grün wrote:
I think we could try to extend the standard Swing components (JTextField, etc.) to also support the middle mouse button;
I have added middle mouse button support to single-line text fields [1], and I have revised the implementation for our custom text areas. I decided to either copy or paste text when the middle button is clicked, not both at the same time.
Feedback is welcome.
Christian,
On Debian sid:
On the find/xquery/command line at top: copy-n-paste with middle button works as expected, to and from BaseX.
The Editor window, and Result page, the content from a prior copy-n-paste in the top line appears.
That is if I copy //modial//population in the top line, no other selection in the Editor or Result window will replace it when I try to paste.
That is //modial//population will continue to appear, despite having selected other text.
Changing the command line and selecting that changed text, however, does reflect the change.
Thanks!
Patrick
On 4/4/22 09:27, Patrick Durusau wrote:
Thanks!
I'm downloading it now.
It's a hard habit to break!
Patrick
On 4/4/22 07:45, Christian Grün wrote:
I think we could try to extend the standard Swing components (JTextField, etc.) to also support the middle mouse button;
I have added middle mouse button support to single-line text fields [1], and I have revised the implementation for our custom text areas. I decided to either copy or paste text when the middle button is clicked, not both at the same time.
Feedback is welcome.
The Editor window, and Result page, the content from a prior copy-n-paste in the top line appears.
Oops; paste operations in the result view (and all other read-only components) are definitely illegal. That has been fixed, and I have further aligned the behavior of the two component types [1].
Thanks! Christian
basex-talk@mailman.uni-konstanz.de