Closed
Bug 299799
Opened 19 years ago
Closed 19 years ago
Add "copy URL to clipboard" contextual menu item to History
Categories
(Camino Graveyard :: History, enhancement)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: alqahira, Assigned: bugzilla-graveyard)
Details
(Keywords: fixed1.8)
Attachments
(1 file, 3 obsolete files)
|
5.54 KB,
patch
|
bugzilla-graveyard
:
review+
bugzilla-graveyard
:
superreview+
|
Details | Diff | Splinter Review |
Unlike in Bookmarks, there's no easy way to copy a visited URL elsewhere. The URL is not editable like in Bookmarks and there's no Get Info inspector, either. The only ways to copy a URL (for pasting into a textbox or other program) are either 1) visist the site or 2) drag the history item to the URL bar and then copy. A "Get Info" inspector could display info about the history item (as in the columns, as done by the Bookmarks inspector) and let users copy the info by not edit it. A "copy URL to clipboard" contextual menu item/"action" button item would do just that on any selected History item. Come to think of it, "copy URL to clipboard" would be useful in the Bookmarks contextual menu/"action" button, too. Nothing in existing bugs about that.
| Reporter | ||
Comment 1•19 years ago
|
||
We should add this to the "action" button's menu, too, of course, to stay in sync with bookmarks. Copy URL to clipboard might be contextual menu overload (esp. if we add Get Info to History)?
| Reporter | ||
Comment 2•19 years ago
|
||
(In reply to comment #0) > Come to think of it, "copy URL to clipboard" would be useful in the Bookmarks > contextual menu/"action" button, too. Nothing in existing bugs about that. Er, that would be bug 254313 :oops:
Comment 3•19 years ago
|
||
I'll take this bug along with the one on bookmarks. Is a full "get info" inspector actually useful for anything other than allowing you to copy the URL? If not its probably not worth adding, the context menu option is a much better way of copying the URL.
Assignee: mikepinkerton → Bruce.Davidson
| Reporter | ||
Comment 4•19 years ago
|
||
If we ever allow users to hide columns in the manager, a Get Info inspector could show all the info, but since I don't think there's a bug for that, we can cross that bridge if we get there. The only other thing I can see it having is if we currently track the number of visits each history item has; the columns only display last and first visit. Still, if it's warranted, someone can file a new bug for the inspector. The CM will solve my problem and keeps to the spirit of simplicity :-)
Summary: Add "get info" inspector and/or "copy URL to clipboard" contextual menu item to History → Add "copy URL to clipboard" contextual menu item to History
| Assignee | ||
Comment 5•19 years ago
|
||
Bruce, any progress on this? I just realised how useful this would be today. If you're not actively working on a patch, I might be able to whip something up in the next couple weeks. cl
| Assignee | ||
Comment 6•19 years ago
|
||
Having heard nothing from Bruce since Monday, taking this and bug 254313.
Assignee: Bruce.Davidson → bugzilla
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 7•19 years ago
|
||
Question. In History, and *only* in History, we have disabled Copy in the Edit menu. Why? It works in the Bookmarks pane of the Bookmarks Manager. I ask because cmd-C is a useful shortcut for copying the bookmark item URL (see bug 254313) and works great there, and I'd like it to be available in History, too. I want to know why we disabled Copy in History, though, before I go re-enabling it. cl
| Reporter | ||
Comment 8•19 years ago
|
||
(In reply to comment #7) > I want to know why we disabled Copy in History, though, before I go > re-enabling it. I assume it's disabled because it's never been hooked up; see bug 302866, bug 155484 (esp. bug 155484 comment 5), and bug 280028.
Comment 9•19 years ago
|
||
When you Copy a bookmark item, you can actually paste that item somewhere else. That's not true for History, but copying the URL could make sense. But what if I select > 1 and Copy?
| Assignee | ||
Comment 10•19 years ago
|
||
(In reply to comment #9) > When you Copy a bookmark item, you can actually paste that item somewhere else. > That's not true for History You could copy a History item into Bookmarks, I suppose. >, but copying the URL could make sense. But what if > I select > 1 and Copy? Same thing that happens if you select more than one bookmark? Ideally, anyway. cl
| Assignee | ||
Comment 12•19 years ago
|
||
Oops. Left an NSLog() in there. That's been removed now. :)
Attachment #205196 -
Attachment is obsolete: true
Attachment #205280 -
Flags: review?(sfraser_bugs)
Attachment #205196 -
Flags: review?(sfraser_bugs)
Comment 13•19 years ago
|
||
Comment on attachment 205280 [details] [diff] [review] version 2, now with less debug code sr=pink. looks ok... one nit + for ( unsigned int i = 0; i < [historyItemsToCopy count]; ++i ) { avoid the extra spacing around the parens should just be: for (unsigned int....++i)
Attachment #205280 -
Flags: superreview+
Comment 14•19 years ago
|
||
Comment on attachment 205280 [details] [diff] [review] version 2, now with less debug code >Index: HistoryOutlineViewDelegate.h >=================================================================== >RCS file: /cvsroot/mozilla/camino/src/history/HistoryOutlineViewDelegate.h,v >retrieving revision 1.5 >diff -u -8 -r1.5 HistoryOutlineViewDelegate.h >--- HistoryOutlineViewDelegate.h 29 Jun 2005 01:22:14 -0000 1.5 >+++ HistoryOutlineViewDelegate.h 8 Dec 2005 05:52:59 -0000 >@@ -69,16 +69,19 @@ > > - (IBAction)openHistoryItem:(id)sender; > - (IBAction)openHistoryItemInNewWindow:(id)aSender; > - (IBAction)openHistoryItemInNewTab:(id)aSender; > - (IBAction)openHistoryItemsInTabsInNewWindow:(id)aSender; > > - (IBAction)deleteHistoryItems:(id)sender; > >+- (IBAction)copyURLs:(id)sender; >+- (void) copyHistoryURLs:(NSArray*)historyItemsToCopy toPasteboard:(NSPasteboard*)aPasteboard; Match the spacing of surrounding methods >Index: HistoryOutlineViewDelegate.mm >=================================================================== >+// >+// Copy a set of history URLs to the specified pasteboard. >+// We don't care about item titles here, nor do we care about format. >+// >+- (void) copyHistoryURLs:(NSArray*)historyItemsToCopy toPasteboard:(NSPasteboard*)aPasteboard >+{ >+ // handle URLs, and nothing else, for simplicity. >+ [aPasteboard declareTypes:[NSArray arrayWithObject:kCorePasteboardFlavorType_url] owner:self]; >+ >+ NSMutableArray* urlList = [NSMutableArray array]; >+ for ( unsigned int i = 0; i < [historyItemsToCopy count]; ++i ) { An NSEnumerator would be cleaner. r=me, but feel free to udpate the patch before someone checks it in.
Attachment #205280 -
Flags: review?(sfraser_bugs) → review+
| Assignee | ||
Comment 15•19 years ago
|
||
Fixed per comments, moved review flags.
Attachment #205280 -
Attachment is obsolete: true
Attachment #205354 -
Flags: superreview+
Attachment #205354 -
Flags: review+
| Assignee | ||
Comment 16•19 years ago
|
||
...and one more update before checkin. cl
Attachment #205354 -
Attachment is obsolete: true
Attachment #205358 -
Flags: superreview+
Attachment #205358 -
Flags: review+
| Assignee | ||
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•