leath-dub / snipe.nvim

Efficient targetted menu built for fast buffer navigation
MIT License
251 stars 16 forks source link

max_path_width option not available anymore #38

Open linkarzu opened 3 weeks ago

linkarzu commented 3 weeks ago

I used to limit the width of path buffer names like this before

vim.keymap.set("n", "<S-l>", function()
  local toggle = require("snipe").create_buffer_menu_toggler({
    -- Limit the width of path buffer names
    max_path_width = 1,
  })
  toggle()
end, { desc = "[P]Snipe" })

I'm not sure where to set this with the new keymap to open snipe

  "leath-dub/snipe.nvim",
  keys = {
    {
      "<S-l>",
      function()
        require("snipe").open_buffer_menu()
      end,
      desc = "Open Snipe buffer menu",
    },
  },

Did the name of that max_path_width option change or is it gone completely, how do I limit the path width?

linkarzu commented 3 weeks ago

Created a new issue, but found somoene else raised this in a closed issue here

leath-dub commented 3 weeks ago

This slipped my mind on the rewrite, ill have a way to restore this in a bit

linkarzu commented 3 weeks ago

Appreciate it very much!

leath-dub commented 2 weeks ago

Just an update on this, I have not gotten to it yet ( very busy in uni right now :( )

leath-dub commented 2 weeks ago

41 What do people think about the feature I mention here. I think a lot of the "path shortening" and truncation is better handled by that proposed feature (not heavily tested yet)

linkarzu commented 1 week ago

41 What do people think about the feature I mention here. I think a lot of the "path shortening" and truncation is better handled by that proposed feature (not heavily tested yet)

Personally I am fine with whatever the approach is, as long as I can implement it, I'm good. Not sure what others think

leath-dub commented 1 week ago

41 What do people think about the feature I mention here. I think a lot of the "path shortening" and truncation is better handled by that proposed feature (not heavily tested yet)

Personally I am fine with whatever the approach is, as long as I can implement it, I'm good. Not sure what others think

well I will add this feature anyway but for now the alternative layout should hopefully solve most peoples issues with readability. Its near end of semester for me so i am quite busy with uni.