guylabs / intellij-idea-keymap Goto Github PK
View Code? Open in Web Editor NEWJetbrains IntelliJ IDEA based key bindings for the Atom editor.
License: MIT License
Jetbrains IntelliJ IDEA based key bindings for the Atom editor.
License: MIT License
When I select some word and press Shift-Del Atom remove whole line.
There was an issue with atom that is already fixed: atom/atom-keymap#35
However, if you turn the intellij-idea-keymap plugin on then the right alt stops working again.
I followed the installation instructions:
apm install intellij-idea-keymap
Installing intellij-idea-keymap to /Users/oskar/.atom/packages ✓
Now what? Shortcuts seems to be the same as before..
'Alt-up' is right now similar to 'cmd-shift-up' and 'alt-shift-up' the same goes for 'Alt-down'
Unable to download https://www.atom.io/api/packages/intellij-idea-keymap/versions/0.2.2/tarball: 503
I personally added the shortcut to reformat code such as JSON
.
###########
# Editing #
###########
# ...
+
+ # Reformat Code using the beautify plugin
+ 'alt-cmd-l': 'atom-beautify:beautify-editor'
# ...
Since atom doesn't support reformatting out of the box a dependency to atom-beautify is required. I'm not sure if this is the scope of this project
➜ ~ nvm install v0.12.7
Now using node v0.12.7 (npm v2.11.3)
➜ ~ sudo apm install intellij-idea-keymap
Password:
Installing intellij-idea-keymap to /Users/qk/.atom/packages
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp http GET https://atom.io/download/atom-shell/v0.36.8/node-v0.36.8.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: socket hang up
gyp ERR! stack at createHangUpError (http.js:1473:15)
gyp ERR! stack at Socket.socketOnEnd (http.js:1569:23)
gyp ERR! stack at Socket.g (events.js:180:16)
gyp ERR! stack at Socket.emit (events.js:117:20)
gyp ERR! stack at _stream_readable.js:944:16
gyp ERR! stack at process._tickCallback (node.js:448:13)
gyp ERR! System Darwin 15.3.0
gyp ERR! command "/Users/qk/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Users/qk/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.36.8" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure"
gyp ERR! cwd /Users/qk/.atom
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
➜ ~ nvm use v0.10.40
Now using node v0.10.40 (npm v1.4.28)
➜ ~ sudo apm install intellij-idea-keymap
Installing intellij-idea-keymap to /Users/qk/.atom/packages
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp http GET https://atom.io/download/atom-shell/v0.36.8/node-v0.36.8.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: socket hang up
gyp ERR! stack at createHangUpError (http.js:1473:15)
gyp ERR! stack at Socket.socketOnEnd (http.js:1569:23)
gyp ERR! stack at Socket.g (events.js:180:16)
gyp ERR! stack at Socket.emit (events.js:117:20)
gyp ERR! stack at _stream_readable.js:944:16
gyp ERR! stack at process._tickCallback (node.js:448:13)
gyp ERR! System Darwin 15.3.0
gyp ERR! command "/Users/qk/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Users/qk/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.36.8" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure"
gyp ERR! cwd /Users/qk/.atom
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
I'm just curious if you ever attempted or you know of a similar mapping or plugin for "Notepad++"?
Since ctrl+n is taken I suggest to use ctrl+m to create new file, something like this:
'atom-workspace, atom-text-editor':
'ctrl-m': 'application:new-file'
There are differences in how the Ctrl+w command works in IntelliJ and how it works with the intellij-idea-keymap.
Command Ctrl+w in intelliJ selects the word/code or a block of words or code at caret. The selection happens in both directions, right and left. But when using the Ctrl+w keybinding with the intellij-idea-keymap, the selection happens only in right direction. It's almost the same as Shift+Right Arrow Key, just that it will select one letter with every press, instead of one word.
Although the command selects one whole word with every click but in IntelliJ this command could select whole blocks of text and code in few presses, not just one word at a time.
Example:
When the command is used three times at one place (just before "Ut enim"), by holding ctrl and pressing w for three times, following were the selections:
alt-shift-up alt-shift-down multi cursor has worked in the past but doesn't atm.
I don't know what could have caused it.
In keymappings I see these keybindings are bound to 'native!'.
I don't know how to override 'native!' with this plugin.
Also, I think overriding shouldn't be necessary in normal scenarios as it has worked in the past.
I tried this keymaps.cson but it didn't change the behaviour.
'atom-text-editor':
'alt-shift-down': 'Intellij Idea Keymap'
'alt-shift-up': 'Intellij Idea Keymap'
After activation the plugin go-to-line doesn't work and no way how to jump in document.
Mac | Windows/Linux | Atom command | |
---|---|---|---|
Close active tab | cmd-w | ctrl-f4 | core:close |
Open Settings | cmd-, | ctrl-alt-s | settings-view:open |
These shortcuts may already be the default ones on Mac (cmd-w, cmd-,), but definitely not on Windows/Linux
Some shortcuts should require the editor pane to work:
In short, the atom-text-editor:not([mini])
is sometimes too restrictive
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.