8000 New files after file rule creation do not have icon set · Issue #59 · gfxholo/iconic · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

New files after file rule creation do not have icon set #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kherge opened this issue Jan 17, 2025 · 2 comments
Closed

New files after file rule creation do not have icon set #59

kherge opened this issue Jan 17, 2025 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@kherge
Copy link
kherge commented Jan 17, 2025

(Using plugin version 1.1.0.)

I have the following file rule:

Image

When I create a new file in that folder, the icon is not applied. It isn't until I toggle the rule off and then on again that I see the icon properly applied.

@gfxholo
Copy link
Owner
gfxholo commented Jan 17, 2025

Thanks so much @kherge, I forgot to watch for new file creation! Easiest fix in the world.

this.registerEvent(this.app.vault.on('create', tAbstractFile => { /* Update rulings */ }));

It'll work instantly in the next patch :)

@gfxholo gfxholo self-assigned this Jan 17, 2025
@gfxholo gfxholo added the bug Something isn't working label Jan 17, 2025
@gfxholo gfxholo added this to the 1.1.1 milestone Jan 17, 2025
@kherge
Copy link
Author
kherge commented Jan 17, 2025

I was worried it was some weird plugin interaction breaking things.

Glad to know it will be an easy fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
0