logancyang / obsidian-copilot

THE Copilot in Obsidian
https://www.obsidiancopilot.com/
GNU Affero General Public License v3.0
3.01k stars 209 forks source link

Focus on chat window without toggling #798

Open hoangbn opened 4 days ago

hoangbn commented 4 days ago

Is your feature request related to a problem? Please describe. Going back and forth between the notes and chat window is not seamless

Describe the solution you'd like A hotkey to focus on the chat (from wherever), whether the chat is opened already or not

Describe alternatives you've considered Use the toggle chat functionality, however, it only works well when the chat is already closed. Additionally, it re-indexes

logancyang commented 3 days ago

Dupe of #749 ? @zeroliu

About re-index, you can turn it off in the setting with a different auto index strategy.

zeroliu commented 2 days ago

Yeah, the PR should fix the focus issue. But I also find a bug now that I'm testing it. The settings will reset after triggering the new open chat command. I think it's because we reuse the activate code that disables and re-enables the chat. It causes the settings to reset. I can take this as a follow-up ticket for #749.