Bug 395688 - Middle click paste URL
Summary: Middle click paste URL
Status: RESOLVED FIXED
Alias: None
Product: Falkon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-21 10:51 UTC by Jonathan Riddell
Modified: 2018-07-17 10:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Riddell 2018-06-21 10:51:33 UTC
A wish from me, old versions of Opera let you middle click anywhere in the page and it would 'paste' the selection clipboard as a URL and load that page.  It's a very slick way of opening a page.
Comment 1 Xavier Brochard 2018-06-30 11:47:04 UTC
I hate this :-)
Comment 2 Xavier Brochard 2018-06-30 12:10:42 UTC
You can already paste the url with middle-click on new tab button.
Comment 3 Enrico Scholz 2018-07-02 11:50:51 UTC
(In reply to Xavier Brochard from comment #2)
> You can already paste the url with middle-click on new tab button.

What is the "new tab button"?  The "+" button at the bottom left border (vertical tabs extension)?  Pasting url does not work there.

But it would be be pretty non intuitive... I used to paste urls since Netscape 4.0 by middle clicking into the page and would have never tried the (non working) "+" button...

I tried pasting into the url text field -> not working; mixes url with existing text; middle clicking to any other element in the url bar -> no effect.
Comment 4 Juraj 2018-07-13 10:34:13 UTC
Hello,
I will try to answer few of your questions.

"What is the "new tab button"?"
- The "'+' New Tab" button on top toolbar works as described.

"The "+" button at the bottom left border (vertical tabs extension)?  Pasting url does not work there."
- The "'+' New Tab" button on "Vertical Tab" extension does not support this feature

In my opinion this should be done in form of an extension/addon, I was able to create prototype in one evening, if you desire it I might continue and finish it.
PS: I was just interested in the idea, thats all.
Comment 5 Enrico Scholz 2018-07-13 10:57:47 UTC
(In reply to Juraj from comment #4)

> In my opinion this should be done in form of an extension/addon, 

Chromium has such an extension too and it does not work well.  E.g. when pasting into a text field, I expect that the url is pasted into the text field, but not that a new page is opened (which happens with the chromium extension).

I am in doubt that the extension api is powerful enough to handle such cases and think that it belongs into core.
Comment 6 Juraj 2018-07-13 13:19:01 UTC
(In reply to Enrico Scholz from comment #5)
> Chromium has such an extension too and it does not work well.  E.g. when
> pasting into a text field, I expect that the url is pasted into the text
> field, but not that a new page is opened (which happens with the chromium
> extension).
Chromium is another world.
Based on what i saw in other plugins this can be done.

> I am in doubt that the extension api is powerful enough to handle such cases
> and think that it belongs into core.
Only few people are interested in such feature
which means it belongs to extensions.
Comment 7 David Rosca 2018-07-17 10:14:10 UTC
Git commit 82c8d50f9a7f955bd2bc35b549c85f6a6c76bc53 by David Rosca, on behalf of Juraj Oravec.
Committed on 17/07/2018 at 10:12.
Pushed by drosca into branch 'master'.

[Feature] Add python plugin MiddleClickLoader

Summary:
This plugin loads text from selection clipboard in tab after pressing mouse middle button (pressing mouse wheel).
Url / text from selection clipboard can be loaded in: Current Tab, New Tab, New Window
There is an option to use only valid url otherwise it will search using default search engine.

Reviewers: #falkon, drosca

Subscribers: falkon

Tags: #falkon

Differential Revision: https://phabricator.kde.org/D14155

M  +1    -0    src/scripts/CMakeLists.txt
A  +11   -0    src/scripts/middleclickloader/Messages.sh
A  +51   -0    src/scripts/middleclickloader/__init__.py
A  +90   -0    src/scripts/middleclickloader/mcl_handler.py
A  +25   -0    src/scripts/middleclickloader/mcl_loadmode.py
A  +69   -0    src/scripts/middleclickloader/mcl_settings.py
A  +105  -0    src/scripts/middleclickloader/mcl_settings.ui
A  +11   -0    src/scripts/middleclickloader/metadata.desktop

https://commits.kde.org/falkon/82c8d50f9a7f955bd2bc35b549c85f6a6c76bc53