[source/keys:feat] subscribe to rss w/feedrabbit
This commit is contained in:
parent
a3e5e6ce2f
commit
797b243580
|
@ -69,6 +69,12 @@ const outlineUrl = "https://outline.com/"
|
||||||
actions.showOutline = ({ href = util.getCurrentLocation("href") } = {}) =>
|
actions.showOutline = ({ href = util.getCurrentLocation("href") } = {}) =>
|
||||||
() => actions.openLink(`${outlineUrl}${href}`, { newTab: true })()
|
() => 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
|
// Surfingkeys-specific actions
|
||||||
// ----------------------------
|
// ----------------------------
|
||||||
actions.createHint = (selector, action) => () => {
|
actions.createHint = (selector, action) => () => {
|
||||||
|
|
6
keys.js
6
keys.js
|
@ -141,6 +141,12 @@ const maps = {
|
||||||
description: "Show outline.com version of page",
|
description: "Show outline.com version of page",
|
||||||
callback: actions.showOutline(),
|
callback: actions.showOutline(),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
alias: "=r",
|
||||||
|
category: categories.misc,
|
||||||
|
description: "Subscribe to RSS feed for page",
|
||||||
|
callback: actions.rssSubscribe(),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
alias: ";pd",
|
alias: ";pd",
|
||||||
category: categories.misc,
|
category: categories.misc,
|
||||||
|
|
Loading…
Reference in New Issue