Skip to content

Feature: Add Show in File Explorer context menu option to project list#310

Open
dibyanshu-pal-kushwaha wants to merge 2 commits intoStatTag:masterfrom
dibyanshu-pal-kushwaha:feature/show-in-file-explorer
Open

Feature: Add Show in File Explorer context menu option to project list#310
dibyanshu-pal-kushwaha wants to merge 2 commits intoStatTag:masterfrom
dibyanshu-pal-kushwaha:feature/show-in-file-explorer

Conversation

@dibyanshu-pal-kushwaha
Copy link

@dibyanshu-pal-kushwaha dibyanshu-pal-kushwaha commented Feb 4, 2026

Description
This PR addresses issue #291 by adding a context menu option to open the project folder directly in the native OS file explorer. This improves navigation usability by allowing users to quickly locate their project files on disk without manually searching through directories.

Fixes : #291

Changes
1)Renderer: Added a "Show in File Explorer" item to the ProjectListEntryMenu component.
2)Main Process: Implemented the IPC handler in ProjectPage.js to trigger the existing shell.showItemInFolder functionality via the Messages.SHOW_ITEM_IN_FOLDER channel.

Screenshots:
This is Show in Folder option in Menu Options:

cqq

Finally directing the exisitng project in the System :
s2

For Offline Management:

c

Verification
Added a new project/folder in StatWrap.
Clicked the menu on the project card.
Selected "Show in Folder".
Finally shown the folder.

Copy link
Contributor

@lrasmus lrasmus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dibyanshu-pal-kushwaha - this is a great start, really. There are two changes I would like to request. One is to change the name of the new menu item. The other is to handle a situation where a project folder is unavailable (this wasn't described in the requirements, sorry).

props.onMenuClick(Messages.SHOW_ITEM_IN_FOLDER, props.project.path)
}
>
Show in File Explorer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since "File Explorer" is associated with Windows, we should use a more generic term here. We could use "Show in Folder" (we use that here: https://github.com/StatTag/StatWrap/blob/master/app/components/Search/Search.js#L1154) or "Show Folder"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lrasmus ,Yes sir , I fixed this in the latest commit.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cqq


<Divider />

<MenuItem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not happen as often, but it is possible for a project to be in the project list and to be unavailable. This can happen if you add a project from a shared network folder, or if you have a local folder that gets deleted. StatWrap detects that and will show an icon showing the project is "offline":

Image

If the project is offline, we should disable this menu item (or remove it) since nothing happens when you click it otherwise.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you for this info. I fixed this in the latest commit.

c

@dibyanshu-pal-kushwaha
Copy link
Author

@lrasmus ,Please review this PR help me to improve it sir if required.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Usability: Navigate to project folder in OS from project list

2 participants