ramensoftware / windhawk-mods

The official collection of Windhawk mods
253 stars 50 forks source link

[Taskbar Thumbnail Reorder] : reorder base on tab name #557

Open HaomingChen1998 opened 5 months ago

HaomingChen1998 commented 5 months ago

Hi @m417z , thank you for creating this mod, it's a huge lifesaver. Just want to share an idea to improve it further, thanks!

Is it possible to add the functionality that does the following:

  1. Define a tab name that I want to look for, and what order position I will want that window to be in after found.
  2. Loop through all the tabs for each firefox window to get the defined tab name, if tab name/ tab title is found, then position that window in the order I wanted.

Example use case: Say that I want to look for a tab with title "gmail" (partial match), and I want to position this window as the first position in thumbnail. Maybe I can define tab_name = "gmail", and position=1. Then the mod will loop through all the tabs from each window, and reposition the thumbnail window (first match) in the first position.

This modification will allow customization for users and basically avoid the need to reorder the thumbnails manually everytime after a restart.

m417z commented 5 months ago

Thanks for the suggestion. It looks similar to https://github.com/ramensoftware/windhawk-mods/issues/155.