AckslD / muren.nvim

Multiple replacements in neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: replace only in selected area

TroySigX opened this issue · comments

Doesn't supplying a range to the command work? That's the intention at least

I believe I've supplied the range. Here's my config:

local M = {}

function M.setup()
  require('muren').setup()
end

function M.keymaps()
  require('which-key').register({
    ['<C-s>'] = { function() require('muren.api').toggle_ui() end, 'Toggle [S]ubstitute' },
  }, { mode = { 'n', 'v' } })
end

return M

I chose a range and then press <C-s> to replace, but instead of just applying that specific range, it replaced the whole file

Oh, I see. Because instead of use the vim command, I used the api to toggle the UI, so I can't replace in range. Sorry for that.