obsidian-another-quick-switcher icon indicating copy to clipboard operation
obsidian-another-quick-switcher copied to clipboard

Bug: Duplicate Icons with Supercharged Links in Heading Search

Open chrisgrieser opened this issue 3 years ago • 1 comments
trafficstars

Not entirely sure whether the issue is on Supercharged Links' end, or this plugin's end, but the new heading search leads to duplicate headings

https://github.com/mdelobelle/obsidian_supercharged_links/issues/109

Pasted image  2022-05-05 15 20 42

The plugin adds elements for icons based on existing css elements. This line is responsible for adding the needed the elements for icons to Another Quick Switcher: https://github.com/mdelobelle/obsidian_supercharged_links/blob/master/main.ts#L147

I am no entirely certain, but I think the issue arises from that fact that the heading search suggester has two classes affected at the same time due to the nesting of headings, it could be that some selector name changes on this side could solve this.

chrisgrieser avatar May 05 '22 14:05 chrisgrieser

Probably, it doesn't need to add an icon on Heading search. When there is another-quick-switcher__item__title__header class, you will get it as expected if Supercharged Links ignore the operation.

image

tadashi-aikawa avatar May 06 '22 05:05 tadashi-aikawa

has actually been solved by a PR for sueprcharged links a while ago.

chrisgrieser avatar Oct 16 '22 09:10 chrisgrieser