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 Folder" action should highlight song #574

Open
demeralde opened this issue Oct 1, 2021 · 5 comments
Open

"Open Folder" action should highlight song #574

demeralde opened this issue Oct 1, 2021 · 5 comments
Labels
enhancement Accepted functionality to be added

Comments

@demeralde
Copy link

If I click on a song and open its folder, as a user I expect it to the highlight the song. Otherwise I have to manually search for it once the folder opens.

I also think it should be renamed to "Open In Folder".

@Solarunit
Copy link

Song highlighting would be nice I think. "Open Folder" is good too.

@Taiko2k
Copy link
Owner

Taiko2k commented Oct 3, 2021

While I think its a good idea, unfortunately this more or less isn't supported by existing Linux desktop tools.

@Taiko2k Taiko2k added the blocked An issue from another project is preventing this from moving label Oct 6, 2021
@da2x
Copy link
Contributor

da2x commented Apr 8, 2022

While I think its a good idea, unfortunately this more or less isn't supported by existing Linux desktop tools.

Sure it is. Tons of other programs does this. You can open Nautilus and Dolphin with --select file-path. Windows Explorer uses /select.

xdg-open can’t handle this, though. Pseudo code:

if 'nautilus' in `xdg-mime query default inode/directory`.lower():
  `nautilus --select $file`
else if 'dolphin' in `xdg-mime query default inode/directory`.lower():
  `dolphin --select $file`
else
  `xdg-open $directory`
end

No idea how this would work in a Flatpak sandbox.

All of this being said, there’s probably a desktop portal or DBus call to do this.

@Taiko2k
Copy link
Owner

Taiko2k commented Apr 8, 2022

@da2x looks like you're right, ill revisit this when I have time

@C0rn3j C0rn3j added enhancement Accepted functionality to be added and removed blocked An issue from another project is preventing this from moving labels Jan 26, 2025
@C0rn3j
Copy link
Collaborator

C0rn3j commented Jan 26, 2025

Can Windows and macOS do this kind of highlighting too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Accepted functionality to be added
Projects
None yet
Development

No branches or pull requests

5 participants