famiu / bufdelete.nvim

Delete Neovim buffers without losing window layout
GNU General Public License v3.0
515 stars 16 forks source link

Ability to close all possible buffers #13

Closed Strongleong closed 2 years ago

Strongleong commented 2 years ago

It would be handy to have something like Bdelete * to delete all mess you've opened

famiu commented 2 years ago

Well the general way of doing it would be to support ranges like bdelete does, but that would be a bit complicated to implement within bufdelete. You can just make a function that loops through the buffers and deletes them one by one using Bdelete to do what you want to. So I don't think I'm going to be implementing this in the plugin. I might add ranges though if I figure out a simple way to, but whether that happens or not is uncertain.