JunSuzukiJapan / atom-keyboard-macros

MIT License
7 stars 8 forks source link

Keybindings ctrl-x? #29

Open sbechet opened 7 years ago

sbechet commented 7 years ago

Do you know "ctrl-x" is used for cut text on pc linux (core:cut) ? Maybe a better default key bindings can be a good idea.

Why not "alt-x"?

arthurcgusmao commented 6 years ago

I have this same issue too. I use the default keybinding ctrl-x to cut text also. It would be awesome if we could change the package so that people can choose the keybinding they want.

JunSuzukiJapan commented 6 years ago

It might be good to add the following lines to your keymap.cson.

'atom-workspace':
  'ctrl-x': 'core:cut'  # if needed
  'alt-x (': 'atom-keyboard-macros:start_kbd_macro'
  'alt-x )': 'atom-keyboard-macros:end_kbd_macro'
  'alt-x e': 'atom-keyboard-macros:call_last_kbd_macro'
  'alt-x ctrl-e': 'atom-keyboard-macros:repeat_last_kbd_macro'
  'alt-x b': 'atom-keyboard-macros:execute_macro_to_bottom'
  'alt-x ctrl-b': 'atom-keyboard-macros:execute_macro_from_top_to_bottom'
RyoYoshida commented 6 years ago

On Windows, ctrl-x cause the key-waiting, and makes delay time. A better way is

'atom-workspace':
  'ctrl-x (': 'unset!'
  'ctrl-x )': 'unset!'
  'ctrl-x b': 'unset!'
  'ctrl-x ctrl-b': 'unset!'
  'ctrl-x ctrl-e': 'unset!'
  'ctrl-x e': 'unset!'
  'alt-x (': 'atom-keyboard-macros:start_kbd_macro'
  'alt-x )': 'atom-keyboard-macros:end_kbd_macro'
  'alt-x e': 'atom-keyboard-macros:call_last_kbd_macro'
  'alt-x ctrl-e': 'atom-keyboard-macros:repeat_last_kbd_macro'
  'alt-x b': 'atom-keyboard-macros:execute_macro_to_bottom'
  'alt-x ctrl-b': 'atom-keyboard-macros:execute_macro_from_top_to_bottom'
RyoYoshida commented 6 years ago

Sorry, I found "Enable" Option now.