From af683a1ffea80b718a587c372fd71b356bac56e4 Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Mon, 21 Nov 2022 22:15:22 +0100 Subject: [PATCH] Added logging for 'moveSelectionToNewFile' --- blubb.md | 3 +++ lua/ghengis.lua | 1 + 2 files changed, 4 insertions(+) create mode 100644 blubb.md diff --git a/blubb.md b/blubb.md new file mode 100644 index 0000000..08fba68 --- /dev/null +++ b/blubb.md @@ -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). diff --git a/lua/ghengis.lua b/lua/ghengis.lua index 3d88c4a..cc3ded2 100644 --- a/lua/ghengis.lua +++ b/lua/ghengis.lua @@ -22,6 +22,7 @@ local function fileOp(op) local prevReg if op == "newFromSel" then prevReg = fn.getreg("z") + print("prevReg: ", prevReg) leaveVisualMode() cmd [['<,'>delete z]] end