Skip to content

Conversation

@William-Laverty
Copy link

Summary

Fixes #2029

When creating a new file or folder via the context menu, the name is now automatically selected for editing. This matches the expected macOS UX behavior where new items can be immediately renamed.

Changes

  • Added renameFile() call after creating new file in newFile()
  • Added renameFile() call after creating new folder in newFolder()

Notes

The newFileFromClipboard() method already had this behavior - this makes the other creation methods consistent.

Testing

  1. Right-click in the project navigator
  2. Select 'New File...' or 'New Folder'
  3. Verify the name field is automatically selected for editing

Fixes CodeEditApp#2029

When creating a new file or folder via the context menu, the name is now
automatically selected for editing. This matches the expected macOS UX
behavior where new items can be immediately renamed.

Changes:
- Added renameFile() call after creating new file in newFile()
- Added renameFile() call after creating new folder in newFolder()

Note: The newFileFromClipboard() already had this behavior, this makes
the other creation methods consistent.
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.

🐞 Name Not Selected for Editing When Creating New Files or Folders in Project Navigator

1 participant