CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

Auto focus text field when creating new files and folders

Open FastestMolasses opened this issue 5 months ago • 3 comments

Description

When we create a new file or folder, CodeEdit will now automatically focus the renaming field so the user can directly set the file name in one step.

Files and folders are no longer created immediately, instead a "phantom" file will be represented in the project navigator, and will only actually create the file when the user sets a valid file name.

Lastly, we do not automatically set the file extension for the user.

Related Issues

Checklist

  • [x] I read and understood the contributing guide as well as the code of conduct
  • [x] The issues this PR addresses are related to each other
  • [x] My changes generate no new warnings
  • [x] My code builds and runs on my machine
  • [x] My changes are all related to the related issue above
  • [x] I documented my code

Screenshots

https://github.com/user-attachments/assets/299d2664-dbb4-40d0-b50f-8af85c4cb35e

FastestMolasses avatar Jul 25 '25 08:07 FastestMolasses

This looks great, just needs the lint fix and we can merge!

thecoolwinter avatar Jul 27 '25 15:07 thecoolwinter

@thecoolwinter Looks like just an unrelated issue with the CEActiveTaskTests test

FastestMolasses avatar Jul 31 '25 02:07 FastestMolasses

I agree, I can't seem to track down why those tests are failing but they appear to be fixed on main. We can merge without those passing tests.

thecoolwinter avatar Aug 08 '25 14:08 thecoolwinter