fzfsample: add midi file support

This commit is contained in:
2024-07-27 15:57:11 +03:00
parent d41238d59d
commit 90e743aceb

View File

@ -16,7 +16,7 @@ parser.add_argument("-e", "--pattern", action="append", help="search for string"
parser.add_argument("-r", "--random", action="store_true", help="random order for args") parser.add_argument("-r", "--random", action="store_true", help="random order for args")
args = parser.parse_args() args = parser.parse_args()
files = subprocess.getoutput(r"fd \(wav\|mp3\)$ .", errors="replace").splitlines() files = subprocess.getoutput(r"fd \(wav\|mp3\|mid\)$ .", errors="replace").splitlines()
if args.random: if args.random:
random.shuffle(files) random.shuffle(files)