Is there a simple file browser for searching a directory and opening a file?
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
fzf is a great tool for this job. https://github.com/junegunn/fzf/wiki/examples
12 0 ReplyI tried that but it searches the entire filesystem
2 2 ReplyYou should be able to change directory to the one you want. https://github.com/junegunn/fzf/wiki/examples#changing-directory
8 0 Reply
Fsearch, Recommended by Linux Format Magazine in their November 2023 series.
6 0 Reply#!/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:
3 0 ReplyPermanently Deleted
1 0 ReplyThis is the error
1 0 ReplyThis is the error
1 1 ReplyPermanently Deleted
4 0 Reply
There are file browsers for mpv, probably what you want. https://github-wiki-see.page/m/mpv-player/mpv/wiki/User-Scripts
1 0 ReplyThey remove the shuffle playlist
1 0 ReplyShuffle 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.
3 0 Reply