Compare commits
5 Commits
ca11ea010b
...
4919863dd8
Author | SHA1 | Date |
---|---|---|
Victor Timofei | 4919863dd8 | |
Maddison Hellstrom | 9623762b5f | |
Maddison Hellstrom | 8588206ab2 | |
Maddison Hellstrom | 79efe429d3 | |
Maddison Hellstrom | b6bc81314c |
12
actions.js
12
actions.js
|
@ -26,13 +26,19 @@ actions.getURLPath = ({ count = 0, domain = false } = {}) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
actions.copyURLPath = ({ count, domain } = {}) => () =>
|
actions.copyURLPath = ({ count, domain } = {}) => () =>
|
||||||
Clipboard.write(actions.getURLPath({ count, domain })) // TODO: use navigator.clipboard
|
Clipboard.write(actions.getURLPath({ count, domain }))
|
||||||
|
|
||||||
actions.copyOrgLink = () =>
|
actions.copyOrgLink = () =>
|
||||||
Clipboard.write(`[[${util.getCurrentLocation("href")}][${document.title}]]`) // TODO: use navigator.clipboard
|
Clipboard.write(`[[${util.getCurrentLocation("href")}][${document.title}]]`)
|
||||||
|
|
||||||
actions.copyMarkdownLink = () =>
|
actions.copyMarkdownLink = () =>
|
||||||
Clipboard.write(`[${document.title}](${util.getCurrentLocation("href")})`) // TODO: use navigator.clipboard
|
Clipboard.write(
|
||||||
|
// I mostly use this feature to paste links into my Neuron (github.com/srid/neuron) notes.
|
||||||
|
// Due to a bug in Neuron's markdown library (github.com/jgm/commonmark-hs/issues/52),
|
||||||
|
// the vertical bar character breaks lists and titles.
|
||||||
|
// As a workaround, we backslash-escape any vertical bar characters.
|
||||||
|
`[${document.title.replace("|", "\\|")}](${util.getCurrentLocation("href")})`,
|
||||||
|
)
|
||||||
|
|
||||||
actions.duplicateTab = () =>
|
actions.duplicateTab = () =>
|
||||||
actions.openLink(util.getCurrentLocation("href"), { newTab: true, active: false })()
|
actions.openLink(util.getCurrentLocation("href"), { newTab: true, active: false })()
|
||||||
|
|
|
@ -644,6 +644,14 @@ completions.cp.callback = (response) => parseCrunchbase(response, (person) => {
|
||||||
|
|
||||||
// ****** Search Engines ****** //
|
// ****** Search Engines ****** //
|
||||||
|
|
||||||
|
// Brave Search
|
||||||
|
completions.bs = {
|
||||||
|
alias: "bs",
|
||||||
|
name: "bravesearch",
|
||||||
|
search: "https://search.brave.com/search?q=",
|
||||||
|
compl: "https://search.brave.com/api/suggest?q=",
|
||||||
|
}
|
||||||
|
|
||||||
// DuckDuckGo
|
// DuckDuckGo
|
||||||
completions.dd = {
|
completions.dd = {
|
||||||
alias: "dd",
|
alias: "dd",
|
||||||
|
@ -1090,6 +1098,13 @@ completions.hn.callback = (response) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Twitter
|
||||||
|
completions.tw = {
|
||||||
|
alias: "tw",
|
||||||
|
name: "twitter",
|
||||||
|
search: "https://twitter.com/search?q=",
|
||||||
|
}
|
||||||
|
|
||||||
// Reddit
|
// Reddit
|
||||||
completions.re = {
|
completions.re = {
|
||||||
alias: "re",
|
alias: "re",
|
||||||
|
|
1
conf.js
1
conf.js
|
@ -7,6 +7,7 @@ util.addSettings({
|
||||||
hintAlign: "left",
|
hintAlign: "left",
|
||||||
omnibarSuggestionTimeout: 500,
|
omnibarSuggestionTimeout: 500,
|
||||||
richHintsForKeystroke: 1,
|
richHintsForKeystroke: 1,
|
||||||
|
defaultSearchEngine: "bs",
|
||||||
theme: `
|
theme: `
|
||||||
body {
|
body {
|
||||||
font-family: "DejaVu Sans", DejaVu, Arial, sans-serif;
|
font-family: "DejaVu Sans", DejaVu, Arial, sans-serif;
|
||||||
|
|
Loading…
Reference in New Issue