Is there an extension to manage buffers? #407

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

Comments

Projects
None yet
4 participants
@lsiden

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

This comment has been minimized.

Show comment Hide comment
@kien

kien May 17, 2013

Owner

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.

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

This comment has been minimized.

Show comment Hide comment
@lsiden

lsiden 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 notifications@github.com 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/kien/ctrlp.vim/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

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 notifications@github.com 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/kien/ctrlp.vim/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

This comment has been minimized.

Show comment Hide comment
@kien

kien May 28, 2013

Owner

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.

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

This comment has been minimized.

Show comment Hide comment
@lsiden

lsiden 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" notifications@github.com 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/kien/ctrlp.vim/issues/407#issuecomment-18529255
.

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" notifications@github.com 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/kien/ctrlp.vim/issues/407#issuecomment-18529255
.

@stefanosc

This comment has been minimized.

Show comment Hide comment
@stefanosc

stefanosc Mar 5, 2015

👍 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 😄

👍 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

This comment has been minimized.

Show comment Hide comment
@jwmann

jwmann 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.

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