nvim-tree / nvim-tree/nvim-tree.lua

`rename` And `paste` Create Missing Directories

Open
#1,818 1 comment 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request PR please QOL
Dominant language
Lua
Stars
8.6k
Forks
639
Avg merge
1d 14h
Merged PRs (30d)
2

Description

Can this functionality be implemented utilising API?
Yes. A custom action may be created which creates a directory if it's missing, then calling rename or paste.

Is your feature request related to a problem? Please describe.
See https://github.com/nvim-tree/nvim-tree.lua/issues/3#issuecomment-1261497971 for failure cases.

Describe the solution you'd like
rename and paste create the directory if it is missing.

Describe alternatives you've considered
Do nothing: users create the directory first.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the rename and paste actions and review the API or custom-action path described in the issue. Trace how each operation handles a missing directory, then verify both operations create the directory without requiring users to create it first.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.