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

move and mark command #12

Open ibyteyou opened 7 years ago

ibyteyou commented 7 years ago

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 commented 5 years ago

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'