Added logging for 'moveSelectionToNewFile'
parent
cd5de83f50
commit
af683a1ffe
|
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
## Why that name?
|
||||||
|
A nod to [vim.eunuch](https://github.com/tpope/vim-eunuch) – as opposed to childless eunuchs, it is said that Ghengis Khan [has fathered thousands of children](https://allthatsinteresting.com/genghis-khan-children).
|
||||||
|
|
@ -22,6 +22,7 @@ local function fileOp(op)
|
||||||
local prevReg
|
local prevReg
|
||||||
if op == "newFromSel" then
|
if op == "newFromSel" then
|
||||||
prevReg = fn.getreg("z")
|
prevReg = fn.getreg("z")
|
||||||
|
print("prevReg: ", prevReg)
|
||||||
leaveVisualMode()
|
leaveVisualMode()
|
||||||
cmd [['<,'>delete z]]
|
cmd [['<,'>delete z]]
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue