Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows and Linux keymap #1

Merged
merged 4 commits into from
Mar 11, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you maybe add this to the MAC keymap as ctrl-right such that it is consistent?


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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you maybe add this to the MAC keymap as ctrl-left such that it is consistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a Mac but reading IntelliJ's reference card, it's ctrl+right/left on Mac but alt+right/left on Win/Linux.


# 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'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this be added to the multi-platform part?


##################
# 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'