Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an extension to manage buffers? #407

Open
lsiden opened this issue May 16, 2013 · 6 comments
Open

Is there an extension to manage buffers? #407

lsiden opened this issue May 16, 2013 · 6 comments

Comments

@lsiden
Copy link

lsiden commented May 16, 2013

I searched GitHub for a ctrlp extension that will allow me to remove unneeded buffers, as BufExplorer can but could not find one. Hard for me to believe that this basic feature is missing since it's so handy. ctrl-z and F5 will removed files from the MRU list but I can't find anything that does that for open buffers.

@kien
Copy link
Owner

kien commented May 17, 2013

Well, there are good, full featured plugins for managing buffers, so why build it into ctrlp? But people keep requesting this from time to time, I think I may just add it. There's also a .vimrc snippet which you can use right now, in #280.

@lsiden
Copy link
Author

lsiden commented May 17, 2013

I still have BufExplorer and used to use it exclusively, but it's takes a
long time to come up if I have more than a few buffers. Can't remember if
it was always like that or what I may have changed that made it so slow.
That's how I learned about ctrlp.

I have to mention, ctrlp, too, can take a bit longer to come up when I
start it in Mixed mode as I've been trying since yesterday.

On Fri, May 17, 2013 at 10:16 AM, kien [email protected] wrote:

Well, there are good, full featured plugins for managing buffers, so why
build it into ctrlp? But people keep requesting this from time to time, I
think I may just add it. There's also a .vimrc snippet which you can use
right now, in #280 #280.


Reply to this email directly or view it on GitHubhttps://github.com//issues/407#issuecomment-18063860
.

-Larry Siden

"It's unfortunate that Americans have only two political parties to choose
from. One is made up of psychos; the other, wimps."

  • a friend who moved to the US from Italy

“The United States is a nation of laws - poorly written and randomly
enforced."
-Frank Zappa, 1940-1993

@kien
Copy link
Owner

kien commented May 28, 2013

Mixed mode basically loads all three File, Buffer, and MRU modes and the mixing also takes some more time. So naturally, it's slower than each of the modes.

Anyway, buffer deletion may take a while since there are a few things I want to do first. I've also been a bit busy lately. If you don't want to wait, you can just create a mapping to delete a buffer in Buffer mode. All you have to do is grabbing the buffer name from the current line.

@lsiden
Copy link
Author

lsiden commented May 29, 2013

I already started using the script you pointed me to so there's no need to
sweat it. I agree that BufExplorer would be better for that but it takes
a long time to open once there are more than a few buffers. Thanks.
On May 28, 2013 12:44 AM, "kien" [email protected] wrote:

Mixed mode basically loads all three File, Buffer, and MRU modes and the
mixing also takes some more time. So naturally, it's slower than each of
the modes.

Anyway, buffer deletion may take a while since there are a few things I
want to do first. I've also been a bit busy lately. If you don't want to
wait, you can just create a mapping to delete a buffer in Buffer mode. All
you have to do is grabbing the buffer name from the current line.


Reply to this email directly or view it on GitHubhttps://github.com//issues/407#issuecomment-18529255
.

@stefanosc
Copy link

👍 for buffer deletion
I read all the previous requests and I would love to see this feature built into ctrlp, thank you for awesome plugin 😄

@jwmann
Copy link

jwmann commented Dec 7, 2015

👍 For Buffer Deletion as well.

I tried to use the snippet above but I have an OS mapping to Ctrl + 2 which obviously makes that mapping not useful.

There doesn't seem to be any other mapping combinations available to use though..

For the record, someone did make an extension but it doesn't let you change the mapping.
Although it does let you mark multiple buffers with <c-z> which is neat.
You can find it here - https://github.com/d11wtq/ctrlp_bdelete.vim

It would be great if this was built-in though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants