Skip to content

how to gracefully return from clifm? #746

@Rydwxz

Description

@Rydwxz

I should like to use clifm from within xplr to do batch commands sometimes. If one looks at the zoxide and dua plugins one would think this is very easy to arrange. I have:

local function setup(args)
    local x = xplr

    args = args or {}
    args.mode = args.mode or "default"
    args.key = args.key or ";"

    x.config.modes.builtin[args.mode].key_bindings.on_key[args.key] = {
        help = "batch command",
        messages = {
            {
                BashExec = [===[
                    clifm
                    clear
                    "$XPLR" -m 'LogSuccess: %q' "clifm returned"
                ]===],
            },
            "PopMode",
            "ClearScreen",
        },
    }
end

return { setup = setup }

clifm behaves like normal, but when I quit clifm and xplr reappears, xplr does not respond to any input and must be killed by the multiplexer.

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