Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move and mark command #12

Open
ibyteyou opened this issue May 3, 2017 · 1 comment
Open

move and mark command #12

ibyteyou opened this issue May 3, 2017 · 1 comment

Comments

@ibyteyou
Copy link

ibyteyou commented May 3, 2017

#11

i review your questions and rethink my issue.
I think that me needed simple command mark-and-move

example:

'ctrl-alt-up': 'multi-cursor-plus:mark--move-up'
'ctrl-alt-down':  'multi-cursor-plus:mark--move-down'
# move left and right keys yet bind and i don't know do they need/
# 'ctrl-alt-left': 'multi-cursor-plus:mark--move-left'
# 'ctrl-alt-right': 'multi-cursor-plus:mark--move-right'
@RoM4iK
Copy link

RoM4iK commented Jan 5, 2019

init.coffee

atom.commands.add 'atom-text-editor', 'custom:add_cursor_up', (event) ->
  atom.commands.dispatch(event.target, 'multi-cursor-plus:mark')
  atom.commands.dispatch(event.target, 'multi-cursor-plus:move-up')

atom.commands.add 'atom-text-editor', 'custom:add_cursor_down', (event) ->
  atom.commands.dispatch(event.target, 'multi-cursor-plus:mark')
  atom.commands.dispatch(event.target, 'multi-cursor-plus:move-down')

keymap.cson

  'cmd-alt-up': 'custom:add_cursor_up'
  'cmd-alt-down': 'custom:add_cursor_down'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants