Giter Site home page Giter Site logo

fnya / remove-empty-folders Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 178 KB

Remove Empty Folders for Obsidian

Home Page: obsidian://show-plugin?id=remove-empty-folders

License: MIT License

JavaScript 52.87% TypeScript 41.71% CSS 5.42%
obsidan obsidian-plugin

remove-empty-folders's Introduction

Remove Empty Folders

This is an Obsidian plugin that removes empty folders.

Caution !!

Be sure to back up Obisidan data before running this plugin !!

In the worst case scenario, data may be lost.

How to use

Select the notes you want to merge in the file explorer.

Select the folder(s) in the File Explorer from which you want to remove the empty folder(s).

Right click on the selection and select Remove empty folders.

In the image example, subfulder1-2 and subfulder1-3 will be removed.

Limitations

This plugin removes empty folders at the point of execution. Therefore, empty folders as a result of running the plugin will not be removed.

You may need to run the plugin several times to remove all empty folders.

Troubleshootings

In the unlikely event that an unexpected folder is deleted, please check inside the ObsidianValtPath/.trash folder.

The plugin moves the empty folder to the obsidian .trash folder rather than physically removing it, so the contents can be checked and recovered as shown in the following image.

remove-empty-folders's People

Contributors

lishid avatar ericaxu avatar edo78 avatar fyears avatar chrisgrieser avatar aidenlx avatar reorx avatar tokuhirom avatar timrogers avatar tfthacker avatar phibr0 avatar taurelas avatar kostapc avatar joethei avatar inouetakuya avatar henrebotha avatar gitmurf avatar clemens-e avatar pozdneev avatar

Stargazers

 avatar a13ph avatar

Watchers

fnya avatar

remove-empty-folders's Issues

a function demand, could you add "include words"

  1. i installed obsidian plugin “custom attachement location” and "image loccal plus" ,
  2. active them
  3. specify the "location of new attachement" in "custom attachement location" plugin as "./${filename}.assets".

when i create a note , my obsidian will create a empty folder as "./${filename}.assets" automatically.

could you add an option in “remove-empty-folders” , just remove empty folders contain specified words ,such as “.assets”.

so i can just remove the empty folder with ".assets".

thank you for your considering。

Best wishes。

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.