ruby-block icon indicating copy to clipboard operation
ruby-block copied to clipboard

Go to line doesn't work when this package is enabled.

Open codemanmeet opened this issue 9 years ago • 5 comments

When this package is installed the following happens -

When I press Control + G the go to line minibar doesn't pop up on the first time. It pops up on the second time I press the keyboard shortcut. After that, when I enter the line number, instead going to that line, the cursor moves to the editor and that number is just typed in the editor. In the gif shown below, it can be seen that when I typed 4 in the line input bar, 4 just ended up in the first line of the editor screen where my cursor was before.

atom-bug

Go-to-line works well with atom --safe so the problem is not with Atom's package as confirmed by one of its developers in the following issue as well -

https://github.com/atom/go-to-line/issues/30

codemanmeet avatar Apr 07 '16 18:04 codemanmeet

Can confirm - was driving me crazy

blimmer avatar Nov 18 '16 17:11 blimmer

i have the same problem

rafalskyi avatar Nov 06 '17 15:11 rafalskyi

Same here. Maybe https://github.com/hmatsuda/ruby-block/blob/master/keymaps/ruby-block.cson#L11 is causing it?

ChrisBr avatar Mar 21 '18 20:03 ChrisBr

Commenting https://github.com/hmatsuda/ruby-block/blob/master/keymaps/ruby-block.cson#L11 this line resolved the issue for me.

ChrisBr avatar Mar 22 '18 08:03 ChrisBr

Same-- In my case, I had to comment the line above, too (essentially commenting out the whole file).

For posterity, ~/.atom/packages/ruby-block/keymaps/ruby-block.cson is where I found this file on my system. Open that (with atom is fine), and comment out lines 10 and 11. My file looks like this now:

# Keybindings require three things to be fully defined: A selector that is
# matched against the focused element, the keystroke and the command to
# execute.
#
# Below is a basic keybinding which registers on all platforms by applying to
# the root workspace element.

# For more detailed documentation see
# https://atom.io/docs/latest/advanced/keymaps
# 'atom-text-editor[data-grammar~="ruby"]:not([mini])':
  # 'ctrl-g b': 'ruby-block:go-to-matching-line'

garrettgsb avatar Oct 08 '18 21:10 garrettgsb