[source/keys:feat] subscribe to rss w/feedrabbit

This commit is contained in:
Maddison Hellstrom 2020-04-25 20:38:19 -07:00
parent a3e5e6ce2f
commit 797b243580
2 changed files with 12 additions and 0 deletions

View File

@ -69,6 +69,12 @@ const outlineUrl = "https://outline.com/"
actions.showOutline = ({ href = util.getCurrentLocation("href") } = {}) =>
() => actions.openLink(`${outlineUrl}${href}`, { newTab: true })()
// Site/Page Actions
const rssSubscribeUrl = "https://feedrabbit.com/subscriptions/new?url="
actions.rssSubscribe = ({ href = util.getCurrentLocation("href") } = {}) =>
() => actions.openLink(`${rssSubscribeUrl}${encodeURIComponent(href)}`, { newTab: true })()
// Surfingkeys-specific actions
// ----------------------------
actions.createHint = (selector, action) => () => {

View File

@ -141,6 +141,12 @@ const maps = {
description: "Show outline.com version of page",
callback: actions.showOutline(),
},
{
alias: "=r",
category: categories.misc,
description: "Subscribe to RSS feed for page",
callback: actions.rssSubscribe(),
},
{
alias: ";pd",
category: categories.misc,