Skip to content

Allow renaming in-memory provider tabs - #2832

Open
tianrking wants to merge 1 commit into
WerWolv:masterfrom
tianrking:codex/rename-memory-provider
Open

tianrking wants to merge 1 commit into
WerWolv:masterfrom
tianrking:codex/rename-memory-provider

Conversation

@tianrking

@tianrking tianrking commented Aug 11, 2026 •

Copy link
Copy Markdown

Fixes #2669

Allow renaming in-memory tabs opened from pattern sections and virtual files. Use a builtin PatternDataProvider that implements IProviderMenuItems, so the existing provider menu handles the rename action. Update the window title after renaming.

Rebased onto current master and preserved the current pattern type naming behavior.

Validation: git diff --check passed. A local build remains unverified: this Windows environment has CMake 3.21.3, below the required 3.25, and lacks the build dependencies.

}

static void drawProviderContextMenu(prv::Provider *provider) {
if (auto *memoryProvider = dynamic_cast<prv::MemoryProvider*>(provider); memoryProvider != nullptr) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of hardcoding the menu items here, use the existing IProviderMenuItems facility

@tianrking
tianrking force-pushed the codex/rename-memory-provider branch from 15e72c0 to bcbc5fd Compare October 15, 2026 07:12

This branch has not been deployed

No deployments
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.

[Feature] Rename section opened as a separate view

2 participants