atom-multi-cursor-plus icon indicating copy to clipboard operation
atom-multi-cursor-plus copied to clipboard

move and mark command

Open ibyteyou opened this issue 7 years ago • 1 comments

#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'

ibyteyou avatar May 03 '17 13:05 ibyteyou

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'

RoM4iK avatar Jan 05 '19 18:01 RoM4iK