t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

Hydrogen run command keybindings work in insert mode only and broken in normal mode #955

Closed a-b closed 6 years ago

a-b commented 6 years ago

Checklist

Hydrogen "run commands" like Option + Return works in insert mode only. It would be great to be able to run them in normal mode too.,

t9md commented 6 years ago

Hmm, I'm trying to avoid conflicts in insert-mode. But in normal-mode, vmp override/conflicts with other pkg, it's un-avoidable. I want keep current cmd-eneter keymap for vim-mode-plus:maximize-pane.

To say simply, in this case, I won't fix cmd-enter conflicts with hydrogen.

You can override to hydrogen keymap win over vmp's one.

'atom-text-editor':
  'cmd-enter': 'hydrogen:run'
awillats commented 3 years ago

in case people continue to look here for a solution in the future, for me, the proposed solution didn't quite work, I had to use:

'atom-text-editor.vim-mode-plus:not(.insert-mode)':
  'cmd-enter': 'unset!' #undoes maximize pane

and

 'atom-workspace':
  'cmd-enter': 'hydrogen:run'