Rainbow Folders Fixer

by Dee
5
4
3
2
1
Score: 51/100

Description

The Rainbow Folders Fixer plugin addresses a visual issue where folder colors in the file explorer shift unexpectedly as DOM elements are loaded or unloaded during scrolling. It achieves this by assigning stable data attributes to folders, allowing consistent color styling through CSS. Users can configure the number of colors, the attribute name used for data binding, and whether subfolders should inherit or cycle through the color scheme recursively. This is especially helpful for those using custom themes or rainbow-style folder coloring, ensuring a cleaner and more predictable appearance without relying on fragile nth-child selectors.

Reviews

No reviews yet.

Stats

1
stars
1,450
downloads
0
forks
368
days
397
days
384
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

README file from

Github

Rainbow Folders Fixer

This is a plugin I made for personal use in Obsidian. It solves the issue of rainbow folders changing colors as DOM elements are loaded and unloaded (i.e. when scrolling) in the File explorer by making use of data attributes.

How to use

In the plugin settings, there are three settings to be configured:

  • Number of colors: the number of colors you want to iterate through.
  • Attribute name: this is what will be added to the element. For example, putting "foldernumber" in here will add an attribute called "data-foldernumber" to the element.
  • Apply recursively: toggle this on or off to have the rainbow iterate recursively through all subfolders, or to keep all children folders the same color as their parents.

In your CSS snippets or your theme, you now only need to do the following instead of relying on Nth-child implementations (though it may still be useful to keep that on hand and commented out in case you no longer wish to use this plugin):

.nav-folder[data-foldernumber="1"] {
  --rainbowcolor: var(--rainbowcolor1);
}
.nav-folder[data-foldernumber="2"] {
  --rainbowcolor: var(--rainbowcolor2);
}
.nav-folder[data-foldernumber="3"] {
  --rainbowcolor: var(--rainbowcolor3);
}
/* etc... */

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Novel Word Count
4 years ago by Isaac Lyman
Obsidian plugin. Displays a word count or other statistic for each file, folder and vault in the File Explorer pane.
Frontmatter Alias Display
3 years ago by muhammadv-i
A plugin for Obsidian.md to show front-matter aliases as display names in the file menu.
TreeFocus
2 years ago by iOSonntag
Obsidian plugin: Highlight, dim & style your files & folders in the file explorer (navigation) based on predefined or custom rules.
Headings in Explorer
2 years ago by Patrick Chiang
This Obsidian plugin makes headings first class concepts in the file explorer and consolidates navigation to a single panel.
Collapse All
5 years ago by Nathonius
File Explorer Markdown Titles
5 years ago by Dylan Elliott
Obsidian Plugin that adds the the markdown title within your notes to the file explorer
Prominent Bookmarked Files
5 years ago by Jeremy Valentine
Prominently display starred files in Obsidian.md
Reveal Active File Button
4 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
Simple Focus
a year ago by Lin Qing
Allows you to focus on a specific file or folder. 让你可以专注于一个文件或文件夹
Manual Sorting
a year ago by Kh4f
📌 DnD file sorting for Obsidian
Hide Index Files
a year ago by d7sd6u
Hides folder notes from the file explorer
Reveal Folded
a year ago by d7sd6u
Adds a command that reveals current file while collapsing every other tree item
Rainbow-Colored Sidebar
a year ago by Kevin Woblick
Automatically color your sidebar like a rainbow. No configuration needed. 8 themes included.
Mark Open Files
a year ago by Michael Schrauzer
Adds a marker to all the File Explorer items that are currently open in the Obsidian workspace.
Simple Colored Folder
a year ago by Mara-Li
Color each folder starting by their root. Allow to detecting root directly by obsidian ; and configuring using Style Settings.
Zen Space
a year ago by Aditya Amatya
An enhanced file explorer showing relevant only relevant files for focused work.
Discrete
9 months ago by shkarlsson
Scrolls To Nav Top
9 months ago by mario
Simply scrolls to nav top
Notebook Navigator
8 months ago by Johan Sanneblad
Replace the default file explorer in Obsidian with a clean two-pane interface featuring folder tree, tag browsing, file previews, keyboard navigation, drag-and-drop, pinned notes, and customizable display options.