Ctrl-G to go to line?

How can I add a shortcut like Ctrl-G to prompt the user to enter a line number (or line:column) so that codemirror will jump to that line?
Is there such a line-prompting functionality?

You want the gotoLine command, bound to Alt-G by default in the search keymap.

2 Likes