Feature/yanking (#138)

* Support yanking

* Remove unneeded code from yank spec
This commit is contained in:
Ryan Mitchell 2016-04-24 14:56:22 -04:00 committed by Brian Vanderbusch
parent 0de4c800ea
commit 2a5fe2c382
2 changed files with 20 additions and 0 deletions

View file

@ -354,6 +354,11 @@ class Ex
editor.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 == ""