Merge lp://staging/~dcaro/clicompanion/fix-923535 into lp://staging/clicompanion

Proposed by David Caro
Status: Merged
Approved by: Marek Bardoński
Approved revision: 112
Merged at revision: 108
Proposed branch: lp://staging/~dcaro/clicompanion/fix-923535
Merge into: lp://staging/clicompanion
Prerequisite: lp://staging/~dcaro/clicompanion/fix-623475
Diff against target: 382 lines (+247/-10)
7 files modified
MANIFEST (+2/-0)
clicompanionlib/config.py (+1/-1)
clicompanionlib/plugins.py (+41/-1)
clicompanionlib/tabs.py (+48/-7)
clicompanionlib/view.py (+2/-1)
plugins/LaunchpadURL.py (+62/-0)
plugins/StandardURLs.py (+91/-0)
To merge this branch: bzr merge lp://staging/~dcaro/clicompanion/fix-923535
Reviewer Review Type Date Requested Status
Marek Bardoński Approve
Review via email: mp+90633@code.staging.launchpad.net

Description of the change

Added the urls plugins to allow the user to click on urls to open them, added the standard (http/https/ftp/ftps/file/news/sip/etc.) and launchpad (lp:bugcode or lp:branch) to the pluginslist.

To post a comment you must log in.
111. By David Caro "<email address hidden>"

added new url plugins

Revision history for this message
Marek Bardoński (bdfhjk) wrote :

Hi David!

Sorry for long time before review, I have much work with preparation for very important for me contest.

I have applied your path, but I can't see how it work. After typing http://www.google.com in terminal and click [enter], it isn't appear as link and isn't clickable.

Please explain, how your path should work - and thank you for working on it!

Marek

review: Needs Information
Revision history for this message
David Caro (dcaro) wrote :

You have to go to the plugins configuration and enable them first (that's because the config file is not overwrited if it exists).

So for this to work, just go to Preferences -> Plugins and double click the checkbox of the StandardURLs plugin and LaunchpadURL plugin. After this (inmediatly, you don't need to restart) when you pass the mouse over a recognized url, it will be underscored, in that moment you can press ctrl+click and that will open a tab/window of your preferred browser.

I hope you like it!

Revision history for this message
Marek Bardoński (bdfhjk) wrote :

OK, thanks for explain. I will try it now.

Revision history for this message
Marek Bardoński (bdfhjk) wrote :

I found small bugs:

After typing lp:clicompanion and pressing [enter], then created link is '
https://code.launchpad.net/+branch/clicompanion:%20nie%20znaleziono%20poleceniauser@user-GX780-GT780-GT780DX:~/clicompanion/clicompanion$%20%5EC'
created from underlined ' lp:clicompanion: nie znaleziono polecenia \n
user@user-GX780-GT780-GT780DX:~/clicompanion/clicompanion'.

After typing lp:12312 and pressing [enter], I have two links - one correct
to bug, and one '
https://code.launchpad.net/+branch/12122:%20nie%20znaleziono%20poleceniauser@user-GX780-GT780-GT780DX:~/clicompanion/clicompanion$%20%5EC
'

112. By David Caro "<email address hidden>"

The url matching regexp was way too permissive, and incorrect paths were
matched

Revision history for this message
David Caro (dcaro) wrote :

Fixed, the regexp matching launchpad branches was too permissive and false positives were matched. It should be fixed now (it's a lot more strict, so maybe real urls that have some strange chars in them are not matched correctly, but now most of urls will match).

Also you don't need to hit enter for the url to get underscored ;)

Revision history for this message
Marek Bardoński (bdfhjk) wrote :

2012/3/4 David Caro <email address hidden>

> Fixed, the regexp matching launchpad branches was too permissive and false
> positives were matched. It should be fixed now (it's a lot more strict, so
> maybe real urls that have some strange chars in them are not matched
> correctly, but now most of urls will match).
>
> Also you don't need to hit enter for the url to get underscored ;)
>
> --
> https://code.launchpad.net/~dcaro/clicompanion/fix-923535/+merge/90633<https://code.launchpad.net/%7Edcaro/clicompanion/fix-923535/+merge/90633>
> You are reviewing the proposed merge of lp:~dcaro/clicompanion/fix-923535
> into lp:clicompanion.
>

OK, I will test it soon.

Revision history for this message
Marek Bardoński (bdfhjk) wrote :

Tested - problems solved.

Thanks for implementing nice feature!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches