Yank/Delete remote lines + Remote undo #244
al-ce
started this conversation in
Show and tell
Replies: 1 comment
-
With the new vim.keymap.set({'x', 'o'}, 'aa', function ()
local mode = vim.fn.mode(true)
require('leap.remote').action {
input =
-- Force linewise selection.
(mode:match('V') and '' or 'V') ..
-- In O-p mode, move to any direction on the line, to trigger the operation.
(mode:match('o') and 'h' or '')
}
end) Caveat: this cannot take |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Wanted to replicate leap-spooky's "line object" style remote actions, just works with yank + delete.
Also wanted to take a shot at undoing remote operations while keeping the cursor still. I tried this a few months ago with leap-spooky, but it didn't really work out. This works well at the moment:
Unfortunately neither of these work with the
c
operator.Beta Was this translation helpful? Give feedback.
All reactions