aboutsummaryrefslogtreecommitdiff
path: root/select.js
blob: f8ec511369957050978558b9b7204a6a9decd803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const fzf = require("./fzf")
const info = require("./info")

;(async _ => {
	const tags = await info.tags()

	do {
		try {
			tag = await fzf.fzf(Object.keys(tags).sort())
		} catch {
			return
		}
	} while (!await fzf.doujin(Object.values(tags[tag]).sort()))
})()