Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RavenHogWarts/obsidian-custom-icons
Custom Icons
https://github.com/RavenHogWarts/obsidian-custom-icons
Last synced: 17 days ago
JSON representation
Custom Icons
- Host: GitHub
- URL: https://github.com/RavenHogWarts/obsidian-custom-icons
- Owner: RavenHogWarts
- License: mit
- Created: 2024-03-22T11:34:40.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-06-17T18:47:46.000Z (6 months ago)
- Last Synced: 2024-08-07T20:27:59.430Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 795 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-obsidian-zh - RavenHogWarts/obsidian-custom-icons
README
# Custom Icons
Enhance your workspace with customizable icons for documents and folders.
![Obsidian Downloads](https://img.shields.io/badge/dynamic/json?logo=obsidian&color=%23483699&label=downloads&query=%24%5B%22custom-sidebar-icons%22%5D.downloads&url=https%3A%2F%2Fraw.githubusercontent.com%2Fobsidianmd%2Fobsidian-releases%2Fmaster%2Fcommunity-plugin-stats.json)
![GitHub stars](https://img.shields.io/github/stars/RavenHogWarts/obsidian-custom-icons?style=flat)
![latest download](https://img.shields.io/github/downloads/RavenHogWarts/obsidian-custom-icons/latest/total?style=plastic)
[![Github release](https://img.shields.io/github/manifest-json/v/RavenHogWarts/obsidian-custom-icons?color=blue)](https://github.com/RavenHogWarts/obsidian-custom-icons/releases/latest)
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/RavenHogWarts/obsidian-custom-icons?include_prereleases&label=BRAT%20beta)[中文](https://github.com/RavenHogWarts/obsidian-custom-icons/blob/master/README_ZH.md) | [English](README.md)
## Usage
Currently, there are two ways to set the icons:
- Custom: This includes using online URLs, local relative or absolute file paths, Base64 encodings, or SVG tags.
- Lucide icons: This method requires only the name of the icon from [Lucide](https://lucide.dev/icons/). Note that the official Obsidian icons also use Lucide icons.### Examples
- Online URL: `https://www.example.com/favicon.ico`
- Local images:
- Relative path: `.obsidian/svg/example.svg`
- Absolute path (Unix-style): `/Users/YourUsername/Pictures/example.jpg`
- Absolute path (Windows-style): `D:\Pictures\example.png`
- Base64 encoding: Starting with `data:`
- SVG tags: Enclosed within `` tags
- Lucide source icons: Directly use the icon name from Lucide.![Usage](attachment/Usage_EN.png)
## Installation
### Install from Community Plugins
[Click to install](obsidian://show-plugin?id=custom-sidebar-icons), or:
1. Open Obsidian and go to `Settings > Community Plugins`.
2. Search for "Custom Icons".
3. Click "Install".### Install via BRAT Plugin
1. Install the [BRAT plugin](obsidian://show-plugin?id=obsidian42-brat) from Community Plugins.
2. In the BRAT plugin settings, click "Add Beta Plugin".
3. Enter the URL `https://github.com/RavenHogWarts/obsidian-custom-icons`.
4. Enable "Custom Icons" in "Third-party Plugins".### Manual Installation
1. Download the latest release from [Releases](https://github.com/RavenHogWarts/obsidian-custom-icons/releases/latest).
2. Copy `main.js`, `styles.css` and `manifest.json` to `VaultFolder/.obsidian/plugins/custom-sidebar-icons/`.
3. Reload plugins and enable "Custom Icons" in "Third-party Plugins".## How to Build
1. Clone the repository: `git clone https://github.com/RavenHogWarts/obsidian-custom-icons`.
2. Install dependencies: `npm install`.
3. Start development: `npm run dev`.
4. Build for production: `npm run build`.## License
[Custom Icons](https://github.com/RavenHogWarts/obsidian-custom-icons) is licensed under the MIT License. See [LICENSE](https://github.com/RavenHogWarts/obsidian-custom-icons/blob/master/LICENSE) for more information.
## Acknowledgements
- [obsidian-metadata-icon](https://github.com/Benature/obsidian-metadata-icon)
- [Templater](https://github.com/SilentVoid13/Templater)## Support
If you find this plugin useful and wish to support its development, you can do so through the following methods: WeChat, Alipay, [Love Power Donation](https://afdian.net/a/ravenhogwarts) or [Paypal](https://www.paypal.com/paypalme/RavenHogwarts). Any amount of support is appreciated. Thank you!