-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Major updates to Obsidian Khoj plugin chat interface and editing features #1109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 42 commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
f2d50c2
Add /research command to help message
hjamet e94bd11
Add chat mode selector with radio buttons in Obsidian interface
hjamet 00586d1
Enhance chat mode selector with emoji labels and styling
hjamet b458c93
Implement chat mode command parsing and display logic
hjamet 7972c7c
Add edit functionality to chat messages in Obsidian interface
hjamet 253569a
Enhance chat action buttons with hover states and edit button visibility
hjamet 793020d
Add agent selection and new chat functionality to Obsidian chat inter…
hjamet 52816bb
Remove verbose console logging in Obsidian chat view
hjamet 475bc85
Improve agent selection UI with hint and layout adjustments
hjamet e1bd629
Add file access mode toggle with open files context for chat
hjamet be036eb
Implement file edit confirmation UI and advanced edit mode for Obsidi…
hjamet b2f2a6d
Enhance chat view with command-to-emoji conversion and file edit impr…
hjamet fd3a375
Improve multiline text replacement in Obsidian chat file editing
hjamet e807e2d
Refine multiline text replacement with improved parsing and handling …
hjamet 0b68149
Enhance file editing with improved edit instructions, status messages…
hjamet 27365ad
Refactor file editing with simplified edit instructions and more robu…
hjamet 9208887
Improve edit block parsing with more flexible regex and better handli…
hjamet e879ebf
Add styling and transformation for Khoj edit blocks in Obsidian chat
hjamet 492faed
Refine Khoj edit block instructions and text replacement logic in Obs…
hjamet a276a63
Enhance Khoj edit block replacement with intelligent diff tracking an…
hjamet 9fce56d
Improve line-by-line diff formatting and cleanup in Khoj edit block p…
hjamet 650bcec
Add code block copy functionality in Obsidian chat view
hjamet 6bfc7c9
Refactor Khoj edit block parsing and processing with JSON-based format
hjamet 373429c
Enhance Khoj edit block UI and error handling in Obsidian interface
hjamet 90f464d
Add JSON5 parsing support for more robust Khoj edit block processing
hjamet 3d316ff
Optimize Khoj edit block text removal and line cleanup logic
hjamet 6aafea1
Improve JSON parsing and line handling in Khoj edit block processing
hjamet 1477ecd
Merge branch 'khoj-ai:master' into master
hjamet a6d2726
Update TypeScript configuration and import for JSON5 in Obsidian inte…
hjamet 2af49c5
Merge branch 'master' of github.com:hjamet/khoj
hjamet e438764
Chore: Minor configuration file updates
hjamet 0fbae78
Feature: Add toggle for automatic voice response in Obsidian plugin
hjamet e32b764
Enhance file edit processing to preserve frontmatter in Obsidian plugin
hjamet ec92d14
Enhance edit block processing with robust error handling and retry me…
hjamet f612fb6
Add keyboard shortcuts and UI enhancements for edit block interactions
hjamet 0827dd5
Improve frontmatter removal in targeted edit block processing
hjamet 1927d33
Refactor edit block retry mechanism with improved error handling and …
hjamet 3caece9
Enhance edit block validation and error handling in Obsidian plugin
hjamet 878fcbc
Add retry badge and enhanced error handling for edit block processing
hjamet 2954e82
Modify keyboard shortcuts and remove keyboard hint styling
hjamet 8c5c122
Merge branch 'khoj-ai:master' into master
hjamet 73955f7
Merge branch 'khoj-ai:master' into master
hjamet 4e1ebd8
Refactor file interactions into a separate module for Obsidian plugin
hjamet fbc3f63
Replace khoj-edit code blocks with XML tags for more reliable parsing
hjamet 2978b54
Improve message editing and deletion in Obsidian chat view
hjamet c1955ed
Update chat action button hover styles in Obsidian theme
hjamet 5b94d4a
Refactor Obsidian chat interface with header-level new chat and agent…
hjamet 64b85e3
Add global hotkeys and improve chat view navigation in Obsidian plugin
hjamet a39ab9a
Add keybindings and commands for chat view navigation in Obsidian plugin
hjamet bd4f573
Enhance Obsidian chat UI with refined styling and smoother interactions
hjamet b2ed65a
Refactor Obsidian chat UI styles for improved responsiveness and mobi…
hjamet cd4de85
Refine Obsidian chat UI styles with subtle visual improvements
hjamet 62f81ea
Enhance chat input styling and interaction in Obsidian plugin
hjamet fe42397
Modernize Obsidian plugin header and navigation styles
hjamet 7262d11
Add mode dropdown for chat input with keyboard navigation
hjamet 6f21860
Merge branch 'khoj-ai:master' into master
hjamet 71eda25
Merge branch 'khoj-ai:master' into master
hjamet 8252da6
Enhance khoj-edit block handling by adding support for partial edits …
hjamet c3fba30
Add Similar Documents View and enhance formatting handling
hjamet 54ab9be
Mise à jour de l'interface utilisateur : amélioration de la gestion d…
hjamet abb7c74
Refactor khoj-edit block handling and update UI styles
hjamet 5549628
Update UI styles and icons in Similar Documents view
hjamet 7ab3bf2
Enhance Similar Documents view with new styles and loading indicators
hjamet 6bd5e8d
Refactor button styles in Similar Documents view
hjamet c29e087
Refactor chat input styles and auto-resize functionality
hjamet 0713b8d
Enhance khoj-edit block handling to support partial edits and improve…
hjamet 9259d28
Refactor khoj-edit block validation and application process
hjamet e7d1d26
Refactor chat view and styles for improved streaming experience
hjamet 228edcc
Update CSS styles for khoj-retry-container and khoj-retry-badge to en…
hjamet e154ab6
Merge branch 'khoj-ai:master' into master
hjamet 8555d30
Refactor chat view and styles for improved user experience
hjamet 967a4c3
Enhance chat view sanitization and error handling
hjamet 7b52bf9
Remove event listener for "New Chat" button in chat view header
hjamet 7e2b22d
Refactor CSS styles and chat view structure for improved layout
hjamet fca0cd1
Update starting message in chat view for clarity
hjamet 0393485
Enhance chat view dropdown functionality and input handling
hjamet b20e092
Merge branch 'khoj-ai:master' into master
hjamet 700e5f8
Refactor chat view and styles to use icons instead of emojis
hjamet 06579e6
Merge branch 'khoj-ai:master' into master
hjamet 84d4bab
Merge remote-tracking branch 'origin/master' into pr/hjamet/1109
debanjum 5a76676
Add yarn lockfile back to obsidian codebase
debanjum ff9dbf7
Improve code styling, comment language and arg types in chat view
debanjum 28c9cc4
Default to shorter chat input height, expand height when multiline
debanjum 798d7e8
Use chat input placeholder to show usage tips for learning moments
debanjum 689d26d
Continue to always sanitize chat messages with DOMPurify
debanjum 32ebdb6
Use isomorphic dompurify to use latest dompurify in obsidian plugin
debanjum 3c61a4b
Add unused, constructed CSP back to Obsidian plugin (as reminder)
debanjum 9b4aa96
Move edit block clean up for copy/paste into reusable function
debanjum 46568e7
Use search/replace method to have khoj edit files via obsidian plugin
debanjum c70d14b
Disable retry to fix edit blocks for now as pollutes chat history
debanjum 37471fb
Improve rendering suggested edit diffs in khoj message using jsdiff
debanjum 6198410
Remove redundant code to process single edit across phase 1 and 2
debanjum 3fa31f0
Fix deleting messages. Get correct message attribute for turnId.
debanjum 8392eb1
Normalize text before find/replace for more robust edits
debanjum c53ce17
Clean imports in similar view. Use Khoj as title of nav pane
debanjum f745951
Re-add existing emoji as visual indicators where no icons
debanjum bf16934
View and update default chat model from the Obsidian plugin settings
debanjum b538940
Organize obsidian settings. Improve display of connected state
debanjum 3eb47d7
Fix slash commands popup display in obsidian chat input
debanjum d7719c3
Handle operator train of thought, latest slash commands in obsidian
debanjum 803742c
Fix copy chat message to clipboard action in obsidian plugin chat
debanjum 3821757
Improve Khoj header pane style and navigation logic
debanjum 642bfbf
Convert comments to english, remove unused styles in obsidian css
debanjum dd00468
Do not show 2 instances of default agent in obsidian agent dropdown
debanjum 7bc0dc4
Fix refreshing default chat model selected in khoj obsidian settings
debanjum 7bea996
Clean up stale code and comments
debanjum c5b0b62
Fix to try apply edits at least once. Else behavior/ux is inconsistent
debanjum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,7 @@ | |
| "typescript": "4.7.4" | ||
| }, | ||
| "dependencies": { | ||
| "dompurify": "^3.1.4" | ||
| "dompurify": "^3.1.4", | ||
| "json5": "^2.2.3" | ||
| } | ||
| } | ||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.