khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
14.08k stars 702 forks source link

Cycle through chat history in chat input on Obsidian #861

Closed shantanuSakpal closed 2 months ago

shantanuSakpal commented 3 months ago

This pull request implements the recursive re-chat functionality as mentioned in issue #819. I have used an array userMessages to store the user's input messages and user can toggle through the messages using up and down arrow key by making a new function handleArrowKeys

i ran git pull before commiting changes. I have ran pre-commit install -t pre-push -t pre-commit before creating this pr. Also i ran pytest and ``mypy``` There were some test failing, but none of them were due to my changes.

shantanuSakpal commented 3 months ago

hey @sabaimran , i have added the other half of the feature mentioned in issue #819, just to get an idea of the code and structure. Will soon update about the first feature