[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-08-02 Thread Peter Kasting
On Sat, Aug 1, 2009 at 9:53 AM, ptr727 pieter.vilj...@gmail.com wrote: I looked at the defect filing, and the immediate reply that it was as designed. Maybe pointing to this thread would provide more details around the expected behavior, and why, i.e. why copying URL should only place text

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-08-02 Thread Adam Barth
On Sun, Aug 2, 2009 at 8:35 PM, Peter Kastingpkast...@google.com wrote: I commented on the duplicate this bug was merged into. I think there's been a lack of clarity in the request here.  The problem is not that the text is a link; the problem is that the text is keeping its font, color, etc.

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-08-01 Thread ptr727
On Jul 31, 7:15 pm, Tony Chang t...@chromium.org wrote: I already filed a bug for this:http://code.google.com/p/chromium/issues/detail?id=18194 Thank you. I looked at the defect filing, and the immediate reply that it was as designed. Maybe pointing to this thread would provide more details

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread Peter Kasting
On Fri, Jul 31, 2009 at 10:28 AM, ptr727 pieter.vilj...@gmail.com wrote: I can think of no particular reason why the URL or a link needs to be formatted in anything other than plain text. Most people tend to prefer links to be formatted as links, so they can click them. Can the URL and link

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread PhistucK
Though, at least on Windows, that is what they (and the external application) are expecting, I mean, they expect the formatting not to change. Word, Outlook and rest are automatically turning the URL into a link if it is not already a link, anyway. GMail does not, true. But any other browser (I

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread Jeremy Orlow
On Fri, Jul 31, 2009 at 10:41 AM, PhistucK phist...@gmail.com wrote: Though, at least on Windows, that is what they (and the external application) are expecting, I mean, they expect the formatting not to change. Word, Outlook and rest are automatically turning the URL into a link if it is

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread Tony Chang
Can you elaborate on how you're copying a URL from Chrome? Are you using Ctrl+C, the page menu item, or the context menu? When I use the context menu, I only get the plain text of the URL. In the other two cases, doesn't every browser paste as HTML? On Fri, Jul 31, 2009 at 10:28 AM,

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread ptr727
As I was writing this and testing steps to replicate, I found that the HTML formatting did not always happen. I found the answer using the Windows ClipBook Viewer (it is only available on XP as clipbrd.exe, but works on Vista). When placing contents in the clipbook, the application that saves

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread Peter Kasting
On Fri, Jul 31, 2009 at 12:00 PM, ptr727 pieter.vilj...@gmail.com wrote: To summarize, in Chrome copying the URL from the UI is not the same as right click copy link. By copying the URL from the UI do you mean copying the URL from the Omnibox? Or copying from the webpage contents, using

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread Evan Stade
I have a feeling you are talking about the render view, and you should be asking these questions 'round webkit way -- Evan Stade On Fri, Jul 31, 2009 at 12:34 PM, Peter Kastingpkast...@google.com wrote: On Fri, Jul 31, 2009 at 12:00 PM, ptr727 pieter.vilj...@gmail.com wrote: To summarize,

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread Scott Violet
I just happen to be looking at clipboard code for page contents. Here's the code for writing a URL: void WebClipboardImpl::writeURL(const WebURL url, const WebString title) { ScopedClipboardWriterGlue scw(ClipboardGetClipboard()); scw.WriteBookmark(title, url.spec());

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread Ojan Vafai
This is kind of off topic, but should we consider adding a copy/cut-as-plain-text keyboard shortcut (ctrl+shift+c/x). That would be nicely symmetrical with ctrl+shift+v for paste-as-plain-text. Ojan On Fri, Jul 31, 2009 at 4:57 PM, Scott Violet s...@chromium.org wrote: I just happen to be

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread ptr727
By copying the URL from the UI do you mean copying the URL from the Omnibox? Or copying from the webpage contents, using ctrl-c? The edit box where you type the URL. Click in it with the mouse (give it focus), press Ctrl-A (select all), press Ctrl-C (copy). This results in the clipboard

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread Evan Stade
Ah, I am eating my words. So you don't like the targets/flavors/formats we write to when copying from the omnibox, correct? If you plan to create a patch to change this, here would be the place to discuss the technical details. If you are simply requesting a change, you might be better served

[chromium-dev] Re: Copy URL as plain text instead of HTML

2009-07-31 Thread Tony Chang
I already filed a bug for this: http://code.google.com/p/chromium/issues/detail?id=18194 On Fri, Jul 31, 2009 at 7:06 PM, Evan Stadeest...@chromium.org wrote: Ah, I am eating my words. So you don't like the targets/flavors/formats we write to when copying from the omnibox, correct? If you