Skip to content

Add 'New directory' option to file explorer context menu #12061

@oz-for-x

Description

@oz-for-x

🤖 Filed automatically by @ozdotdev on behalf of @petradonka.
Source: https://x.com/petradonka/status/2061742942285447595

Summary

The project explorer's right-click context menu on folders currently only shows 'New file', missing a 'New directory' option for creating folders directly from the UI.

Problem

Users cannot create new directories (folders) directly via the file explorer context menu. They must either create a file and reorganize, or use external tools. This is a common feature in IDEs and is especially expected on Windows (coming from Sublime Text experience).

Expected behavior

When right-clicking a directory in the file tree of the project explorer pane, a 'New directory' option should appear alongside the 'New file' option, allowing users to create new folders directly.

Actual behavior

Right-clicking a directory in the file tree only shows a 'New file' option; there is no 'New directory' option available.

Reproduction hints

  • Open Warp project explorer
  • Right-click on any folder in the file tree
  • Observe that only 'New file' option is available
  • Note the absence of 'New directory' or similar option

Source thread

@​orenmizr: @​warpdotdev be honest - why put add new file to your amazing file browser menu and no add folder ? (coming from terax) on windows. warp open source can win the battle of the ide... falls on polish and upsells
@​petradonka: @​orenmizr @​warpdotdev Do you mean this dropdown when right-clicking a folder in the project explorer sidebar? 👀 https:​//t.co/SNEHBsOjWh
@​petradonka: @​orenmizr @​warpdotdev @​ozdotdev can you fix this and add a "New directory" option next to the "New file" option when right clicking a directory in the file tree of the project explorer pane?
@​ozdotdev: @​petradonka @​orenmizr @​warpdotdev Draft PR up: https:​//t.co/C2EZ652YgO.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions