How tbadru/lenscope works
Lenscope is a VS Code fuzzy finder. Users launch a search command, enter a query in a webview, and select a result to open it in the editor. The sampled extension code shows ripgrep discovery and process-backed file/grep search, plus current-buffer line collection; webview assets handle the search interface. The README also documents current-buffer fuzzy search. The git files capability is marked unfinished. Some implementation details are unsampled, so the graph omits unsupported interactions.
Main entry points: extension.ts Command Handlers · webview.ts Webview Templates · webview.js Search UI
Components 12
VS Code Extension
- Command Handlers
src/extension.ts
Search Features
- Find Files
src/extension.ts - Live Grep
src/extension.ts - Buffer Fuzzy Search
src/extension.ts - ripgrep Discovery
src/extension.ts - Grep Preview
src/extension.ts - Git Files (planned)
Search Interface
- Webview Templates
src/webview.ts - Search UI
media/webview.js
Other components
- VS Code User
- ripgrep
- VS Code Editor
Connections 13
- VS Code User → Command Handlers: runs command
- Command Handlers → ripgrep Discovery: resolves binary
src/extension.ts - ripgrep Discovery → ripgrep: locates
src/extension.ts - Command Handlers → Find Files: handles command
src/extension.ts - Command Handlers → Live Grep: handles command
src/extension.ts - Command Handlers → Buffer Fuzzy Search: handles command
src/extension.ts - Find Files → ripgrep: lists files
src/extension.ts - Live Grep → ripgrep: searches workspace
src/extension.ts - Command Handlers → Webview Templates: gets content
src/extension.ts - Webview Templates → Search UI: loads script
src/webview.ts - Search UI → Command Handlers: posts messages
- Command Handlers → Grep Preview: reads preview
src/extension.ts - Command Handlers → VS Code Editor: opens result
src/extension.ts