Skip to content

Add "rename" command to document tab context menu - #8530

Merged
gtritchie merged 4 commits into
v1.4-juliet-rosefrom
feature/rename-file-context-menu
Dec 3, 2020
Merged

gtritchie merged 4 commits into
v1.4-juliet-rosefrom
feature/rename-file-context-menu

Conversation

@gtritchie

Copy link
Copy Markdown
Member

Intent

Ability to rename a file by right-clicking on its tab is a common feature in IDEs.

Fixes #8374

Approach

Added rename behavior to document tab context menu.

Can't directly use the rename command itself because it assumes the target is the currently selected editor which isn't necessarily the case when you right-click on a tab.

QA Notes

Verify that "Rename" only appears when you right-click on tabs of actual saved documents, not on "Untitled" docs or non-document tabs. Behavior should be identical (for better or worse) with the existing File / Rename command on main menu.

- Fixes #8374
- Note that using this in a satellite window reveals existing problems (e.g. renaming a file in satellite window doesn't update the tab's displayed filename)
@adamconroy

Copy link
Copy Markdown
Contributor

This is great!

@gtritchie
gtritchie merged commit 63f2ff5 into v1.4-juliet-rose Dec 3, 2020
@gtritchie
gtritchie deleted the feature/rename-file-context-menu branch January 21, 2022 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants