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

Allow ivy--kill-buffer-action to kill virtual buffers (remove from recentf) #1888

Closed
glucas opened this issue Jan 15, 2019 · 4 comments

Comments

@glucas
Copy link
Contributor

commented Jan 15, 2019

This was requested on Emacs StackExchange: Can the kill buffer action also apply to virtual buffers?

I've worked around this by registering my own kill action that checks if the buffer exists and if not tries to remove it from the recentf-list, but this seems like a generally useful capability.

The equivalent is apparently provided for ido, ido-kill-buffer-at-head

@manuel-uberti

This comment has been minimized.

Copy link
Contributor

commented Jan 16, 2019

I wonder: does ivy-switch-buffer-kill do what you are looking for? I've bound it to C-k in ivy-switch-buffer-map, but it should be bound to C-c C-k in that keymap by default.

@glucas

This comment has been minimized.

Copy link
Contributor Author

commented Jan 16, 2019

No, that also works on existing buffers but not virtual buffers (i.e. the entries included from recentf). Killing one of those would require removing it from the recentf list. The goal here would be to have a single kill action that does the right thing, either killing the buffer or removing the corresponding entry from the recentf list.

@manuel-uberti

This comment has been minimized.

Copy link
Contributor

commented Jan 16, 2019

Understood. Then, @abo-abo is needed. :)

@abo-abo abo-abo closed this in 5a6058a Jan 23, 2019

@abo-abo

This comment has been minimized.

Copy link
Owner

commented Jan 23, 2019

Thanks.

ivy-switch-buffer-kill

This one was updated as well. I'm tempted to bind ivy-switch-buffer-kill to C-k by default, I don't know if many people are aware it exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.