Skip to content

Preview Command for Exe Runs Piped Command #48

@DefectiveDev

Description

@DefectiveDev

Exe when running a command is also running the piped command afterwards.

Image Image Image

Is this expected behavior when previewing with Exe?

This is my lazy config file

return {
    "smjonas/live-command.nvim",
    main = "live-command",
    cmd = {
        "Norm",
        "Exe"
    },
    init = function ()
        vim.cmd("cnoreabbrev norm norm!")
        vim.cmd("cnoreabbrev exe Exe")
    end,
    keys = {
        {"<leader>;",  ":Exe \"\"<left>", mode = "n", desc = "Shortcut for Exe"},
        {"<leader>;",  ":<home>Exe \"<end>norm! \"<left>", mode = "x", desc = "Shortcut for Exe norm! with selection"}
    },
    opts = {
        commands = {
            Norm = { cmd = "norm!" },
            Exe = { cmd = "exe"},
        },
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions