Skip to content

Feature: Cross-directory actions #7

Open
@elihunter173

Description

u/PaperCupsAhoy made a comment on Reddit asking

Does it support cut and paste (akin to mv) after hopping between different directories? E.g. cut from one directory and paste in a directory next to it?

New Thoughts

See #7 (comment). I previously thought making this feature work would be too difficult, but I think I know how to now.

Old Thoughts

I think this would be a nice feature. However, I'm not sure how to implement it and it seems very error prone to take actions across directory buffers. For example, how would cutting and pasting a file work across dirbufs? You have to save the one you're cutting from first because we don't let you leave a modified dirbuf (because how do we know how to navigate the filesystem if the buffer you're using to navigate doesn't represent the filesystem?) so you have to save, which deletes the file you're cutting! Copies are notably easier but I'd like cross-directory actions to support everything.

Edit: I had a bunch of thoughts about expanding subdirectories and modifying here, but I've since made a new issue #26

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions