Skip to content

Instantly share code, notes, and snippets.

@lodestone
Created February 25, 2015 07:29
Show Gist options
  • Save lodestone/19e92174bb8dde863e90 to your computer and use it in GitHub Desktop.
Save lodestone/19e92174bb8dde863e90 to your computer and use it in GitHub Desktop.
Port my web browser like behavior of spacebar to Atom Editor
atom.workspaceView.command 'line-jumper:move-down', ->
editor = atom.workspace.getActiveTextEditor()
editor.moveDown(10)
atom.workspaceView.command 'line-jumper:move-up', ->
editor = atom.workspace.getActiveTextEditor()
editor.moveUp(10)
'atom-text-editor.vim-mode:not(.insert-mode)':
'space': "line-jumper:move-down"
'shift-space': "line-jumper:move-up"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment