Closed Xundan91 closed 3 months ago
That's amazing! appreciate the file type checker.
However, when the user clicks on rename, the popup closes and the sidebar gets collapsed too! since the rename input is now inline with the filename in the sidebar, it is not really a good UX.
A better thing to do would be to have the new filename input in the file options popup itself.
oh also, maybe create an issue before actually sending a pr for updates like these :)
For this instance this PR will only include the file type checker . Removing other feature i.e inline rename. Next Time I will create issue before submitting PR.👍👍
I have made changes from my side which include rename file type checker . You can review and let me know if any issue Or changes you want .
Issue Fix:
Extension Validation During File Rename
When creating a file, there is an existing check to ensure that only files with the extensions (lua, luanb, md) can be created. However, this validation is missing during the file renaming process. The renaming functionality should also enforce the same extension restrictions to maintain consistency.
Steps to Implement Extension Validation in Rename Functionality:--
Implement Extension Check: Add validation logic to check for supported extensions (lua, luanb, md) during the file renaming process.
Notify User: Provide user feedback if the new file name does not meet the extension requirements.