Is there a simple file browser for searching a directory and opening a file?

I download my music videos and shuffle them in mpv. Sometimes i want a certain song so i want like a hotkey to open ~/Music\ Videos/ and search for a file. I used rofi file browser extended from the aur but i cant get it to compile on debian

28 points · 13 comments · view on lemmy.world

13 Comments

thejevans@lemmy.ml · 12 pts · 2y (2 replies)
[ removed ]
mariah@feddit.rocks · 0 pts · 2y (1 reply)

I tried that but it searches the entire filesystem

Wiener234@feddit.de · 8 pts · 2y

You should be able to change directory to the one you want. https://github.com/junegunn/fzf/wiki/examples#changing-directory

kanzalibrary@lemmy.ml · 6 pts · 2y

Fsearch, Recommended by Linux Format Magazine in their November 2023 series.

BuddyTheBeefalo@lemmy.ml · 3 pts · 2y
#!/bin/bash

video_directory="~/Music Videos/ "

while true; do
  read -p "Enter music video: " prompt

  find "$video_directory" -type f -name "*$prompt*" -exec umpv  {} \;
done

umpv:

https://github.com/mpv-player/mpv/blob/master/TOOLS/umpv

auf@lemmy.ml · 1 pts · 2y (4 replies)
[ removed ]
mariah@feddit.rocks · 1 pts · 2y
[ removed ]
mariah@feddit.rocks · 0 pts · 2y (2 replies)

This is the error Screenshot_20231102-093004

auf@lemmy.ml · 4 pts · 2y (1 reply)
[ removed ]
mariah@feddit.rocks · 1 pts · 2y

Oh. Rofis 1.7.3

far_university1990@feddit.de · 1 pts · 2y (6 replies)

There are file browsers for mpv, probably what you want. https://github-wiki-see.page/m/mpv-player/mpv/wiki/User-Scripts

mariah@feddit.rocks · 1 pts · 2y (5 replies)

They remove the shuffle playlist

far_university1990@feddit.de · 3 pts · 2y (4 replies)

Shuffle playlist as a shortcut or cli-argument? Shortcuts can be customized in inputs config.

Also there are three in the list (only searching for „browse“): blackbox, file-browser, simple-loader

file-browser (or mpv-file-browser) can be customized for shortcuts. blackbox and simple-loader i could not find if they can be.

mariah@feddit.rocks · 1 pts · 2y (3 replies)

I use --shuffle

far_university1990@feddit.de · 1 pts · 2y (2 replies)

Do you launch with shuffle, some songs shuffle, add new song via browser and it plays the new next and not later? Or does it break the playlist? If the latter, maybe create an issue with the browser, sounds like a bug.

mariah@feddit.rocks · 1 pts · 2y (1 reply)

When i choose a file, it clears the playlist

far_university1990@feddit.de · 1 pts · 2y

Yep that sounds like a bug. You can report it on github, all three scripts have repos.