Skip to content

Better handling when renaming files #3014

Closed
@Keshav-0907

Description

@Keshav-0907

p5.js version

v2.11.0

What is your operating system?

Mac OS

Web browser and version

Brave v1.61.109

Actual Behavior

When renaming a file from the side-bar, the blinking text cursor is placed at the end. But in general cases only the file name is to be changed not the extension ( .js , .html, .png, etc).

Currently we have to explicitly, move the cursor back from the end.

Screen.Recording.2024-02-12.at.1.34.27.AM.mov

Expected Behavior

To solve this issue, when renaming we can auto-place the blinking text cursor at the end of the filename, excluding the extension

In addition, we can also have a confirmation when the user tries to change the extension for a file

Steps to reproduce

Steps:

  1. Visit https://editor.p5js.org/
  2. Try Renaming a file form the sidebar

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area:AccessibilityCategory for accessibility related features and bugsEnhancementImprovement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions