2017-03-07 6 views
0

ATOMキーマップにコマンドを追加します。コマンドキーマップを追加するATOM

ALT + J:すべての出現箇所に

を選択します。しかし、私はそれが働いているかわからない、私はちょうど簡単に、CMD + Dを追加しました。

これは私が今持っているものです。

'body': 
    'cmd-,': 'application:show-settings' 
    'cmd-N': 'application:new-window' 
    'cmd-W': 'window:close' 
    'cmd-o': 'application:open' 
    'cmd-T': 'pane:reopen-closed-item' 
    'cmd-n': 'application:new-file' 
    'cmd-s': 'core:save' 
    'cmd-S': 'core:save-as' 
    'cmd-alt-s': 'window:save-all' 
    'cmd-w': 'core:close' 
    'cmd-ctrl-f': 'window:toggle-full-screen' 
    'cmd-z': 'core:undo' 
    'cmd-y': 'core:redo' 
    'cmd-x': 'core:cut' 
    'cmd-c': 'core:copy' 
    'cmd-v': 'core:paste' 
    'shift-up': 'core:select-up' 
    'shift-down': 'core:select-down' 
    'shift-left': 'core:select-left' 
    'shift-right': 'core:select-right' 
    'shift-pageup': 'core:select-page-up' 
    'shift-pagedown': 'core:select-page-down' 
    'delete': 'core:delete' 
    'shift-delete': 'core:delete' 
    'pageup': 'core:page-up' 
    'pagedown': 'core:page-down' 
    'backspace': 'core:backspace' 
    'shift-backspace': 'core:backspace' 
    'cmd-up': 'core:move-to-top' 
    'cmd-down': 'core:move-to-bottom' 
    'cmd-shift-up': 'core:select-to-top' 
    'cmd-shift-down': 'core:select-to-bottom' 
    'cmd-{': 'pane:show-previous-item' 
    'cmd-}': 'pane:show-next-item' 
    'cmd-alt-left': 'pane:show-previous-item' 

'atom-workspace atom-text-editor:not([mini])': 
    'cmd-d': 'editor:duplicate-lines' 

答えて

1

これは私がたAtomが監督私のkeymap.csonファイルで見つかったものです>設定>キーの割り当て]タブ/ページ:

# Your keymap 
# 
# Atom keymaps work similarly to style sheets. Just as style sheets use 
# selectors to apply styles to elements, Atom keymaps use selectors to associate 
# keystrokes with events in specific contexts. Unlike style sheets however, 
# each selector can only be declared once. 
# 
# You can create a new keybinding in this file by typing "key" and then hitting 
# tab. 
# 
# Here's an example taken from Atom's built-in keymap: 
# 
# 'atom-text-editor': 
# 'enter': 'editor:newline' 
# 
# 'atom-workspace': 
# 'ctrl-shift-p': 'core:move-up' 
# 'ctrl-p': 'core:move-down' 
# 
# You can find more information about keymaps in these guides: 
# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#_customizing_keybindings 
# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/ 
# 
# If you're having trouble with your keybindings not working, try the 
# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the 
# Debugging Guide for more information: 
# * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings 
# 
# This file uses CoffeeScript Object Notation (CSON). 
# If you are unfamiliar with CSON, you can read more about it in the 
# Atom Flight Manual: 
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson 

ここのリンクは非常に面倒です。これらをチェックアウト -

csonの詳細は一部、さらにのAtom飛行マニュアル基本のカスタマイズに進みます。

希望すると、これを行う方法の方向性がわかります!

+0

私はすでにこのリンクを見ていますので、私はStackOverflow ^^ – Emilien

+1

'' .platform-darwin atom-text-editor 'にサブジェットを投稿しています: ' alt-j ':' find -and-replace:select-all ' ' –

+0

ありがとうございました!それは完全に動作しています:) – Emilien

関連する問題