Skip to content

feat: quick open file by path (Cmd+Shift+G)#11

Merged
gdilla merged 3 commits into
mainfrom
feat/quick-open-by-path
Mar 26, 2026
Merged

feat: quick open file by path (Cmd+Shift+G)#11
gdilla merged 3 commits into
mainfrom
feat/quick-open-by-path

Conversation

@gdilla
Copy link
Copy Markdown
Owner

@gdilla gdilla commented Mar 26, 2026

Summary

  • Adds a Quick Open dialog triggered by Cmd+Shift+G (or File > Open by Path...)
  • Type any file path to open it directly — supports ~ for home directory and relative paths
  • Real-time validation with inline error messages
  • New resolve_file_path Rust command handles path expansion and validation

Test plan

  • Cmd+Shift+G opens the Quick Open dialog
  • Typing a valid file path and pressing Enter opens it in a new tab
  • ~ expands to home directory (e.g., ~/Documents/notes.md)
  • Relative paths resolve against open folder (or home if no folder open)
  • Non-existent paths show "File does not exist" error
  • Directory paths show "Path is a directory, not a file" error
  • Escape closes the dialog
  • Clicking backdrop closes the dialog
  • File > Open by Path... menu item works
  • All quality gates pass: pnpm check && pnpm test

🤖 Generated with Claude Code

gdilla and others added 3 commits March 26, 2026 12:32
- Add `resolve_file_path` Tauri command that resolves absolute, relative,
  and tilde (~) paths, returning canonical path, exists, and is_file status
- Add "Open by Path..." menu item (Cmd+Shift+G) to File menu, emitting
  `menu-open-by-path` event to frontend
- Upgrade dirs crate from v5 to v6
- Fix pre-existing test compilation errors (missing max_depth arg)
- Apply cargo fmt to ai_files.rs and lib.rs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Teleport-based modal dialog for opening files by path (Cmd+Shift+G).
Resolves paths via resolve_file_path Tauri command, validates existence,
and opens in a new tab. Wired into App.vue with keyboard shortcut and
menu event listener.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@gdilla gdilla merged commit b3af080 into main Mar 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant