On branch development
Changes to be committed:
modified: src/modals/CitationModal.ts
modified: src/services/citationService.ts
modified: src/styles/citations.css
citations
On branch development
Changes to be committed:
modified: src/modals/CitationModal.ts
modified: src/services/citationService.ts
modified: src/styles/citations.css
- Fixed method name mismatch between convertCitation and convertCitations
- Made generateHexId private and added public getNewHexId method
- Improved type safety for CitationMatch interface with explicit URL handling
- Cleaned up unused imports and variables in CitationModal
- Fixed file handling to use correct Obsidian API types
- Updated citation conversion logic to handle multiple groups
- Added proper error handling for file operations
- Improved code documentation and type annotations
- Formatted styles.css for better readability
footnotes
Enhanced Type Safety:
Made the type property more specific with a union type: 'footnote' | 'reference' | 'perplexity'
Made lineContent a required property since we always want to track the line context
Added proper null checks for regex match groups
Improved Citation Matching:
Now properly handles three types of citations:
Standard footnotes: [^1]
Standard citations: [1] (excluding markdown links)
Perplexity-style footnotes: 1. [https://example.com]
Added proper line-by-line processing to handle Perplexity-style footnotes correctly
Improved position tracking to handle multi-line content
Better Error Handling:
Added null checks for regex matches
More precise error messages
Better handling of edge cases
Fixed TypeScript Errors:
Ensured all required properties are properly typed
Removed any unsafe type assertions
Made the code more type-safe with proper interfaces
Improved Code Organization:
Better function documentation
More consistent variable naming
Cleaner control flow
On branch development
Changes to be committed:
modified: src/services/citationService.ts
On branch development
Changes to be committed:
modified: README.md
modified: esbuild.config.mjs
modified: main.ts
modified: manifest.json
new file: src/modals/CitationModal.ts
new file: src/services/citationService.ts
new file: src/styles/citations.css
new file: src/types/obsidian.d.ts
new file: src/utils/logger.ts
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
modified: .gitignore
modified: .windsurfrules
modified: README.md
modified: package.json
On branch development
Changes to be committed:
modified: .eslintrc
modified: esbuild.config.mjs
modified: main.ts
modified: package.json
modified: pnpm-lock.yaml
modified: tsconfig.json
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
modified: .npmrc
deleted: lcontent-farm.code-workspace
modified: main.ts
deleted: package-lock.json
modified: package.json
new file: pnpm-lock.yaml
modified: versions.json