Closed Bug 815277 Opened 13 years ago Closed 13 years ago

Source editor's 'Find' and 'Jump to line' commands should use the frontend UI

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 20

People

(Reporter: vporof, Assigned: vporof)

References

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(1 file)

No description provided.
Please explain.
Whiteboard: [sourceeditor]
Accel+F, for example (or via the context menu) brings up a prompt with a textbox input. We already have this UI exposed in the frontend via the searchbox and the # operator, or simply Ctrl+Shift+F. It seems to me that having two input modes for the same functionality is redundant and confusing. I think that the 'Find' and 'Jump to line' commands should defer control to the searchbox in the debugger's frontend UI.
Good point. You can do that with the current API: just replace the context menu item to point to a debugger command that focuses the search field. Similarly for the jump to line command. You can also replace the keyboard shortcuts. Please let me know if there's any problem.
Whiteboard: [sourceeditor]
(In reply to Mihai Sucan [:msucan] from comment #3) Sounds pretty straightforward, thanks for the tips!
Attached patch v1 — — Splinter Review
Also localized a bunch of commands, which, for some ancient reason, weren't.
Attachment #685349 - Flags: review?(past)
Comment on attachment 685349 [details] [diff] [review] v1 Review of attachment 685349 [details] [diff] [review]: ----------------------------------------------------------------- I like it! ::: browser/devtools/shared/LayoutHelpers.jsm @@ +326,5 @@ > * > * @param Node aElemKey > * The key element to get the modifiers from. > + * @param boolean aAllowCloverleaf > + * Pass true to avoid the cloverleaf meta-key string. s/true/false/
Attachment #685349 - Flags: review?(past) → review+
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Priority: -- → P2
(In reply to Panos Astithas [:past] from comment #6) > Comment on attachment 685349 [details] [diff] [review] > v1 > > Review of attachment 685349 [details] [diff] [review]: > ----------------------------------------------------------------- > > I like it! > > ::: browser/devtools/shared/LayoutHelpers.jsm > @@ +326,5 @@ > > * > > * @param Node aElemKey > > * The key element to get the modifiers from. > > + * @param boolean aAllowCloverleaf > > + * Pass true to avoid the cloverleaf meta-key string. > > s/true/false/ Or maybe you want to reword this a bit, because I still find it slightly confusing. How about: Pass true to use the cloverleaf symbol instead of a descriptive string.
(In reply to Panos Astithas [:past] from comment #7) > (In reply to Panos Astithas [:past] from comment #6) > > Or maybe you want to reword this a bit, because I still find it slightly > confusing. How about: Pass true to use the cloverleaf symbol instead of a > descriptive string. Ok. I too, don't not hate booleans. I'll just try this patch on Windows and Linux first, to make sure the keyboard shortcuts still work properly.
Tested shortcuts and they work on Windows and Linux.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Blocks: 816526
Depends on: 918017
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: