Skip to content

Provide a command to delete the currently opened file #4366

Closed

Description

  • VSCode Version: 0.10.11
  • OS Version: Mac OS X El Capitan

Steps to Reproduce:

  1. Open Command Palette
  2. Search for a "delete" command
  3. Note that command does not exist

I would have naturally expected this sort of command to be available from the Command Palette. :) Could we get this added, to enhance the already awesome keyboard experience? 😄

Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell

screen shot 2016-03-17 at 8 24 02 am

Activity

  1. added
    feature-request
    file-explorer
    on Mar 17, 2016
  2. bpasero commented on Mar 17, 2016

    @bpasero
    Contributor

    Sounds like a good example for an extension.

  3. bgse commented on Mar 17, 2016

    @bgse
    Contributor

    Benjamin Pasero (@bpasero) Maybe label as help-wanted / effort-easy so we can find stuff like this better. Or even make a label 'extension-opportunity' or something.

  4. added
    help wanted
    on Mar 17, 2016
  5. changed the title [-]Feature Request: Add VSCode command to delete a file[/-] [+]Provide a command to delete the currently opened file[/+] on Mar 17, 2016
  6. pcgeek86 commented on Mar 17, 2016

    @pcgeek86
    Author

    Benjamin Pasero (@bpasero) Hmmmm, I disagree that this would be suitable for an extension. A function like this, to delete a file, should probably exist in the core editor. What kind of criteria are you typically using to determine suitability for an extension? Just curious, thanks!

  7. bpasero commented on Mar 17, 2016

    @bpasero
    Contributor

    If something can be done via extension, it should be done via extension. Once we add this functionality into the core product this extension is obsolete, but until then it is fine to have it. We currently have 595 feature requests and maybe 7 people working on the source code, so you can imagine that we are not jumping on every new feature someone asks for.

  8. pcgeek86 commented on Mar 18, 2016

    @pcgeek86
    Author

    Benjamin Pasero (@bpasero) That makes sense -- so you would eventually plan on incorporating such features into the core product, but as a stop-gap measure, you want to use extensions, due to resource constraints. I understand, thanks.

    I wish I could contribute code, but this isn't my area of expertise, so I'll have to contribute primarily through bug reports and feature requests. ✅

  9. martellaj commented on Mar 25, 2016

    @martellaj
    Member

    Would you guys expect a confirmation dialog of any kind for this command? Like, "Are you sure you want to delete this file?" or no?

  10. bgse commented on Mar 25, 2016

    @bgse
    Contributor

    Joe Martella (@martellaj) With destructive operations like delete, I'd say a confirmation dialog should be there.

  11. pcgeek86 commented on Mar 25, 2016

    @pcgeek86
    Author

    Hard to say ... on one hand, yeah I'd expect to have one, but on the other hand, modal dialogs are evil.

  12. Tyriar commented on Mar 25, 2016

    @Tyriar
    Contributor

    No confirmation but an undo popup might be a nicer UX, especially if it's difficult to trigger the delete by accident. Would probably have to move the file to a tmp directory in order to do this.

  13. added
    extensions
    on May 30, 2016
  14. removed
    help wanted
    on Jul 12, 2016
  15. added
    *extension-candidate
    on Sep 17, 2016
  16. bpasero commented on Feb 27, 2017

    @bpasero
    Contributor

    Continues in #21344

  17. added
    *duplicate
    on Feb 27, 2017
  18. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *duplicate*extension-candidateextensionsfeature-requestfile-explorer

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions