Commit graph

3 commits

Author SHA1 Message Date
callumalpass
9d0665e82f Clean up CSS lint issues 2026-05-14 21:06:30 +10:00
callumalpass
f03ddbce58 refactor: consolidate file selector modals into FileSelectorModal
Create a new unified FileSelectorModal that replaces AttachmentSelectModal
and ICSNoteLinkModal. The new modal provides:
- Fuzzy search for existing files
- Shift+Enter to create new files with typed name
- Configurable filter (markdown only, all files, or custom)
- Simple footer showing create option with filename preview

Updated usages:
- TimeblockCreationModal: attachments (filter: all)
- TimeblockInfoModal: attachments (filter: all)
- ICSEventContextMenu: note linking (filter: markdown)
- ICSEventInfoModal: note linking (filter: markdown)

Also improved task selector create preview spacing.

Removed:
- src/modals/AttachmentSelectModal.ts
- src/modals/ICSNoteLinkModal.ts
2025-11-30 11:32:47 +11:00
callumalpass
5b788c0514 feat: add task selector with NLP create modal
Add a new "Create or open task" command that opens a fuzzy selector modal
allowing users to either select an existing task or create a new task via
natural language parsing.

Features:
- Fuzzy search through existing tasks
- Real-time NLP preview in footer as user types
- Shift+Enter to create new task from parsed input
- Enter/click to select and open existing task
- Uses TaskCard component for consistent task rendering in suggestions

Implementation details:
- New TaskSelectorWithCreateModal extending SuggestModal
- Deferred cancelled result handling to work around Obsidian's
  onClose-before-onChooseSuggestion behavior
- CSS overrides for TaskCard within modal context
2025-11-30 11:32:47 +11:00