Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Hitting enter quickly can sometimes cause file rename to cut off new nameย #10531

Closed

Description

@njx

Running into this on Mac 10.10.2.

  1. In the file tree, right-click and choose New File
  2. Type a new name like "foobar.js" and very quickly hit return after typing the "js"

Result: sometimes the new file will be named "foobar.j".

Activity

  1. njx commented on Feb 5, 2015

    @njx
    Author

    I'm hitting this pretty often.

  2. codymaines commented on Feb 6, 2015

    @codymaines

    I'm unable to reproduce this on Windows - what version & operating system are you using?

  3. njx commented on Feb 6, 2015

    @njx
    Author

    Mac 10.10.2. I just tried it in master again and it seems to be much harder to hit than in 1.1, so maybe something's improved, but I can get it if I type fast enough - I can see the last character show up in the input field but get truncated in the final filename. But it's hard enough to hit now that it's probably low priority - I'll try it again when 10.2 releases and see if it's still hard to hit.

  4. njx commented on Feb 6, 2015

    @njx
    Author

    I do still seem to be hitting this in master with some frequency, so probably still worth looking into at some point.

  5. peterflynn commented on Feb 6, 2015

    @peterflynn
    Member

    @njx Sounds like a dupe of #10048, which we also had trouble reproducing...

  6. njx commented on Feb 6, 2015

    @njx
    Author

    That does sound like it, but I seem to be hitting it even without everything being slow (although it did seem more common, and also a tad slower, when I was using 1.1, which might have been because I had it open for longer or was working in a larger project).

  7. peterflynn commented on Feb 18, 2015

    @peterflynn
    Member

    @njx The filer of #10618 reports that this happens when you haven't released the last letter key before pressing Enter -- i.e. the Enter keydown precedes the last letter key's keyup. Do you think that could be what's happening in your case too?

  8. njx commented on Feb 18, 2015

    @njx
    Author

    That certainly seems plausible (and I can reproduce that reported behavior). Thanks to @ElegantScripting for figuring it out.

  9. prksingh commented on May 27, 2015

    @prksingh
    Contributor

    Should be fixed with #10648

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions