Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open files/folder in the file explorer #1089

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Doublonmousse
Copy link
Contributor

To fix #1053.

This is a PR that's very similar to #868, using a slightly different crate (opener) that has a reveal call and a MIT OR Apache-2.0 license.

The implementation detail for this is here https://docs.rs/opener/latest/opener/fn.reveal.html
The open crate doesn't have this option afaik but having two crates doing very similar things is slightly redundant

Tested only on linux aarch64 for now (but should be supported on all platforms)

this adds an option that will open a file explorer highlighting the file/folder selected.

Still needs to be a little more careful on error handling
@Doublonmousse
Copy link
Contributor Author

Tested on mac os (apple silicon) and windows as well. I haven't tested remote folders though.

@Doublonmousse Doublonmousse marked this pull request as ready for review May 5, 2024 10:35
@flxzt
Copy link
Owner

flxzt commented May 9, 2024

We should probably only use one of open or opener, reads like opener is a bit more capable without adding many dependencies, so we could switch to it entirely.

You implemented it a bit differently than expected - the alternative would be that the feature is an additional action in the folder menu at the top that opens the current workspace folder, not an action on every list item. But I guess we could have even both?

The advantage of your implementation is that when opening a file/folder, it it already selected.

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.

Option to open Workspace in file manager
2 participants