Skip to content

Delete file or kill buffer DWIM [Feature request] #164

@kaushalmodi

Description

@kaushalmodi

I have switched to using counsel and ivy instead of ido and this is one of the features I miss from ido:

  1. When doing C-x C-f, if the selection is on a file name that is not open in one of the buffers, C-k will delete (or trash, depending on delete-by-moving-to-trash) that file name.
  2. When switching buffers, C-k will kill the selected buffer if open. If the buffer is already closed (virtual buffer) and if that buffer was associated to a file name, that file will be deleted (or trashed).

It will be nice to have these functionalities in counsel-find-file and ivy-switch-buffer.

Currently, I need to switch to that file/buffer and then delete/kill it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions