Context menu refresh#205
Merged
matt-pharr merged 6 commits intodevelopfrom Apr 21, 2026
Merged
Conversation
- Fix rename handler to relocate backing files (was silently leaving stale _relative_path) - Extract shared FILE_BACKED_TYPES/defaultExtension to tree-file-utils.ts - Handle namelist extension gracefully (leave filename blank when extension unknown) - Clean up stale blank lines in ContextMenu.tsx - Replace assert with TypeError in _relocate_single_file for -O safety - Add hint text to move/duplicate dialogs about parent containers - Clean up editors TODO comment in pdv.d.ts (tracked as #206) - Add Python tests for tree handler operations and file relocation - Extract treeCommHandler helper to reduce IPC handler boilerplate - Extract useTreeAction hook to reduce dialog callback boilerplate Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds four new tree operations to the context menu — create node, rename, move, and duplicate — wired end-to-end through Python handlers, comm protocol, main IPC, preload bridge, and renderer dialogs. Also refreshes the context menu UX with visual separators, "open in external editor" for notes, and removes the legacy
config.jsonmigration path.New tree operations
PDVTree()dict container at any pathContext menu improvements
Cleanup
config.json→preferences.jsonmigration (no longer needed)customKernelsfrom Config typetreeCommHandlerhelper to reduce IPC boilerplateuseTreeActionhook to reduce dialog callback boilerplateFILE_BACKED_TYPES/defaultExtensiontotree-file-utils.tsTest plan
test_tree_handlers.py)🤖 Generated with Claude Code