obsidian-switcher-plus
obsidian-switcher-plus copied to clipboard
Allow standard mode to include open files at the top
Quick Switcher++ is a very helpful tool, it allows me to search for open editors by typing a special prefix (edt by default) in the quick switcher. But I think it’s still not very intuitive, I want the “search any file and open it” action and “search for existing open file and activate it” to be combined into one thing to use.
In this PR I add a new setting item called “Include open files”. When it’s enabled, the switcher modal shows all the open files at the top with a different color style. If the open file is chosen, make that pane active; Other suggestions behave the same as the original, opening the file in the active pane.
https://i.imgur.com/bGLcQKl.mp4
The CSS color styles could be removed, it's included just for a demonstration purpose.
Thanks for this PR. I will plan to take some time this weekend to look through it. Thanks.
Thanks for the careful and professional code review ☺️, I'll refine the code and give feedback this week when I got time.
@reorx Any plans on working on this? I absolutely would love to have this feature, if I can help I'm more than happy to.
Hey @aidan-gibson this feature is now live for headings mode with release 2.0.7. Thanks for the contribution @reorx! 😀