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

Highlight selected file in file browser #156

Merged
merged 1 commit into from
Apr 4, 2023
Merged

Conversation

Borewit
Copy link
Owner

@Borewit Borewit commented Apr 3, 2023

When opening a track or playlists, also select the selected file in Explorer.

As Desktop.Action.BROWSE_FILE_DIR action, which seems the closest operation to achieve that, is both not supported in Windows and Java at this moment, I wrote a fallback like:

 Runtime.getRuntime().exec(String.format("explorer.exe /select,\"%s\"", path));

Also removes a very hacky way to open playlists (by first generating a .bat file)

Resolves #116

@Borewit Borewit self-assigned this Apr 3, 2023
@Borewit
Copy link
Owner Author

Borewit commented Apr 3, 2023

Build listFix_2.7.0-PR156-1.exe

@Borewit
Copy link
Owner Author

Borewit commented Apr 4, 2023

Does this PR (Build) solve #116 @touwys?

@touwys
Copy link

touwys commented Apr 4, 2023

Build listFix_2.7.0-PR156-1.exe

Does this PR (Build) solve #116 @touwys?

Yes, it did so very nicely, thank you.

@Borewit Borewit merged commit 4cd4e97 into main Apr 4, 2023
@Borewit Borewit deleted the open-file-location branch April 4, 2023 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select and highlight the matched file at its location
2 participants