obsidian-switcher-plus icon indicating copy to clipboard operation
obsidian-switcher-plus copied to clipboard

Allow standard mode to include open files at the top

Open reorx opened this issue 3 years ago • 3 comments

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.

reorx avatar Apr 20 '22 06:04 reorx

Thanks for this PR. I will plan to take some time this weekend to look through it. Thanks.

darlal avatar Apr 22 '22 02:04 darlal

Thanks for the careful and professional code review ☺️, I'll refine the code and give feedback this week when I got time.

reorx avatar Apr 26 '22 02:04 reorx

@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.

aidan-gibson avatar Aug 25 '22 00:08 aidan-gibson

Hey @aidan-gibson this feature is now live for headings mode with release 2.0.7. Thanks for the contribution @reorx! 😀

darlal avatar Aug 30 '22 03:08 darlal