kankaristo / atom-multi-cursor-plus

Improved multi-cursor functionality for Atom: https://atom.io/packages/multi-cursor-plus
MIT License
20 stars 1 forks source link

Can't move to left/right #8

Closed alexandernst closed 8 years ago

alexandernst commented 8 years ago

I'm using the default keymaps and moving up/down (while holding Alt) works fine, but moving left/right will move all of the cursors instead of the "main" cursor.

Latest stable Atom on OS X

kankaristo commented 8 years ago

I think Atom added some new text movement keybindings a while ago. I'll probably have to update the README with a note about that.

Could you take a look at what package/command is capturing the keybinding? Open the keybinding resolver (command palette: "Key Binding Resolver: Toggle") and press Alt-left and Alt-right. Some other command is probably using the same keybinding.

alexandernst commented 8 years ago

I did what you asked. The commands are handled by atom-text-editor. The two commands are:

kankaristo commented 8 years ago

Try putting these in your keymap.cson:

'atom-workspace atom-text-editor':
    # Unset core editor keybindings (conflict with multi-cursor-plus)
    'alt-left': 'unset!'
    'alt-right': 'unset!'

You may have to put them before the keybindings for multi-cursor-plus. If this fixes the keybindings, I'll add a note about it to README.md.

alexandernst commented 8 years ago

Yes, that works. Anyways, pretty much all the default keymaps in this plugin don't work. I guess it's because of the same reason.

kankaristo commented 8 years ago

I updated README.md with all the keybindings you need to unset in order for multi-cursor-plus to work correctly. Please re-open the issue and let me know if something is still not working correctly (I don't have an OS X machine to test these on).

Thanks for reporting this!