atom-haskell / ide-haskell-repl

GHCi REPL in Atom
https://atom.io/packages/ide-haskell-repl
MIT License
26 stars 8 forks source link

Option to reverse Enter with Shift+Enter #25

Closed varosi closed 8 years ago

varosi commented 8 years ago

Most of operations I enter in REPL are single line and it will be more efficient for me to use only Enter for single line command execution and Shift+Enter for multi-line.

lierdakil commented 8 years ago

You can do that yourself via keymap rebinding. Open your keymap (via edit menu) and do:

'.platform-win32 atom-text-editor.ide-haskell-repl':
  'enter': 'ide-haskell-repl:exec-command'
  'shift-enter': 'editor:newline'

That's assuming you're on win32.

varosi commented 8 years ago

Great! Thanks! Now it is much logical for me.