Tauon icon indicating copy to clipboard operation
Tauon copied to clipboard

"Open Folder" action should highlight song

Open dreamawakening opened this issue 4 years ago • 4 comments

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".

dreamawakening avatar Oct 01 '21 00:10 dreamawakening

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

Solarunit avatar Oct 02 '21 01:10 Solarunit

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

Taiko2k avatar Oct 03 '21 09:10 Taiko2k

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.

da2x avatar Apr 08 '22 20:04 da2x

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

Taiko2k avatar Apr 08 '22 23:04 Taiko2k