Skip to content

IDE: Explorer basics (rename/delete in the menu, copy/paste/duplicate, collapse all, reveal in OS, open in terminal) #285

Done

Description

@aMonteSl

As a developer using the Code-XR IDE, I want the explorer's context menu and toolbar to offer VS Code's everyday file operations, so that I can organise files without a terminal.

Scope

  • Context menu
    • Rename (F2) and Delete (moves to the trash), which today work only from the keyboard.
    • Cut, Copy and Paste, inside the folder. A paste over an existing name gets " copy" / " copy 2".
    • Duplicate.
    • Reveal in File Explorer / Finder / file manager (shell.showItemInFolder).
    • Open in Integrated Terminal: a new terminal whose cwd is that folder.
  • Toolbar: Collapse All Folders, and Refresh.
  • Main process
    • Copy and move stay inside the folder, checked by real path like every other write.
    • Recursive copy of a folder is size- and count-capped.
  • Open editors follow a moved file, as they already do for a rename.

Acceptance criteria

  • Each menu entry works on a file and on a folder, and is unit-tested at the workspace layer (copy, move, name collisions, refusing to leave the folder or to paste a folder into itself).
  • Cut and paste moves the file, and its open tab follows.
  • Reveal and Open in Terminal work on Linux, Windows and macOS.

Done in PR #292 (merged into ide), test/workspaceCopyMove.test.ts green on all three OS in CI; the menu, cut/paste with the tab following and Open in Terminal checked in the real window on Linux.

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

    area: idestream: ide-powertfmuser-story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions