Repository navigation
Conversation
|
Rebased onto |
cmd-p lists the active project's files from projects.searchEntries with matched letters bolded; cmd-shift-f searches contents through projects.searchContents with match case, whole word and regex, results grouped by file with highlighted matches and the web's status line. Escape goes back to the command list. Enter opens the file (at the line) in the server's preferred editor via shell.openInEditor; Cmd+Enter, or Enter when no editor is available, queues a composer mention through a small AppState hook and copies @path.
…t menu The palette gains Add project, which browses the host's folders through filesystem.browse (Enter enters a folder or adds the typed path, Cmd+Enter adds a folder, Tab completes) and creates the project with projects.mutate, and New project, which names a folder for projects.createNew; both open a draft in the new project. The sidebar header gets Filter by project (pinned groups first, multi-select scope, All projects) and Add project. Right-clicking a project offers New thread, Copy path and Pin/Unpin project where the server supports project organization.
cmd-[ and cmd-] (navigation.back / navigation.forward) walk the threads opened in this window like the web router's history, skipping threads that are gone; the sidebar header has the desktop's Go back and Go forward buttons, disabled at either end.
|
Rebased again onto |
Problem
The native client had no go-to-file, no project content search, no way to add projects, no navigation history, no multi-select or drag in the sidebar, and no hover card or project icons (ledger PN-FILEPICK, PN-SEARCH, AP-PROJECTS, SB-HEADER, SB-SELECT, SB-DRAG, SB-HOVER).
Approach (landing in order; this PR grows)
1. Go-to-file (cmd-p) and content search (cmd-shift-f) — done
overlayModeForCommand: the same key again closes, another switches, Escape goes back to the command list (installCommandPaletteCommands).core/src/project_search.rs:projects.searchEntries(files, trimmed query, empty lists files, limit 200) andprojects.searchContents(query as typed, limit 500, match case / whole word / regex) payloads with 120ms debounce,getProjectFilePickerMatches(server order, folded query, subsequence highlights),groupMatches/splitPath, the "N+ results in M files" status, and the preferred editor inEDITORSorder with thepath:linetarget the launcher parses.shell.openInEditor,availableEditorsnow decoded in the server config). Cmd+Enter, or Enter when the server offers no editor, callsAppState::request_composer_mention— a bounded queue (composer_mentions) plusAppEvent::ComposerMentionfor W2's@mentions to drain — and copies@pathmeanwhile. The web opens a right-panel file preview instead; that needs a native file preview.Verification
cargo test --workspaceandcargo clippy --workspace --all-targets -- -D warningspass; core tests cover requests, matching and highlights, grouping and summary, editor preference and targets.cargo run -p t3-client --example project_searchagainst the isolated dev server:Gaps (so far)
Refs #10
Model: Claude Opus 5.5 (Claude Code, autonomous worker W3)