Support yanking
This commit is contained in:
parent
145446b8de
commit
6670f7c830
2 changed files with 22 additions and 0 deletions
|
|
@ -349,6 +349,11 @@ class Ex
|
|||
range = [[range[0], 0], [range[1] + 1, 0]]
|
||||
atom.workspace.getActiveTextEditor().buffer.setTextInRange(range, '')
|
||||
|
||||
yank: ({ range }) ->
|
||||
range = [[range[0], 0], [range[1] + 1, 0]]
|
||||
txt = atom.workspace.getActiveTextEditor().getTextInBufferRange(range)
|
||||
atom.clipboard.write(txt);
|
||||
|
||||
set: ({ range, args }) ->
|
||||
args = args.trim()
|
||||
if args == ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue