Change layout for Tree View: Toggle in Atom?

I start by setting up the Atom editor and trying to change the key mapping for Tree View: Toggle.

I put this in my usercap.cson user file:

'.editor': 'ctrl-t': 'Tree View:Toggle'

But that will not work.

Looking at Settings-> Switch Keys, I see it in the list, as I expected:

ctrl-t Tree View:Toggle User .editor

What have I done wrong?

Update:

Go to:

'.editor': 'ctrl-t': 'tree-view:toggle'

failed to fix the problem.

Key binding resistance indicates that the command was recognized, but it did not switch the tree view. See screenshot:

http://cl.ly/image/3A2X1p350v2Q

Any other thoughts on this?

+4
source share
3 answers

! , , latin-qwerty, , - , :

:

Ctrl-Alt -\ Ctrl-Alt -]

, "@", Ctrl-Alt-q, Atom "autoflow: reflow-selection".

:

1._ - > . , , , . , Ctrl-Alt-q, : Q, .

2._ , , int copy & paste small-icon , , . ( , )

3._ , , "- > ", ​​ keymap.cson. , 2. - :

'.platform-win32 .editor, .platform-linux .editor':
  'ctrl-alt-q': 'autoflow:reflow-selection'

4._ . 'autoflow: reflow-selection' 'unset!' arroba.

'.platform-win32 .editor, .platform-linux .editor':
  'ctrl-alt-q': 'unset!'

, Ctrl-Alt-q , , ! , - , , "unset!" , .

. , , , "" > " " → "".

, keymap.cson, qwerty-.

'atom-workspace atom-text-editor:not([mini])':
  "ctrl-alt-[": "unset!",
  "ctrl-alt-]": "unset!",
  'ctrl-/': 'unset!'
  'ctrl-7': 'editor:toggle-line-comments'
  'ctrl-alt-8': 'tree-view:recursive-collapse-directory'
  'ctrl-alt-8': 'editor:fold-current-row'
  'ctrl-alt-9': 'editor:unfold-current-row'
'.platform-win32 .editor, .platform-linux .editor':
  'ctrl-alt-q': 'unset!'
'.platform-win32 .find-and-replace, .platform-linux .find-and-replace':
  'ctrl-alt-/': 'unset!'
  'ctrl-alt-7': 'find-and-replace:toggle-regex-option'
'.platform-win32 .project-find, .platform-linux .project-find':
  'ctrl-alt-/': 'unset!'
  'ctrl-alt-7': 'project-find:toggle-regex-option'

!

+5

. . :

'.editor':
  'ctrl-t': 'tree-view:toggle'

, - , , , , , , . , , tree-view.cson, , .


, , , , , Tree View , keybinding . , , . .platform-darwin ( , ), , .

'.platform-darwin':
  'ctrl-t': 'tree-view:toggle'

, , . , , keybinding editor:transpose - CSS ( , .editor). , Tree View , . - :

'.platform-darwin':
  'ctrl-t': 'tree-view:toggle'

'.editor':
  'ctrl-t': 'tree-view:toggle'

, Tree View , , .


, - Keybinding Resolver. cmd-.. ctrl-t, , , , ( ). , keybinding , editor:transpose. .

Atom - , , .

+4

, ATOM, !. ATOM Windows 8.

  • keymap.cson, .
  • , , . .

@

Packages > KeyBinding resolver, :

ctrl-alt-q @

KeyBinding, : ctrl-alt-q autoflow: reflow

'. platform-win32 atom-text-editor,.platform-linux atom-text-editor': 'ctrl-alt-q': 'unset!', 'ctrl-alt-7': 'autoflow: reflow-selection'

keybinding, , .

, u

+2

Source: https://habr.com/ru/post/1534121/


All Articles