jparkerweb / pixel-banner

🚩 Plugin for Obsidian that allows you to automatically add beautiful banner images to your notes from various sources.
https://www.equilllabs.com/projects/pixel-banner.html
MIT License
52 stars 0 forks source link

🔄 Add Reresh Random Image Button #43

Closed Moyf closed 1 month ago

Moyf commented 1 month ago

Hi, I see the new Pin feature and think it's great, and I think - We can now have multiple images randomized, and sometimes the random ones that I don't like very much, can we use a command to "refresh" them? Also, is it possible to "blacklist" a specific image and no longer show it?

The second requirement may require storing more data, which is a bit cumbersome...... I think it's enough to have a manual refresh function at the moment!

jparkerweb commented 1 month ago

@Moyf Image

Moyf commented 1 month ago

It's so fast, thanks for the development!!


By the way, I did some css customization for the Pin icon (it's not FR, just to share 😸):


.pin-icon {
    /* display: none !important; */
    padding-left: 1em;
    padding-top: 0.5em;
    opacity: 0.2;
    font-size: 1em !important;
}

.pin-icon:hover {
    /* display: none !important; */
    opacity: 1.0;
}

In this way, it itself will not take up too much attention, and it will be good to move over when needed~ 01d557ef-c133-4004-9bfb-ed0f96c1d34c

Moyf commented 1 month ago

image

Also, would you consider adding commands to these two new features (Pin/Refresh)? In this way, it can be operated purely by keyboard, and secondly, users who have hidden icons can also perform corresponding operations~

Moyf commented 1 month ago

image

@jparkerweb By the way, what do you think about hiding the buttons if no banner image is set?

jparkerweb commented 1 month ago

done and done:

🎉 What's New

v2.6.2

Added

v2.6.1

Updated

v2.6.0

Added

Moyf commented 1 month ago

done and done:

🎉 What's New

v2.6.2

Added

  • Added command palette commands for Pin and Refresh actions

    • Commands are contextually available based on current note and settings
  • Added Fuzzy Suggest Modal for Folder Selection when Pinning a Banner Image
  • Pin and Refresh Icons are now semi-transparent unless hovered over as to not be too distracting

v2.6.1

Updated

  • Removed Pin and Refresh Icons from showing in Embedded Notes

v2.6.0

Added

  • Added a Refresh Icon that appears next to the pin icon for random API images
  • Click the refresh icon (🔄) to instantly fetch a new random image
  • Enable/Disable the Refresh Icon in Settings (dependent on Pin Icon being enabled)

GREEEAAAT! 🥳🚀 Thank you!!