Closed jdhao closed 2 days ago
This is intentional. The Preview command is meant to preview the argument passed to it exactly as provided.
So you could do pass the range like :Preview 5,10norm daw
instead of :5,10Preview norm daw
. On the Reddit post, someone posted about this as well. Maybe I should Change this behavior as I agree it can be unintuitive, especially in visual mode.
Thanks for the reply, my confusion comes from the usage section: https://github.com/smjonas/live-command.nvim?tab=readme-ov-file#basic-usage
There it specifically says you can use Preview command with ranges. Maybe it should be updated as well 😄
Oh thanks, I'll update the documentation
I decided to add support for ranges in the :Preview
command so you can now simply select lines in visual mode and apply the command more easily
I do not have special settings, this is my config using lazy nvim:
If you select a range, then use
Preview
command, I am seeing the following error: