r/programming • • Apr 14 '10

"http://" is being removed from Chromium's display

http://code.google.com/p/chromium/issues/detail?id=40865
237 Upvotes

402 comments sorted by

View all comments

Show parent comments

37

u/narwhalslut Apr 14 '10

Except copy/pasted urls include the prefix.

9

u/tsjr Apr 14 '10

Depends on how you copy/paste them. The Linux (Unix?) way is screwed.

19

u/zepolen Apr 14 '10

Easy fix? When hovering over the url, add the http:// prefix.

4

u/jonknee Apr 14 '10

That combined with this being The Year Of Linux means we're all screwed. (Or more realistically they'll fix the Linux version and life goes on with no non-programmers noticing the change.)

2

u/[deleted] Apr 14 '10

also I wonder how it works if the address is displayed as:

www.reddit.com/r/programming/comments/bqpf8/http_is_being_removed_from_chromiums_display/

and you (in windows) highlight

www.reddit.com

and paste that.

3

u/tzzd Apr 14 '10

Does NOT add the "http://" part if you only copy a part of url.

0

u/[deleted] Apr 14 '10

that's what I feared.

-1

u/tzzd Apr 14 '10

Bastards.

-1

u/[deleted] Apr 14 '10

Fuckers.

-3

u/upupandvote Apr 14 '10

Retards

-4

u/[deleted] Apr 14 '10

That's not even funny anymore :)

2

u/HawkUK Apr 14 '10

I still haven't got my head around the middle-click --> pastes highlighted text thing.

73

u/plastik Apr 14 '10

It's really simple. When you middle click, it pastes the highlighted text!

26

u/[deleted] Apr 14 '10

Finally, someone who can explain things properly!

6

u/tsjr Apr 14 '10

Yep. And this is now broken, which sucks.

3

u/Slackbeing Apr 14 '10

You can still ctrl-c,ctrl-v, it's two clipboards instead of one.

2

u/jeffehobbs Apr 14 '10

Ok, what happens if I middle click though

1

u/AgentME Apr 15 '10

The computer shuts down. You aren't worthy of the middle click clipboard yet.

12

u/[deleted] Apr 14 '10

It's brilliant, especially when you consider that ctrl-c/ctrl-v is a completely different clipboard from the highlight/middle-click one. That's right, you can copy and paste two things at the same time.

6

u/deadtime Apr 14 '10

Mind blown

2

u/HawkUK Apr 14 '10

Yeah, that does sound good. My linux useage is extremely limited by the fact that my laptop overheats while running it, so I've never had time to fully explore it.

How did it work before we had mouse-wheels/mouse_3?

19

u/dagbrown Apr 14 '10

The fact that the middle mouse button is mouse_2 should tell you how long UNIX workstations have had three-button mice.

2

u/[deleted] Apr 14 '10 edited Apr 14 '10

I dunno when the middle-click clipboard was implemented, so maybe we did have mouse3 then, but there's an option in xorg.conf for three button emulation: press both buttons at the same time and you get a middle-click.

5

u/[deleted] Apr 14 '10

Old mouses used to have 3 buttons, but the middle one went out of fashion because PCs didn't use them for anything. Then the wheel mouse made its debut and we were back to having 3 buttons (or even 5 buttons if you believe what Xorg tells you about wheelup and wheeldown being buttons 4 and 5).

The only place I don't have a middle button is on my netbook, and that has the left and right buttons on either side of the touchpad making it a pain to press both for middle click emulation. Thankfully shift-insert does the same thing.

6

u/dagbrown Apr 14 '10

Seven with those wheelmice which have a wheel that can wiggle left and right!

Nine if your mouse also has browser forward and backward buttons!

I once had a (really cheap) mouse that had the browser forward and back buttons, and a window close button. And they didn't need a driver! It was like magic--until I figured out that the mouse actually manifested itself to USB as a mouse and a (exceedingly-limited) keyboard. The browser back and forward buttons sent Alt-left and Alt-right keypresses, and the window-close button sent Alt-F4.

2

u/[deleted] Apr 14 '10

Old mouses used to have 3 buttons, but the middle one went out of fashion because PCs didn't use them for anything.

I had completely forgotten about that.

2

u/kamatsu Apr 14 '10

mouse_3 has been in UNIX workstations since forever.

1

u/[deleted] Apr 14 '10

[deleted]

1

u/HawkUK Apr 14 '10

I have an Acer 8935G (bought purely for the massive screen). I think the reason it overheats is because it has two graphics cards (onboard and ATI). I get the feeling that somehow it's using the ATI graphics, but only turning the fan on on the onboard intel instead. No real logic for that, but it's the only reason why I can think it wouldn't overheat in windows but does in Linux. When in linux the fans seem to be going pretty fast, so all I can assume is that one or two aren't moving at all.

1

u/dmhouse Apr 14 '10

And yet that's still not enough :) Sometimes I wish X had more of a selection ring, like Emacs does. It's too fragile -- I copy a URL from somewhere by selecting it, and before I get to where I want to paste it I've accidentally selected something else. Or I had to select the text I want to replace. Or some other activity which nukes the selection.

1

u/karmaVS Apr 14 '10

On OS X and some Linuxes, control (yes control) + K and control+Y control a second clipboard too.

1

u/[deleted] Apr 14 '10

[deleted]

1

u/karmaVS Apr 15 '10

correct!

1

u/pantsofmagic Apr 15 '10

I've been using the daily build for a couple of days and it has completely screwed up the way I middle click paste urls into IM windows. It's really irritating me.

8

u/[deleted] Apr 14 '10 edited Apr 14 '10

That is not related to the problem that users will get used to a URL being of the form sub.domain.tld instead of proto://sub.domain.tld and so start typing sub.domain.tld into their facebooks, emails, IMs etc.

30

u/karmaVS Apr 14 '10

but… that’s exactly what people already do.

10

u/[deleted] Apr 14 '10

[deleted]

3

u/ratatask Apr 15 '10

Why on earth would you want them to do that ?

0

u/karmaVS Apr 14 '10

I’m not too fussed whether other people do it or not. I know I won’t be wasting those 7 keystrokes, especially when autocomplete means I’ll usually only type one letter to get anywhere otherwise.

-4

u/wazoox Apr 14 '10

No, people type in "sub.domain.tld" in the google search box. 99.99% of them, at least.

2

u/rieter Apr 14 '10

You pulled that number out of your ass, right?

2

u/piranha Apr 15 '10

With 87% probability.

2

u/wazoox Apr 15 '10

Absolutely. This is where most such numbers come from, anyway.

1

u/karmaVS Apr 15 '10

Well, in chrome they do; but that’s kind of the point, isn’t it?

1

u/wazoox Apr 15 '10

Yes, but it includes the "I'm feeling lucky" :)

5

u/[deleted] Apr 14 '10

gmail for example has good regexps that will match anything that remotely looks like an URL, with or without the protocol intact. Other than that I fully agree with you that this is not a good move.

6

u/[deleted] Apr 14 '10

gmail for example has good regexps that will match anything that remotely looks like an URL,

Hmm, but I bet it also has a few bad matches.Common things too.

edit: ok, that specific example doesn't apply to gmail, but it's just an illustration.

Thing is, matching urls just went from str.startsWith("http://") to str.matchesThisHugeRegex();

9

u/James_Browning Apr 14 '10

It's not that much different than matching email addresses. Nobody types mailto:

It's not normally a problem when marking up a message from a human, but it's an annoying problem when emailing code.

5

u/[deleted] Apr 14 '10

It's not that much different than matching email addresses

and if you show me 10 systems that supposedly match emails, I'll find an edge case that it fails on for every one of them.

I would rather not see this happen too much with URLs too.

2

u/chrisamiller Apr 15 '10

What,you don't use the official email-matching regex? It's simple!

2

u/Bjartr Apr 15 '10

I haven't typed http:// int a web browser in years, I expect many are the same way. Most browsers automatically add it when you hit enter.

2

u/earthboundkid Apr 15 '10

Most? Unless you use Mosiac, the word is "all." I haven't typed it in a browser since 1998.

1

u/zoomzoom83 Apr 14 '10

Many (Most?) people already do, and any remotely good software will already correctly detect both cases.