Skip to content

Allow api.fs... to take a path as input #1605

@ymn64

Description

@ymn64

Instead of having to prompt the user to enter a filename after invoking api.fs.create, it would be nice if we could do something like this:

require('nvim-tree.api').fs.create('/path/to/file')

(If no input is passed, then prompt to enter filename.)

And the same for api.fs.paste.

A really good use case for this would be a user-friendly action for file duplication, which is a pretty common action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIAPI or EventPR pleasenvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatedfeature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions