Sublime text keybindings:"Ctrl-Enter" and "Shift-Ctrl-Enter"#2354
Sublime text keybindings:"Ctrl-Enter" and "Shift-Ctrl-Enter"#2354srajanpaliwal wants to merge 4 commits intocodemirror:v4from
Conversation
To insert newline after and new line before the text respectively.
|
Could you please indent the code consistently (two spaces per block, no tabs) and make sure the linter passes? (Install node, then run |
"Shift-Ctrl-K" Delete line "Ctrl-K Ctrl-K" Delete line to right "Ctrl-K Ctrl-Backspace" Delete line to left Swapline scrolls with the cursor
|
i added some more binding for sublime and corrected a previous swap line bind implementation |
There was a problem hiding this comment.
In the Linux bindings for ST3, ctrl-k is bound to delete the word before the cursor (as it is in CM's default bindings). Maybe this is different on Mac? If so, could you research how the bindings differ, in general, between mac and non-mac platforms?
There was a problem hiding this comment.
Oh, you're changing mapK, not map! Ignore the previous comment.
Added helper function inserLine
also wraped replaceRange in cm.operation
|
I tried implementing |
To insert newline after and new line before the text respectively.