Skip to content

Recipes

neo451 edited this page Nov 27, 2024 · 2 revisions

This part is WIP

local feed = require("feed")

local function play_podcast()
	local link = feed.get_entry().link
	if link:find("mp3") then
		vim.system({ "vlc.exe", link })
	else
		vim.notify("not a podcast episode")
	end
end

local function show_in_w3m()
	local link = feed.get_entry().link
	local ok, _ = pcall(vim.cmd.W3m, link)
	if not ok then
		vim.notify("[feed.nvim]: need w3m.vim installed")
	end
end
Clone this wiki locally