debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Explain the gotoline shortcut

Open nicofrand opened this issue 9 years ago • 13 comments

As there is an explanation to say "Use CTRL+p" or "Use CTRL+Shift+F" to search files/functions, there should be an explanation to say "Use CTRL+:" (or "CTRL+;" on azerty layouts) to go to a specific line.

"CTRL+:" or "CTRL+;" are really not easy to find out, and the keys are not easy to reach… I wish I could tell the debugger to use "CTRL+G" instead like on Chrome or some IDEs, but an explanation would be great to begin with I think.

nicofrand avatar Nov 27 '17 17:11 nicofrand

if CTRL+g is not used it can be a second (compatibility) shortcut for goto line

gnadelwartz avatar Nov 27 '17 20:11 gnadelwartz

CTRL+g is being used, but perhaps not for the most necessary action. It is currently used to search again.

We need to add an explanation in any case; it can be added in the shortcuts overlay.

screen shot 2017-11-28 at 12 35 07
diff --git a/src/components/ShortcutsModal.js b/src/components/ShortcutsModal.js
index a842b5f0..f5179e4c 100644
--- a/src/components/ShortcutsModal.js
+++ b/src/components/ShortcutsModal.js
@@ -86,6 +86,7 @@ export class ShortcutsModal extends Component<Props> {
           L10N.getStr("shortcuts.functionSearch"),
           formatKeyShortcut(L10N.getStr("functionSearch.key"))
         )}
+        // add the CTRL+: shortcut here
       </ul>
     );
   }

codehag avatar Nov 28 '17 11:11 codehag

/claim @davisv007, @RobertHosking, @sanginovs and I will be taking a look at it.

tahmidefaz avatar Nov 28 '17 16:11 tahmidefaz

Thanks for claiming the issue! :wave:

!!! Please check your email and confirm the invitation

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Nov 28 '17 16:11 claim

/unclaim We got some feedback on a different PR request that we did. Unclaiming it because if anyone wants to work on it can go ahead. Sorry for the inconvenience.

tahmidefaz avatar Nov 30 '17 15:11 tahmidefaz

/claim I will be working on this issue along with @michaelm396 & @coledu

JacobTM avatar Nov 30 '17 15:11 JacobTM

Thanks for claiming the issue! :wave:

!!! Please check your email and confirm the invitation

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Nov 30 '17 15:11 claim

the ctrl+g shortcut comes from editors like atom

Try

  1. cmd+f
  2. search
  3. close search bar
  4. cmd+g - will jump to the next result

http://recordit.co/NVvJZNVJEe

not sure what to do here. we should have a google doc with all of our shortcuts and rationale... hard to keep track of :)

jasonLaster avatar Nov 30 '17 22:11 jasonLaster

In my Atom (without modfiying it): screenshot_20171201_081025

nicofrand avatar Dec 01 '17 07:12 nicofrand

/unclaim we were working on this bug for a class and since the semester is almost over now, we are going our separate ways

JacobTM avatar Dec 05 '17 18:12 JacobTM

/claim

pradeepgangwar avatar Dec 11 '17 15:12 pradeepgangwar

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Dec 11 '17 15:12 claim

How about pressing Ctrl/Cmd+F again jump to the next result instead of clearing the search field if the search input is already open and Ctrl/Cmd+G for go to line #?

Atom and Sublime Text keybindings are not really consistent across platfroms. MacOS uses Cmd+F/Cmd+G for find/find next and Ctrl+G for go to line, while Linux is using Ctrl+F/Ctrl+G for find/go to line and F3 for find next.

https://github.com/nwinkler/atom-keyboard-shortcuts

ggl avatar Dec 12 '17 10:12 ggl