copy-paste, can't copy in BaseX and then paste into Emacs (Debian)
Friday, 1 April 2022 · 9 messages · last reply 4 Apr 2022
PD
Patrick Durusau1 Apr 2022 18:34 #
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 at 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
BD
Bridger Dyson-Smith1 Apr 2022 19:19 #
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
Quoted text · Patrick Durusau · 27 lines
On Fri, Apr 1, 2022 at 10:34 AM Patrick Durusau <patrick at 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 at 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 > >
PD
Patrick Durusau1 Apr 2022 19:51 #
Bridger,
You're right!
I has copy setup on highlighting and that doesn't seem to work, but your suggestion does.
Thanks!
Patrick
Quoted text · Bridger Dyson-Smith · 38 lines
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 at 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 at 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 at 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
BD
Bridger Dyson-Smith1 Apr 2022 21:25 #
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....
Quoted text · Patrick Durusau · 62 lines
On Fri, Apr 1, 2022 at 11:51 AM Patrick Durusau <patrick at 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 at 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 at 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 at 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 > >
CG
Christian Grün4 Apr 2022 11:28 #
Hi Bridger,
Quoted text · Bridger Dyson-Smith · 1 line
> 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
CG
Christian Grün4 Apr 2022 13:45 #
Quoted text · Christian Grün · 2 lines
> 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.
[1] https://files.basex.org/releases/latest/
PD
Patrick Durusau4 Apr 2022 17:27 #
Thanks!
I'm downloading it now.
It's a hard habit to break!
Patrick
Quoted text · Christian Grün · 11 lines
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. > > [1] https://files.basex.org/releases/latest/
--
Patrick Durusau
patrick at 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
CG
Quoted text · Patrick Durusau · 2 lines
> 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
[1] https://files.basex.org/releases/latest/
PD
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
Quoted text · Patrick Durusau · 21 lines
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. >> >> [1] https://files.basex.org/releases/latest/ >
--
Patrick Durusau
patrick at 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
Written for BaseX 9.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery