Closed Bug 239940 Opened 22 years ago Closed 19 years ago

about:config - support for copying both name and value

Categories

(SeaMonkey :: UI Design, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: marcia, Assigned: jag+mozilla)

References

Details

Attachments

(2 files, 3 obsolete files)

STEPS: If you are trying to document a preference, you have to copy and paste twice (once for name, once for value). It would be easier if there were a way to copy both in one menu command. That would save a lot of people a lot of time.
Product: Core → Mozilla Application Suite
Severity: normal → enhancement
OS: Windows XP → All
Hardware: PC → All
Attached patch Patch rev. 1Splinter Review
I chose the format NAME:VALUE. I also took the liberty of binding this command to the Accel+C key.
Attachment #252772 - Flags: superreview?(neil)
Attachment #252772 - Flags: review?(neil)
Alternatively we could make the Edit/Copy menuitem do this.
Attached patch Fix Ctrl+C and Edit/Copy only (obsolete) — Splinter Review
This is not intended to replace attachment 252772 [details] [diff] [review]; you might not like this approach or you might want a context menuitem anyway.
Attachment #252921 - Flags: review?
Comment on attachment 252921 [details] [diff] [review] Fix Ctrl+C and Edit/Copy only Due to bugzilla dataloss you'll have to read my previous comment yourself :-(
Attachment #252921 - Flags: review? → review?(mano)
(In reply to comment #2) > Alternatively we could make the Edit/Copy menuitem do this. Excellent, I didn't know how to fix that. I'd still like to have it on the context menu though. Thunderbird for example has about:config as a popup without menubar (launched from Preferences), so there is no Edit menu.
Comment on attachment 252772 [details] [diff] [review] Patch rev. 1 >+function copyPref() >+{ >+ gClipboardHelper.copyString(gPrefView[view.selection.currentIndex].prefCol + ':' + >+ gPrefView[view.selection.currentIndex].valueCol); >+} >+ Since we use that pref object twice I think it deserves a local, as in attachment 252921 [details] [diff] [review] (which needs to be changed to call copyPref of course). I also now think that we should use ";" as the separator and not ';' or "\t". >+ <key key="&copyPref.key;" modifiers="accel" oncommand="copyPref();"/> Given attachment 252921 [details] [diff] [review] we'll need to remove this ;-) >-<!ENTITY new.accesskey "N"> >+<!ENTITY new.accesskey "e"> Apparently consonants are preferred so this should be a w.
Attachment #252772 - Flags: superreview?(neil)
Attachment #252772 - Flags: superreview+
Attachment #252772 - Flags: review?(neil)
Attachment #252772 - Flags: review+
Comment on attachment 252772 [details] [diff] [review] Patch rev. 1 Checked in with the points in comment 6 addressed.
Neil, I tried your patch (in SeaMonkey and Firefox) and it seems the Copy menu item isn't highlighted in some situations. For SeaMonkey: 1. type about:config ENTER in location bar (page loads, focus is on Filter) 2. TAB once (focus is on the list) 3. click on a row 4. click on the Edit menu => Copy is grey For Firefox (the above seems to work) 1. type about:config ENTER in location bar (page loads, focus is on Filter) 2. click on a column header, e.g. "Preference Name" 3. click on a row 4. click on the Edit menu => Copy is grey clicking in the Filter text box and then clicking on a row seems to fix it. Also, CTRL+C works fine even though the menu item is grey...
Attached patch Fix Edit/Copy (obsolete) — Splinter Review
I moved the addition of the controller until after the view was created. I fixed the updating by calling updateCommands from the onselect handler.
Attachment #252921 - Attachment is obsolete: true
Attachment #252949 - Flags: review?(mats.palmgren)
Attachment #252949 - Flags: review?(mano)
Attachment #252921 - Flags: review?(mano)
Comment on attachment 252949 [details] [diff] [review] Fix Edit/Copy r=mats
Attachment #252949 - Flags: review?(mats.palmgren) → review+
I think this broke 'about:config' in Camino: see bug 368457.
Depends on: 368457
Not only does this add the controller to the tree but it now removes it too!
Attachment #252949 - Attachment is obsolete: true
Attachment #253532 - Flags: review?
Attachment #252949 - Flags: review?(mano)
Comment on attachment 253532 [details] [diff] [review] Fix Edit/Copy with Mano's comments Sigh, when is Bugzilla going to fix its data loss issue :-(
Attachment #253532 - Flags: review? → review?(mano)
Attachment #253532 - Attachment is obsolete: true
Attachment #253547 - Flags: review?(mano)
Attachment #253532 - Flags: review?(mano)
Comment on attachment 253547 [details] [diff] [review] Really fix Edit/Copy r=mano
Attachment #253547 - Flags: review?(mano) → review+
My patch is now in so this is all fixed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: