This obsidian plugin allows you to add icons to your folder or icon if you want.
Right now, the current iconsets are supported:
This is how your folders can look like:
There are different functionalities of displaying an icon for your folder.. We will go over them in this section.
In general, there are different icon sets, you can enable or disable. You can find these options in the settings of the plugin.
In addition, you can adjust some styling settings for all the icons like padding, color, or even the icon size.
It is pretty simple to add an icon to your folder:
- Right click on the folder where you want to add an icon
- Select the
Change Icon
menu item (prefixed with a#
icon) - Select the icon you want and profit!
To delete an icon, you just need to click on the Delete Icon
(prefixed with a trash
icon) menu item.
This functionality lets you define an inherit icon
for a specific folder. When you add a file to this folder, the created file will inherit this icon. In addition, all files in the folder will have this specific inherited icon.
To apply an inherited icon:
- Right-click the folder
- Use the
Inherit icon
menu entry - For removing: just right-click again and click
Remove inherit icon
Twemoji is a popular library to add universal emojis to your application. With the help of this library, you can now set an emoji as your folder icon. Just follow these steps:
- Right-click the folder
- Click
Change icon
- Open your OS-specific emoji dialog
- Mac OSX:
Control + Command + Space
- Windows:
Windows + ;
- Mac OSX:
- Select the option
Use twemoji emoji
To customize this project for your needs, you can clone it and then install all dependencies:
$ git clone https://github.com/FlorianWoelki/obsidian-icon-folder
$ cd obsidian-icon-folder
$ yarn
After installing all dependencies, you need to generate the icon folders so that they will be displayed and added to the output file:
$ node scripts/generate-icons.js
After executing successfully, you can start the rollup dev server by using:
$ yarn dev
This command will automatically build the neccesary files for testing and developing on every change.
Also, make sure that you copy the built files into the the plugins directory.
For example (command for OSX):
$ cp main.js manifest.json src/styles.css /Users/<user>/Library/Mobile\ Documents/iCloud\~md\~obsidian/Documents/Second\ Brain/.obsidian/plugins/obsidian-icon-folder
Finally, you can customize the plugin and add it to your plugins.