A middle mouse button paste in gedit does not move cursor to insertion point

Bug #410072 reported by jasonq
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gedit
Invalid
Low
gtk+3.0 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: gedit

Use the middle mouse button to paste highlight-selected text does not move the cursor (and the viewed text) to the chosen insertion point. This is dangerous when the selected text and the insertion point are far apart because the user is left unsure if the paste succeeded until scrolling to the insertion point (which can be difficult to refind in a long document or in source code).

I am using the gedit in Ubuntu 9.04. I believe this to be a fairly recent regression as I seem to recall it working just a few months ago as I expect. I have tried deleting the gedit config directory and the behavior persists. I turn on most of the plugins available by default but that doesn't seem to be the cause.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the bug report. This particular bug has already been reported, but feel free to report any other bugs you find.

Changed in gedit (Ubuntu):
importance: Undecided → Low
status: New → Invalid
Revision history for this message
jasonq (jason-quinn) wrote :

Which bug number does it duplicates?

Why would the importance be low? This is a major bug.

Revision history for this message
Bigfoot77210 (bigfoot77210) wrote :

I agree with Jason.
Just try to write your PhD report in Latex using gedit.
Each time you want to copy and past something with the mouse, you're lost. You have to scroll 300 lines to go back to your previous position.

What is the interest in going back to the original text of the copy and past action? What if you want to copy and paste at several positions in the text. Just look at the following example:

line 056: text to copy and paste

line 102: paste the text here

line 150: paste again here
line 151: paste again here
line 152: paste again here and continue writting your poetry…

Each time you paste, you go back to line 56… You must scroll the screen almost 5 times! It is just borring. I do not speak about the other bugs of this feature in gedit, such as buffer erased when you left click on the document (https://bugs.launchpad.net/bugs/34629). Combining all those bugs make this great feature almost useless in gedit as it is for OOo 3.

Why is this feature more easy to use in the terminal than in a text editor?

This feature should work in gedit like it works in other applications. That's what I think.

Revision history for this message
jasonq (jason-quinn) wrote :

changing back to new until at supposed duplicate is given.

Changed in gedit (Ubuntu):
status: Invalid → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

it would be constructive to rather look to open bugs than reopening a duplicate

Changed in gedit (Ubuntu):
status: New → Invalid
Revision history for this message
jasonq (jason-quinn) wrote :

Sebastien, could you please quote the duplicate bug number as already asked? If it is a duplicate, it is difficult to find the dup from the search terms I am using.

Revision history for this message
Sebastien Bacher (seb128) wrote :

see bug #255638 for example

Revision history for this message
jasonq (jason-quinn) wrote :

Bug #255638 is somewhat different since that bug pastes to a "random location" and is not deterministic. This bug pastes to wherever the cursor was last positioned and is reproducible. Bug #234911 is closer to this one though and probably the dupe.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Reopening for now, somebody having the issue should take that upstream they will probably have better ideas and can tell if that's a choice or a bug

Changed in gedit (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
status: Invalid → New
Revision history for this message
Raimund Andersen (anderse-gmx) wrote :

Just found the bug upstream:

https://bugzilla.gnome.org/show_bug.cgi?id=575251
They think it's

Priority: Normal
Severity: minor

Seems to exist since 2.25 and was reported nearly a year ago (2009-03-13), but is still 'unconfirmed' !!
Im thinking about simply using another editor...

Revision history for this message
Raimund Andersen (anderse-gmx) wrote :

Ok, now here comes the workaround:

http://github.com/potyl/gedit-scrollpaste

Emmanuel Rodriguez aka 'potyl' wrote a 'plugin' which fixes the scrolling when pasting text with the mouse.
Unfortunately, it's placed in sourcecode only in a 'repository-style', which means there's no configure script.
As I'm not very familar with these auto* tools, it took me a day to make it compile, but for me it's worth the pain.

In short form: After archiv extraction, call in the top level dir:

intltoolize --force --copy,
intltool-prepare,
aclocal,
automake --add-missing,
autoheader,
autoconf,

Then I created a 'Makefile.in' on the top level dir:
--------------------
all:
 $(MAKE) -C "src" || break ;
--------------------

Now it should be possible to call the usual configure, make.
I prefered to copy the files manually instead of 'make install'.

I can confirm this thing works for me!

BTW: Potyl demands the use of gtksourceview-2.0 >= 2.8.1, so it's not applicable to Ubuntu jaunty and below.

Revision history for this message
Oliver Joos (oliver-joos) wrote :

Wanted to add bug watch, but saw that Raimund already did. I just had to enable it.

Changed in gedit:
importance: Undecided → Unknown
status: New → Unknown
Changed in gedit (Ubuntu):
status: New → Triaged
Revision history for this message
Oliver Joos (oliver-joos) wrote :

RESOLVED by a patch of Ignacio Casal Quinteiro!

Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue has been fixed in gtk

Changed in gedit (Ubuntu):
status: Triaged → Fix Committed
affects: gedit (Ubuntu) → gtk+2.0 (Ubuntu)
affects: gtk+2.0 (Ubuntu) → gedit (Ubuntu)
affects: gedit (Ubuntu) → gtk+2.0 (Ubuntu)
Changed in gedit:
importance: Unknown → Low
Changed in gedit:
status: Unknown → Invalid
affects: gtk+2.0 (Ubuntu) → ubuntu
Changed in ubuntu:
assignee: Ubuntu Desktop Bugs (desktop-bugs) → nobody
status: Fix Committed → Fix Released
affects: ubuntu → gtk+3.0 (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.