Replaces usages of .mini selector with [mini]
Esse commit está contido em:
@@ -16,7 +16,7 @@ keystrokes pass through `atom-text-editor` elements:
|
|||||||
'ctrl-shift-e': 'editor:select-to-end-of-line'
|
'ctrl-shift-e': 'editor:select-to-end-of-line'
|
||||||
'cmd-left': 'editor:move-to-first-character-of-line'
|
'cmd-left': 'editor:move-to-first-character-of-line'
|
||||||
|
|
||||||
'atom-text-editor:not(.mini)'
|
'atom-text-editor:not([mini])'
|
||||||
'cmd-alt-[': 'editor:fold-current-row'
|
'cmd-alt-[': 'editor:fold-current-row'
|
||||||
'cmd-alt-]': 'editor:unfold-current-row'
|
'cmd-alt-]': 'editor:unfold-current-row'
|
||||||
```
|
```
|
||||||
@@ -27,8 +27,8 @@ patterns* to *commands*. When an element with the `atom-text-editor` class is fo
|
|||||||
`editor:delete-to-beginning-of-line` is emitted on the `atom-text-editor` element.
|
`editor:delete-to-beginning-of-line` is emitted on the `atom-text-editor` element.
|
||||||
|
|
||||||
The second selector group also targets editors, but only if they don't have the
|
The second selector group also targets editors, but only if they don't have the
|
||||||
`.mini` class. In this example, the commands for code folding don't really make
|
`mini` attribute. In this example, the commands for code folding don't really
|
||||||
sense on mini-editors, so the selector restricts them to regular editors.
|
make sense on mini-editors, so the selector restricts them to regular editors.
|
||||||
|
|
||||||
### Keystroke Patterns
|
### Keystroke Patterns
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ built-in keymaps:
|
|||||||
'atom-text-editor':
|
'atom-text-editor':
|
||||||
'enter': 'editor:newline'
|
'enter': 'editor:newline'
|
||||||
|
|
||||||
'atom-text-editor.mini input':
|
'atom-text-editor[mini] input':
|
||||||
'enter': 'core:confirm'
|
'enter': 'core:confirm'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -5,7 +5,7 @@
|
|||||||
'shift-home': 'editor:select-to-first-character-of-line'
|
'shift-home': 'editor:select-to-first-character-of-line'
|
||||||
'shift-end': 'editor:select-to-end-of-line'
|
'shift-end': 'editor:select-to-end-of-line'
|
||||||
|
|
||||||
'atom-text-editor:not(.mini)':
|
'atom-text-editor:not([mini])':
|
||||||
# Atom Specific
|
# Atom Specific
|
||||||
'ctrl-C': 'editor:copy-path'
|
'ctrl-C': 'editor:copy-path'
|
||||||
|
|
||||||
@@ -15,13 +15,13 @@
|
|||||||
'shift-tab': 'editor:outdent-selected-rows'
|
'shift-tab': 'editor:outdent-selected-rows'
|
||||||
'ctrl-K': 'editor:delete-line'
|
'ctrl-K': 'editor:delete-line'
|
||||||
|
|
||||||
'.select-list atom-text-editor.mini':
|
'.select-list atom-text-editor[mini]':
|
||||||
'enter': 'core:confirm'
|
'enter': 'core:confirm'
|
||||||
|
|
||||||
'.tool-panel.panel-left, .tool-panel.panel-right':
|
'.tool-panel.panel-left, .tool-panel.panel-right':
|
||||||
'escape': 'tool-panel:unfocus'
|
'escape': 'tool-panel:unfocus'
|
||||||
|
|
||||||
'atom-text-editor !important, atom-text-editor.mini !important':
|
'atom-text-editor !important, atom-text-editor[mini] !important':
|
||||||
'escape': 'editor:consolidate-selections'
|
'escape': 'editor:consolidate-selections'
|
||||||
|
|
||||||
# allow standard input fields to work correctly
|
# allow standard input fields to work correctly
|
||||||
|
|||||||
@@ -136,7 +136,7 @@
|
|||||||
'cmd-l': 'editor:select-line'
|
'cmd-l': 'editor:select-line'
|
||||||
'ctrl-t': 'editor:transpose'
|
'ctrl-t': 'editor:transpose'
|
||||||
|
|
||||||
'atom-workspace atom-text-editor:not(.mini)':
|
'atom-workspace atom-text-editor:not([mini])':
|
||||||
# Atom specific
|
# Atom specific
|
||||||
'alt-cmd-z': 'editor:checkout-head-revision'
|
'alt-cmd-z': 'editor:checkout-head-revision'
|
||||||
'cmd-<': 'editor:scroll-to-cursor'
|
'cmd-<': 'editor:scroll-to-cursor'
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
'ctrl-k ctrl-l': 'editor:lower-case'
|
'ctrl-k ctrl-l': 'editor:lower-case'
|
||||||
'ctrl-l': 'editor:select-line'
|
'ctrl-l': 'editor:select-line'
|
||||||
|
|
||||||
'atom-workspace atom-text-editor:not(.mini)':
|
'atom-workspace atom-text-editor:not([mini])':
|
||||||
# Atom specific
|
# Atom specific
|
||||||
'alt-ctrl-z': 'editor:checkout-head-revision'
|
'alt-ctrl-z': 'editor:checkout-head-revision'
|
||||||
'ctrl-<': 'editor:scroll-to-cursor'
|
'ctrl-<': 'editor:scroll-to-cursor'
|
||||||
|
|||||||
@@ -98,7 +98,7 @@
|
|||||||
'ctrl-k ctrl-l': 'editor:lower-case'
|
'ctrl-k ctrl-l': 'editor:lower-case'
|
||||||
'ctrl-l': 'editor:select-line'
|
'ctrl-l': 'editor:select-line'
|
||||||
|
|
||||||
'atom-workspace atom-text-editor:not(.mini)':
|
'atom-workspace atom-text-editor:not([mini])':
|
||||||
# Atom specific
|
# Atom specific
|
||||||
'alt-ctrl-z': 'editor:checkout-head-revision'
|
'alt-ctrl-z': 'editor:checkout-head-revision'
|
||||||
'ctrl-<': 'editor:scroll-to-cursor'
|
'ctrl-<': 'editor:scroll-to-cursor'
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ atom.commands.add 'atom-text-editor', stopEventPropagationAndGroupUndo(
|
|||||||
'editor:lower-case': -> @lowerCase()
|
'editor:lower-case': -> @lowerCase()
|
||||||
)
|
)
|
||||||
|
|
||||||
atom.commands.add 'atom-text-editor:not(.mini)', stopEventPropagationAndGroupUndo(
|
atom.commands.add 'atom-text-editor:not([mini])', stopEventPropagationAndGroupUndo(
|
||||||
'core:move-up': -> @moveUp()
|
'core:move-up': -> @moveUp()
|
||||||
'core:move-down': -> @moveDown()
|
'core:move-down': -> @moveDown()
|
||||||
'core:move-to-top': -> @moveToTop()
|
'core:move-to-top': -> @moveToTop()
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ atom-panel[location="modal"] {
|
|||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
atom-text-editor.mini {
|
atom-text-editor[mini] {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ atom-text-editor {
|
|||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
atom-text-editor.mini {
|
atom-text-editor[mini] {
|
||||||
font-size: @input-font-size;
|
font-size: @input-font-size;
|
||||||
line-height: @component-line-height;
|
line-height: @component-line-height;
|
||||||
max-height: @component-line-height + 2; // +2 for borders
|
max-height: @component-line-height + 2; // +2 for borders
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário