Something I find very useful in Linux is the ability to highlight some text and middle click paste somewhere else without having to do Ctrl C then Ctrl V.
This doesn't seem to work in Geany. Is there some way I can enable it?
On 01/23/2012 06:36 AM, John Beaumont | Beecroft wrote:
Something I find very useful in Linux is the ability to highlight some text and middle click paste somewhere else without having to do Ctrl C then Ctrl V.
This doesn't seem to work in Geany. Is there some way I can enable it?
Works here without using any options to enable it.
Cheers, Matthew Brush
On 23/01/2012 15:22, Matthew Brush wrote:
On 01/23/2012 06:36 AM, John Beaumont | Beecroft wrote:
Something I find very useful in Linux is the ability to highlight some text and middle click paste somewhere else without having to do Ctrl C then Ctrl V.
This doesn't seem to work in Geany. Is there some way I can enable it?
Works here without using any options to enable it.
It works on Windows in the Scintilla widget? It doesn't for me with Git latest on Vista. I wish it would as GTK widgets support it on Windows.
Nick
On Mon, 23 Jan 2012 07:22:12 -0800 Matthew Brush mbrush@codebrainz.ca wrote:
On 01/23/2012 06:36 AM, John Beaumont | Beecroft wrote:
Something I find very useful in Linux is the ability to highlight some text and middle click paste somewhere else without having to do Ctrl C then Ctrl V.
This doesn't seem to work in Geany. Is there some way I can enable it?
Works here without using any options to enable it.
Cheers, Matthew Brush _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Thanks.
After some fiddling I notice it only works if you don't deselect what you have highlighted. I normally highlight, click where I want then middle click. This behaviour works in all other GTK software but not Geany. Strange.
On 01/23/2012 08:35 AM, John Beaumont | Beecroft wrote:
On Mon, 23 Jan 2012 07:22:12 -0800 Matthew Brushmbrush@codebrainz.ca wrote:
On 01/23/2012 06:36 AM, John Beaumont | Beecroft wrote:
Something I find very useful in Linux is the ability to highlight some text and middle click paste somewhere else without having to do Ctrl C then Ctrl V.
This doesn't seem to work in Geany. Is there some way I can enable it?
Works here without using any options to enable it.
Cheers, Matthew Brush _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Thanks.
After some fiddling I notice it only works if you don't deselect what you have highlighted. I normally highlight, click where I want then middle click. This behaviour works in all other GTK software but not Geany. Strange.
Yep, in Xfce Terminal, if you select something, it pushes it onto the X selection stack thing, and even after you clear the selection, it's still on the stack and pops it off when you middle click. Is this working in any other GTK+ programs that are using the same GTK+ version? It doesn't work in Mousepad for me (using GtkTextView), but it does from Xfce-Terminal (using VTE).
Maybe it's some GTK+ bug?
Cheers, Matthew Brush
* On 2012 23 Jan 10:37 -0600, John Beaumont | Beecroft wrote:
After some fiddling I notice it only works if you don't deselect what you have highlighted. I normally highlight, click where I want then middle click. This behaviour works in all other GTK software but not Geany. Strange.
I concur. With this comment in mind I selected some text in Geany, left-clicked where I wanted to paste it, and then tried a middle-click. Nothing was pasted as the selection disappeared once the left-click was performed. However, a middle-cleck without first left-clicking resulted in pasted text as expected.
I can paste from Geany to another app and the selection remains highlighted even though Geany is not the focused app. Pasting from another app works so long as the text remains highlighted.
I'm using Geany 0.21 "Gromia" on Debian Sid with XFCE4 on one box and Gnome3 Shell on a laptop.
- Nate >>
On Tue, Jan 24, 2012 at 2:53 PM, Nate Bargmann n0nb@n0nb.us wrote:
- On 2012 23 Jan 10:37 -0600, John Beaumont | Beecroft wrote:
After some fiddling I notice it only works if you don't deselect what you have highlighted. I normally highlight, click where I want then middle click. This behaviour works in all other GTK software but not Geany. Strange.
I concur. With this comment in mind I selected some text in Geany, left-clicked where I wanted to paste it, and then tried a middle-click. Nothing was pasted as the selection disappeared once the left-click was performed. However, a middle-cleck without first left-clicking resulted in pasted text as expected.
I can paste from Geany to another app and the selection remains highlighted even though Geany is not the focused app. Pasting from another app works so long as the text remains highlighted.
I'm using Geany 0.21 "Gromia" on Debian Sid with XFCE4 on one box and Gnome3 Shell on a laptop.
Hi Nate,
Yes, AFAIK middle mouse click has always required the selection to remain highlighted since X was in MIT nappies.
Clearly left clicking in the same app will de-select so nothing pastes, but left clicking in another ap just gets focus and the selection doesn't change.
Cheers Lex
- Nate >>
--
"The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true."
Ham radio, Linux, bikes, and more: http://www.n0nb.us _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Tue, Jan 24, 2012 at 2:58 PM, Lex Trotman elextr@gmail.com wrote:
On Tue, Jan 24, 2012 at 2:53 PM, Nate Bargmann n0nb@n0nb.us wrote:
- On 2012 23 Jan 10:37 -0600, John Beaumont | Beecroft wrote:
After some fiddling I notice it only works if you don't deselect what you have highlighted. I normally highlight, click where I want then middle click. This behaviour works in all other GTK software but not Geany. Strange.
I concur. With this comment in mind I selected some text in Geany, left-clicked where I wanted to paste it, and then tried a middle-click. Nothing was pasted as the selection disappeared once the left-click was performed. However, a middle-cleck without first left-clicking resulted in pasted text as expected.
I can paste from Geany to another app and the selection remains highlighted even though Geany is not the focused app. Pasting from another app works so long as the text remains highlighted.
I'm using Geany 0.21 "Gromia" on Debian Sid with XFCE4 on one box and Gnome3 Shell on a laptop.
Hi Nate,
Yes, AFAIK middle mouse click has always required the selection to remain highlighted since X was in MIT nappies.
Clearly left clicking in the same app will de-select so nothing pastes, but left clicking in another ap just gets focus and the selection doesn't change.
Cheers Lex
Nate,
What you decribed appears to me to be consistent with the definition by freedesktop, see http://standards.freedesktop.org/clipboards-spec/clipboards-0.1.txt.
As to why it doesn't work for some people, I don't know, lets see if there is any information in the version of GTK they are using. Otherwise, perhaps they have disabled it in their window manager (though I don't know how).
Cheers Lex
- Nate >>
--
"The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true."
Ham radio, Linux, bikes, and more: http://www.n0nb.us _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On 01/23/2012 09:08 PM, Lex Trotman wrote:
On Tue, Jan 24, 2012 at 2:58 PM, Lex Trotmanelextr@gmail.com wrote:
On Tue, Jan 24, 2012 at 2:53 PM, Nate Bargmannn0nb@n0nb.us wrote:
- On 2012 23 Jan 10:37 -0600, John Beaumont | Beecroft wrote:
After some fiddling I notice it only works if you don't deselect what you have highlighted. I normally highlight, click where I want then middle click. This behaviour works in all other GTK software but not Geany. Strange.
I concur. With this comment in mind I selected some text in Geany, left-clicked where I wanted to paste it, and then tried a middle-click. Nothing was pasted as the selection disappeared once the left-click was performed. However, a middle-cleck without first left-clicking resulted in pasted text as expected.
I can paste from Geany to another app and the selection remains highlighted even though Geany is not the focused app. Pasting from another app works so long as the text remains highlighted.
I'm using Geany 0.21 "Gromia" on Debian Sid with XFCE4 on one box and Gnome3 Shell on a laptop.
Hi Nate,
Yes, AFAIK middle mouse click has always required the selection to remain highlighted since X was in MIT nappies.
Clearly left clicking in the same app will de-select so nothing pastes, but left clicking in another ap just gets focus and the selection doesn't change.
Cheers Lex
Nate,
What you decribed appears to me to be consistent with the definition by freedesktop, see http://standards.freedesktop.org/clipboards-spec/clipboards-0.1.txt.
As to why it doesn't work for some people, I don't know, lets see if there is any information in the version of GTK they are using. Otherwise, perhaps they have disabled it in their window manager (though I don't know how).
I think the middle click is working except for the fact that for whatever reason now it clears the *X selection* when the Scintilla selection is cleared, and it didn't do this before. Those notes on the spec are too vague and leave out the part of whether deselecting text should create a new blank selection as you suggest or leave the contents of the last selection that was made. I have no idea about the X or ICCCM specs myself.
I think this might be related: http://sourceforge.net/tracker/index.php?func=detail&aid=910948&grou...
Note how recent the "second report" in the comments is and how it confirms the behaviour changing back and forth. Everything seems to be pointing to GTK+ changing behaviour recently. Some apps it does seem to still work in are VTE apps (GVim? and XfceTerminal), Firefox (address bar at least), and Eclipse IDE. Other more typical GTK+ apps like Mousepad, presumably Gedit, and Geany it does not work.
Cheers, Matthew Brush
* On 2012 24 Jan 02:38 -0600, Matthew Brush wrote:
I think the middle click is working except for the fact that for whatever reason now it clears the *X selection* when the Scintilla selection is cleared, and it didn't do this before. Those notes on the spec are too vague and leave out the part of whether deselecting text should create a new blank selection as you suggest or leave the contents of the last selection that was made. I have no idea about the X or ICCCM specs myself.
Somewhat related, perhaps not.
I am working on a wxWidgets application and am using the wxTextCtrl in single line mode. What I find when I tab into the control is that the already present text is selected. If I switch to another app, say XFCE terminal, a middle click there pastes the text. When I switch back to the wxWidgets app, the selection is cleared, i.e. the text is no longer highlighted, and switching back to the terminal and middle-clicking results in no text being pasted--the X copy buffer has been cleared. Ideally, I am trying to assure that the text is never selected in the first place, but that is proving a bit of a challenge. The Multi-line version of wxTextCtrl does not select the text automatically, but is a bit large for my purposes. :-)
Back in ye olden days, as I recall, text had to be selected by the mouse using the left button along with mouse movement for the text to be copied to the X buffer--selecting text with the keyboard did not copy it to the X buffer although the toolkit's provided buffer could be copied into with an accelerator key/menu selection. Then clearing the text by deleting it and then clicking elsewhere in the app and finally middle-clicking pasted the text. The buffer would retain that text until a new selection was made. At least that's how I recall it used to be done.
<rant> The newer desktops and GUI toolkits seem to have mucked with this enough that it seems as though I don't know what will remain in the X buffer and what will be in a toolkit's copy buffer. Therefore apps like XFCE's Clipman and KDE's clipboard manager are essential, especially with Firefox's address bar. As I see it, this whole paste buffer issue has become a bit of a roullette wheel over the past several years and is not just limited to Geany. While I happily left the look of Motif apps behind, I don't recall these sorts of text buffer issues with them. I will say this, getting used to the availability of the X buffer over the years, I find it a real limitation when it is not available on other platforms, i.e. MS Windows. </rant>
- Nate >>
[...]
Back in ye olden days, as I recall, text had to be selected by the mouse using the left button along with mouse movement for the text to be copied to the X buffer--selecting text with the keyboard did not copy it to the X buffer although the toolkit's provided buffer could be copied into with an accelerator key/menu selection. Then clearing the text by deleting it and then clicking elsewhere in the app and finally middle-clicking pasted the text. The buffer would retain that text until a new selection was made. At least that's how I recall it used to be done.
<rant> The newer desktops and GUI toolkits seem to have mucked with this enough that it seems as though I don't know what will remain in the X buffer and what will be in a toolkit's copy buffer. Therefore apps like XFCE's Clipman and KDE's clipboard manager are essential, especially with Firefox's address bar. As I see it, this whole paste buffer issue has become a bit of a roullette wheel over the past several years and is not just limited to Geany. While I happily left the look of Motif apps behind, I don't recall these sorts of text buffer issues with them. I will say this, getting used to the availability of the X buffer over the years, I find it a real limitation when it is not available on other platforms, i.e. MS Windows. </rant>
I think you are right, the unix system has been screwed up by trying to emulate the windows system on top of it and no-one is sure what anything is supposed to do, and no-one is sure what the "correct" behavior is (except its whatever I say :) or whatever todays GTK nerd thinks who wasn't born when Unix worked right. </rant2>
Cheers Lex
- Nate >>
--
"The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true."
Ham radio, Linux, bikes, and more: http://www.n0nb.us _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
* On 2012 24 Jan 05:04 -0600, Lex Trotman wrote:
I think you are right, the unix system has been screwed up by trying to emulate the windows system on top of it and no-one is sure what anything is supposed to do, and no-one is sure what the "correct" behavior is (except its whatever I say :) or whatever todays GTK nerd thinks who wasn't born when Unix worked right.
</rant2>
Heh! Agreed.
Along the same lines a thread popped up on Debian User this morning regarding clipboard issues:
http://lists.debian.org/debian-user/2012/01/msg01828.html
A followup included this link from JWZ's site:
http://www.jwz.org/doc/x-cut-and-paste.html
If I read Jamie's description correctly, what we are seeing happen is applications not holding onto the Primary selection when they should. This may well be a GTK issue and beyond Geany's/Scintilla's control.
- Nate >>
On Wed, Jan 25, 2012 at 12:07 AM, Nate Bargmann n0nb@n0nb.us wrote:
- On 2012 24 Jan 05:04 -0600, Lex Trotman wrote:
I think you are right, the unix system has been screwed up by trying to emulate the windows system on top of it and no-one is sure what anything is supposed to do, and no-one is sure what the "correct" behavior is (except its whatever I say :) or whatever todays GTK nerd thinks who wasn't born when Unix worked right.
</rant2>
Heh! Agreed.
Along the same lines a thread popped up on Debian User this morning regarding clipboard issues:
http://lists.debian.org/debian-user/2012/01/msg01828.html
A followup included this link from JWZ's site:
http://www.jwz.org/doc/x-cut-and-paste.html
If I read Jamie's description correctly, what we are seeing happen is applications not holding onto the Primary selection when they should. This may well be a GTK issue and beyond Geany's/Scintilla's control.
I think it is currently working right, primary is the *current* selection, which is nothing if you de-select. You will note that primary is *not* copied, only clipboard is copied and so is still available when it has been de-selected.
The confusion is that some applications (firefox for eg) copy primary as well and continue to make it available after it has been de-selected, remember its the sending application that is responsible for saying whats in a selection.
Or some users may be (unknowingly?) running clipboard managers in their desktops that do the same. IIUC XFCE is one of those.
GTK may have changed behavior too, although I can't find it in the release notes YMMV.
The third complication is that pastes between scintilla and scintilla don't go through the clipboard, so they can escape the clutches of the X selection/clipboard system and so can behave differently from the rest of the platform. Also Scintilla documentation explicitly states that the selection is nothing if nothing is highlighted, but that doesn't follow if you repeatedly middle paste.
In summary, there are too many things getting their fingers in the pie to be sure what is in control without a lot of effort, and it can be different on different distributions and with different user desktop configurations. I definitely don't think we should be getting our fingers in the mix as well.
Cheers Lex
On 01/23/2012 07:53 PM, Nate Bargmann wrote:
- On 2012 23 Jan 10:37 -0600, John Beaumont | Beecroft wrote:
After some fiddling I notice it only works if you don't deselect what you have highlighted. I normally highlight, click where I want then middle click. This behaviour works in all other GTK software but not Geany. Strange.
I concur. With this comment in mind I selected some text in Geany, left-clicked where I wanted to paste it, and then tried a middle-click. Nothing was pasted as the selection disappeared once the left-click was performed. However, a middle-cleck without first left-clicking resulted in pasted text as expected.
I can paste from Geany to another app and the selection remains highlighted even though Geany is not the focused app. Pasting from another app works so long as the text remains highlighted.
I'm using Geany 0.21 "Gromia" on Debian Sid with XFCE4 on one box and Gnome3 Shell on a laptop.
Yep, it seems like Geany, Scintilla or GTK+ is clearing the X selection when the selection is cleared in the editor widget, strange.
Cheers, Matthew Brush
On Mon, 23 Jan 2012 14:36:38 +0000 John Beaumont | Beecroft john.beaumont@beecroft-science.co.uk wrote:
Something I find very useful in Linux is the ability to highlight some text and middle click paste somewhere else without having to do Ctrl C then Ctrl V.
This doesn't seem to work in Geany. Is there some way I can enable it?
Which version of Geany are you using? IIRC there has been some issue and discussion about this function about 2years ago.... Should be Geany 0.19 or 0.20.
Cheers, Frank
On Mon, 23 Jan 2012 17:24:29 +0100 Frank Lanitz frank@frank.uvena.de wrote:
On Mon, 23 Jan 2012 14:36:38 +0000 John Beaumont | Beecroft john.beaumont@beecroft-science.co.uk wrote:
Something I find very useful in Linux is the ability to highlight some text and middle click paste somewhere else without having to do Ctrl C then Ctrl V.
This doesn't seem to work in Geany. Is there some way I can enable it?
Which version of Geany are you using? IIRC there has been some issue and discussion about this function about 2years ago.... Should be Geany 0.19 or 0.20.
Cheers, Frank
I am using Geany 0.20 on Xubuntu 10.10 with XFCE 4.6.2
On Mon, 23 Jan 2012 16:37:06 +0000 John Beaumont | Beecroft john.beaumont@beecroft-science.co.uk wrote:
I am using Geany 0.20 on Xubuntu 10.10 with XFCE 4.6.2
Same here, iow, it works with e.g. Gvim (Xfce-4.8.x), but it does not work with Geany-1.22 (git>=ef3d5b8).
Sincerely, Gour
Past and copy is the most used feature in an editor. In the plugin split Window it is not possible to use paste an copy. This is also very ugly.
Bug copy and past in split window Bug 3097780
best regards Rene
On 01/23/2012 06:50 PM, Gour wrote:
On Mon, 23 Jan 2012 16:37:06 +0000 John Beaumont | Beecroft john.beaumont@beecroft-science.co.uk wrote:
I am using Geany 0.20 on Xubuntu 10.10 with XFCE 4.6.2
Same here, iow, it works with e.g. Gvim (Xfce-4.8.x), but it does not work with Geany-1.22 (git>=ef3d5b8).
Sincerely, Gour
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On 01/23/2012 11:44 AM, René Doß wrote:
Past and copy is the most used feature in an editor. In the plugin split Window it is not possible to use paste an copy. This is also very ugly.
Bug copy and past in split window Bug 3097780
That's a whole separate bug, but the limitations of the split window plugin are well-known.
Related to the current issue, the X selection thing works fine for me in the split window plugin.
Cheers, Matthew Brush
On 23/01/2012 19:44, René Doß wrote:
Past and copy is the most used feature in an editor. In the plugin split Window it is not possible to use paste an copy. This is also very ugly.
As a workaround I've now enabled a simple popup menu that has copy, paste, undo.
Nick
On Tue, Jan 24, 2012 at 4:50 AM, Gour gour@atmarama.net wrote:
On Mon, 23 Jan 2012 16:37:06 +0000 John Beaumont | Beecroft john.beaumont@beecroft-science.co.uk wrote:
I am using Geany 0.20 on Xubuntu 10.10 with XFCE 4.6.2
Same here, iow, it works with e.g. Gvim (Xfce-4.8.x), but it does not work with Geany-1.22 (git>=ef3d5b8).
John, Gour,
Works here with
geany 1.22 (git >= 73bc824) (built on Jan 20 2012 with GTK 2.24.4, GLib 2.28.6)
on LMDE with XFCE 4.8.0 without me doing a thing.
Can you both paste the output of geany --version
@Gour since it works in other GTK apps I'm slightly at a loss, does it work globally, ie pasting the result of geany --version from the terminal into geany, the mailer etc or pasting geany highlighted text into the terminal. If not maybe you have turned it off but the other apps do something to turn it on.
Cheers Lex
Sincerely, Gour
-- What is night for all beings is the time of awakening for the self-controlled; and the time of awakening for all beings is night for the introspective sage.
http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Tue, 24 Jan 2012 08:29:19 +1100 Lex Trotman elextr@gmail.com wrote:
Can you both paste the output of geany --version
geany 1.22 (git >= ef3d5b8) (built on Dec 17 2011 with GTK 2.24.8, GLib 2.30.2)
@Gour since it works in other GTK apps I'm slightly at a loss, does it work globally, ie pasting the result of geany --version from the terminal into geany, the mailer etc or pasting geany highlighted text into the terminal.
It works when:
a) copying & pasting from one GTK app (e.g. Leafpad) into another
b) copying & pasting from one GTK app (e.g. Leafpad) into Geany
c) copying & pasting from one instance of Geany into another GTK app (e.g. Leafpad)
d) copying & pasting from one instance of Geany into another instance of Geany
It does not work when:
e) copying & pasting within the Geany
I'm going to rebuild my Geany with the trunk.
Sincerely, Gour
On Tue, 24 Jan 2012 08:46:20 +0100 Gour gour@atmarama.net wrote:
It does not work when:
e) copying & pasting within the Geany
Same with: geany 1.22 (git >= 9031335) (built on Jan 24 2012 with GTK 2.24.8, GLib 2.30.2)
Sincerely, Gour
On Tue, 24 Jan 2012 08:29:19 +1100 Lex Trotman elextr@gmail.com wrote:
On Tue, Jan 24, 2012 at 4:50 AM, Gour gour@atmarama.net wrote:
On Mon, 23 Jan 2012 16:37:06 +0000 John Beaumont | Beecroft john.beaumont@beecroft-science.co.uk wrote:
I am using Geany 0.20 on Xubuntu 10.10 with XFCE 4.6.2
Same here, iow, it works with e.g. Gvim (Xfce-4.8.x), but it does not work with Geany-1.22 (git>=ef3d5b8).
John, Gour,
Works here with
geany 1.22 (git >= 73bc824) (built on Jan 20 2012 with GTK 2.24.4, GLib 2.28.6)
on LMDE with XFCE 4.8.0 without me doing a thing.
Can you both paste the output of geany --version
@Gour since it works in other GTK apps I'm slightly at a loss, does it work globally, ie pasting the result of geany --version from the terminal into geany, the mailer etc or pasting geany highlighted text into the terminal. If not maybe you have turned it off but the other apps do something to turn it on.
Cheers Lex
Sincerely, Gour
-- What is night for all beings is the time of awakening for the self-controlled; and the time of awakening for all beings is night for the introspective sage.
http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
geany 0.20 (built on Jan 16 2011 with GTK 2.22.0, GLib 2.26.0, GIO)
I will build the latest version from GIT when I have a chance (will need some time to work how to do it).
My money is on the primary selection being cleared when a deselect happens. From reading this thread I can't tell whether that is the fault of GTK/Scintilla/Geany.
Thanks to all that looked into this.