Skip to content

Commit

Permalink
Merge pull request #1 from gquintana/windows-linux-keymap
Browse files Browse the repository at this point in the history
Windows and Linux keymap
  • Loading branch information
guylabs committed Mar 11, 2016
2 parents e3dfefa + 920219d commit a6925cd
Showing 1 changed file with 113 additions and 9 deletions.
122 changes: 113 additions & 9 deletions keymaps/intellij-idea-keymap.cson
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
# The descriptions above the key bindings are the ones from the IntelliJ IDEA Max OS X Keymap

# The descriptions above the key bindings are the ones from the IntelliJ IDEA Keymap
# Use more specific selector than core key bindings

################################################################################
# Multi-platform #
################################################################################
'atom-workspace atom-text-editor:not([mini])':

###########
# Editing #
###########

# Smart line join
'ctrl-shift-j': 'editor:join-lines'

##############
# Navigation #
##############

# Select current file or symbol in any view
'alt-f1': 'tree-view:reveal-active-file'


################################################################################
# Mac OS only #
################################################################################
# https://resources.jetbrains.com/assets/products/intellij-idea/IntelliJIDEA_ReferenceCard_mac.pdf

'.platform-darwin atom-workspace atom-text-editor:not([mini])':

###########
# Editing #
###########

# Duplicate current line or selected block
'cmd-d': 'editor:duplicate-lines'

Expand All @@ -19,9 +44,6 @@
# Delete line at caret
'cmd-backspace': 'editor:delete-line'

# Smart line join
'ctrl-shift-j': 'editor:join-lines'

# Move line up
'cmd-shift-up': 'editor:move-line-up'

Expand All @@ -46,7 +68,7 @@
##############

# Go to class
'cmd-o': 'fuzzy-finder:toggle-buffer-finder'
'cmd-o': 'fuzzy-finder:toggle-file-finder'

# Go to file
'cmd-shift-o': 'fuzzy-finder:toggle-file-finder'
Expand All @@ -63,9 +85,6 @@
# Recent files popup
'cmd-e': 'fuzzy-finder:toggle-buffer-finder'

# Select current file or symbol in any view
'alt-f1': 'tree-view:reveal-active-file'

##################
# Live Templates #
##################
Expand All @@ -82,3 +101,88 @@

# Find action
'cmd-shift-a': 'command-palette:toggle'

################################################################################
# Windows & Linux #
################################################################################
# https://resources.jetbrains.com/assets/products/intellij-idea/IntelliJIDEA_ReferenceCard.pdf

'.platform-win32 atom-workspace atom-text-editor:not([mini]), .platform-linux atom-workspace atom-text-editor:not([mini])':

###########
# Editing #
###########

# Duplicate current line or selected block
'ctrl-d': 'editor:duplicate-lines'

# Select successively increasing code blocks
'ctrl-w': 'editor:select-to-next-subword-boundary'

# Decrease current selection to previous state
'ctrl-shift-w': 'editor:select-to-previous-subword-boundary'

# Delete line at caret
'shift-delete': 'editor:delete-line'
'ctrl-y': 'editor:delete-line'

# Move line up
'ctrl-shift-up': 'editor:move-line-up'

# Move line down
'ctrl-shift-down': 'editor:move-line-down'

##################
# Search/Replace #
##################

# Replace
'ctrl-r': 'find-and-replace:show'

# Find in path
'ctrl-shift-f': 'project-find:show'

# Replace in path
'ctrl-shift-r': 'project-find:show'

##############
# Navigation #
##############

# Go to class
'ctrl-n': 'fuzzy-finder:toggle-file-finder'

# Go to file
'ctrl-shift-n': 'fuzzy-finder:toggle-file-finder'

# Go to next editor tab
'alt-right': 'pane:show-next-item'

# Go to previous editor tab
'alt-left': 'pane:show-previous-item'

# Go to line
'ctrl-l': 'go-to-line:toggle'

# Recent files popup
'ctrl-e': 'fuzzy-finder:toggle-buffer-finder'

# Select current file or symbol in any view
'alt-f1': 'tree-view:reveal-active-file'

##################
# Live Templates #
##################

# Insert live templates
'ctrl-j': 'snippets:available'

###########
# General #
###########

# Open corresponding tool window
'ctrl-1': 'tree-view:toggle'

# Find action
'ctrl-shift-a': 'command-palette:toggle'

0 comments on commit a6925cd

Please sign in to comment.