mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-06 06:28:33 +03:00
Move cut, copy, and paste into "core:"
This commit is contained in:
parent
23f4e533d9
commit
0ab50cf102
@ -110,9 +110,9 @@ class Editor extends View
|
|||||||
'core:delete': @delete
|
'core:delete': @delete
|
||||||
'core:undo': @undo
|
'core:undo': @undo
|
||||||
'core:redo': @redo
|
'core:redo': @redo
|
||||||
'cut': @cutSelection
|
'core:cut': @cutSelection
|
||||||
'copy': @copySelection
|
'core:copy': @copySelection
|
||||||
'paste': @paste
|
'core:paste': @paste
|
||||||
'move-to-next-word': @moveCursorToNextWord
|
'move-to-next-word': @moveCursorToNextWord
|
||||||
'move-to-previous-word': @moveCursorToPreviousWord
|
'move-to-previous-word': @moveCursorToPreviousWord
|
||||||
'select-word': @selectWord
|
'select-word': @selectWord
|
||||||
|
@ -15,6 +15,9 @@ window.keymap.bindKeys 'body'
|
|||||||
'delete': 'core:delete'
|
'delete': 'core:delete'
|
||||||
'meta-z': 'core:undo'
|
'meta-z': 'core:undo'
|
||||||
'meta-Z': 'core:redo'
|
'meta-Z': 'core:redo'
|
||||||
|
'meta-x': 'core:cut'
|
||||||
|
'meta-c': 'core:copy'
|
||||||
|
'meta-v': 'core:paste'
|
||||||
pageup: 'core:page-up'
|
pageup: 'core:page-up'
|
||||||
pagedown: 'core:page-down'
|
pagedown: 'core:page-down'
|
||||||
'meta-S': 'save-all'
|
'meta-S': 'save-all'
|
||||||
|
@ -4,9 +4,6 @@ window.keymap.bindKeys '.editor',
|
|||||||
'meta-enter': 'newline-below'
|
'meta-enter': 'newline-below'
|
||||||
'tab': 'indent'
|
'tab': 'indent'
|
||||||
'meta-d': 'delete-line'
|
'meta-d': 'delete-line'
|
||||||
'meta-x': 'cut'
|
|
||||||
'meta-c': 'copy'
|
|
||||||
'meta-v': 'paste'
|
|
||||||
'alt-meta-w': 'toggle-soft-wrap'
|
'alt-meta-w': 'toggle-soft-wrap'
|
||||||
'ctrl-[': 'fold-current-row'
|
'ctrl-[': 'fold-current-row'
|
||||||
'ctrl-]': 'unfold-current-row'
|
'ctrl-]': 'unfold-current-row'
|
||||||
|
Loading…
Reference in New Issue
Block a user