Giter Site home page Giter Site logo

Creating a directory about nvim-tree.lua HOT 4 CLOSED

kyazdani42 avatar kyazdani42 commented on April 29, 2024
Creating a directory

from nvim-tree.lua.

Comments (4)

kyazdani42 avatar kyazdani42 commented on April 29, 2024 130

Hi,
I'm glad you're enjoying this plugin.
Currently, you can create a directory by adding a / to the end of a path.
Also, you can create directories dynamically when creating a file (like /foo/bar/baz/file.txt).
I don't really like the way i do file handling, i might work on a refactoring someday to make it easier to work with. If you have any ideas for the ux feel free to submit them :)

from nvim-tree.lua.

alex-courtis avatar alex-courtis commented on April 29, 2024 6

Confirmed: mkdir -p behaviour is done for create, but not rename or copy to new path.

Raised #1818

from nvim-tree.lua.

martin-braun avatar martin-braun commented on April 29, 2024 3

@kyazdani42 But what if I want to move a file to a new folder? I tried to rename the file, but it requires the folder to be in existence before-hand. Copying the file and removing the old one feels redundant. A force rename that runs mkdir -p of the dirname would be preferable.

from nvim-tree.lua.

magoz avatar magoz commented on April 29, 2024

Same question as @martin-braun. When renaming files, how can we force folder creation if they don't exist?

from nvim-tree.lua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.