Skip to content

Conversation

@William-Laverty
Copy link

Summary

When creating a new file or folder in the project navigator, the name field should automatically be selected for editing. This matches standard macOS UX expectations and Finder behavior.

Problem

After creating a new file or folder, users had to manually click to rename it. This was inconsistent with the expected behavior where the name field should immediately be editable.

Solution

The newFileFromClipboard() function already had the correct behavior by calling renameFile() at the end. Applied the same pattern to:

  • newFile()
  • newFolder()

Changes

  • Added renameFile() call after creating new files
  • Added renameFile() call after creating new folders

Testing

  1. Right-click in the project navigator
  2. Select "New File..." - name should be immediately editable
  3. Right-click in the project navigator
  4. Select "New Folder" - name should be immediately editable

Fixes #2029

…1729)

The status bar's Line/Col information wasn't appearing until the first
tab switch because tabBarTabIdSubject (a PassthroughSubject) only
emitted values when selectedTab CHANGED, not its initial value.

Fixed by:
1. Sending the current selectedTab value immediately in switchToActiveEditor()
2. Using dropFirst() on the publisher subscription to avoid duplicate emissions

This ensures subscribers like StatusBarCursorPositionLabel receive the
initial tab state when the workspace loads.

Fixes CodeEditApp#1729
…tApp#2029)

When creating a new file or folder in the project navigator, the name
field should automatically be selected for editing, matching standard
macOS UX expectations and Finder behavior.

The newFileFromClipboard() function already had this behavior by calling
renameFile() at the end. Applied the same pattern to newFile() and
newFolder().

Fixes CodeEditApp#2029
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