atom / go-to-line

Jump to a line number in Atom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go to line shortcut doesn't works on windows

JuanCAlpizar opened this issue · comments

Using atom 0.99 on windows, pressing ctrl + g key combination doesn't triggers the popup to appear, but clicking the option on the Edit menu does, is this maybe because of the cmd key = ctrl mapping key from windows builds?

Yeah, this keybinding is also registered by the find-and-replace package which is the issue.

I see, is there any workaround for this or any place when we can suggest any better mapping for the cmd key? I'm new to the atom community so if you can provide me any guidance about it would be great, thanks!

For the time being, you can add the following to your ~/.atom/keymap.cson file:

'.platform-win32 .editor':
  'ctrl-g': 'go-to-line:toggle'

Then reload Atom, and it should be enabled via ctrl-g.

I think the right solution is figuring out what is a more natural ctrl-g keybinding; go to line or find next.

Do you know any other editors that use ctrl-g for go to line?

I updated find next/previous to use f3/shift-f3 on windows so in the next Atom release, 0.101.0, ctrl-g should work properly on Windows with you needing to customize your localy keymap file.

Thanks for reporting this.

No problem, glad to help :) both Sublime Text 2 and Notepad++ use ctrl-g as default keybinding for Go to Line command