Skip to content
Discussion options

You must be logged in to vote

Nothing built-in but you can write a little Lua to do it:

~/.config/micro/init.lua

local config = import("micro/config")

function spawnMultiCursorAll(bp)
    bp:SpawnMultiCursor()
    local previousCursorCount = -1
    local cursorCount = #bp.Buf:GetCursors()
    while cursorCount > previousCursorCount do
        previousCursorCount = cursorCount
        bp:SpawnMultiCursor()
        cursorCount = #bp.Buf:GetCursors()
    end
end

-- (optional) add a command for it
function init()
    config.MakeCommand("multicursorall", spawnMultiCursorAll, config.NoComplete)
end

~/.config/micro/bindings.json

{
    // call the function directly
    "Alt-m": "lua:initlua.spawnMultiCursorAll",
    // or u…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant