diff --git a/src/config.ts b/src/config.ts index 12004043..02a3467c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -155,6 +155,7 @@ const DEFAULTS = o({ bdelete: "tabclose", sanitize: "sanitise", tutorial: "tutor", + openwith: "hint -W", }), followpagepatterns: o({ next: "^(next|newer)\\b|ยป|>>|more", diff --git a/src/excmds.ts b/src/excmds.ts index 76af8e3f..788158d2 100644 --- a/src/excmds.ts +++ b/src/excmds.ts @@ -171,6 +171,11 @@ export async function editor() { // to everything written using editor } +//#background +export async function exclaim(...str: string[]) { + fillcmdline((await Native.run(str.join(" "))).content) +} + //#background export async function native() { const version = await Native.getNativeMessengerVersion() @@ -1864,6 +1869,7 @@ import * as hinting from "./hinting_background" - `bind ;c hint -c [class*="expand"],[class="togg"]` works particularly well on reddit and HN - -w open in new window -wp open in new private window + - `-W excmd...` append hint href to excmd and execute, e.g, `hint -W open` and other such bad ideas. Excepting the custom selector mode and background hint mode, each of these hint modes is available by default as `;