Coder Social home page Coder Social logo

muren.nvim's People

Contributors

acksld avatar al-ce avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

muren.nvim's Issues

Lsp rename

Could maybe be useful to have a more where instead of :s/ we use LSP rename.

Not sure exactly what the behaviour should be but maybe something like:

You find all matches of the users regex. You go-to-definition to all of them such that you only have one per variable definition. Then you run the LSP rename on all of them, or possibly let the user pick one/a subset. This would be for each line/pattern in the UI.

History of replacements

Store history of batches replacements and have a telescope picker to chose between them, previewing the list of patterns and replacements.

FEAT: Turn an already entered `:s/.../.../` command into a muren window

Similar to MurenUnique but in addition to the left hand side being populated from unique matches, the right hand side could be populated from what those lhs's would be transformed into. A user might realize they need a more advanced search-and-replace while writing the substitute command and want to invoke Muren. This saves some retyping.

This would probably have to use a 'c' plug mapping rather than a command.

If the substitution range could be used by muren as well that could be nice, although that's technically a separate feature request.

Error on MurenOpen

Hi, just installed (with packer) and when I type :MurenOpen I get this error:

Error executing Lua callback: .../nvim/site/pack/packer/start/muren.nvim/lua/muren/ui.lua:245: invalid key: title_pos                               
stack traceback:                                                                                                                                    
        [C]: in function 'nvim_open_win'                                                                                                            
        .../nvim/site/pack/packer/start/muren.nvim/lua/muren/ui.lua:245: in function 'open'                                                         
        ...nvim/site/pack/packer/start/muren.nvim/lua/muren/api.lua:4: in function <...nvim/site/pack/packer/start/muren.nvim/lua/muren/api.lua:3>  

feature request: Position popup window

Hi, thanks for the great plugin! I hope I didn't miss some built in way to do this, but I was wondering if you had plans to allow options for positioning the pop up window(s). This would be useful since sometimes I like to look back at the code in full for context.

I made some quick changes on a fork to show what I mean. I didn't want to make a PR without checking if this was in your roadmap or you wanted to handle this further down the line (also I haven't implemented any tests on the fork). Thanks!

al-ce@c5dbd23

Position could be set with anchors and offset opts. In this picture, the anchor is bottom-right with -2 offsets in each direction, keeping muren off the corner

muren-set-window-position

If some combination of anchors, offsets, and width/height would place the window out of bounds, set it to the furthest in-bound position in the direction of the offset (notice that the anchors are bottom-right, but the offsets are -2000 in each direction, effectively making it a top-left anchored window)

muren-prevent-out-of-bounds

Feature request: enable confirmation

When replacing the occurrences in the file, it'd be nice to the the confirm option. If confirm is on, then before replacing a specific occurrence, user should be asked to confirm if they want it to be changed.

Freeze when I try to active some options

When I try to active dir ou files my terminal freeze.
I have to close and reopen everything.

image

Other option seems toggle correctly.

Is there some prerequisite package to install in the OS to get it works?

Quickfix list

In addition to the new undo/redo feature we could maybe also have a command which populates the quickfix list with the previous edited positions such that one can easily find them and inspect what actually changed.

<CR> does nothing with default configuration

Namaste!

Love the idea. However, when I try to issue the replace command by pressing <CR>, nothing happens.

My configuration in init.lua:

  {
    'AckslD/muren.nvim',
    config = true,
  },

Thank you! :)

Cheers,
Yesudeep.

Very slow performance on large repos

When attempting to search replace across a large repository the plugin takes forever, listing each file it iterates over very slowly.

It seems that it is currently unusable with large repositories.

[Bug]: Wrong range replacing

Reproduce Steps

I have the following lua file:

local opt = vim.opt
opt.termguicolors = true
opt.relativenumber = true
opt.tabstop = 2
opt.shiftwidth = 2
opt.softtabstop = 2

I then select from line 2 (opt.termguicolors = true) to the end of file, and replace opt with x

Expected behavior:

replace opt to x from line 2 to end

Actual Behavior:

line 2 is not changed (only from line 3 to end)

Highlight replacement

Would be nice to have the replacement highlighted in the preview. Although not sure how to figure out where they are. Anyone has some ideas?

Weird text highlighting

First of all, this is a great plugin. Thank you for making this.
Second of all, when toggling the "recursive" option in the settings pane, some words get highlighted with the IncSearch style.

Problem with installation

Hi there,

I have been trying to install the plugin with packer using a simple packer config:

return require('packer').startup(function(use)
-- Packer - plugin management {{{
use 'wbthomason/packer.nvim'
-- }}}
--

use 'AckslD/muren.nvim'

  -- Put this at the end after all plugins
  if PACKER_BOOTSTRAP then
    require('packer').sync()
  end
end)

Once I save, and install, by using PackerStatus I get:

            packer.nvim - Total plugins: 2

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• muren.nvim
• packer.nvim

And if I use :h muren.nvim-muren.nvim, I do get the right document. However, if I try to use :MurenOpen or any other command, I get E492: Not an editor command: MurenOpen.

My nvim version is:

NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3

I thought the problem was with packer, but I tested adding some other plugins and things were working just fine. I appreciate any help in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.