mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Merge pull request #1944 from tridactyl/rapid_yanking
Fix #1374: hint -qy now merges its arguments
This commit is contained in:
commit
838dc22b13
1 changed files with 6 additions and 0 deletions
|
@ -3759,6 +3759,12 @@ export async function hint(option?: string, selectors?: string, ...rest: string[
|
|||
option = option.slice(0, pipeIndex) + option.slice(pipeIndex + 1)
|
||||
}
|
||||
|
||||
// Hacky fix for #1374 - join rapid-hinted yanks
|
||||
if (option === "-qy") {
|
||||
run_exstr('composite hint -qpipe a href | js -p JS_ARG.join(" ") | yank')
|
||||
return
|
||||
}
|
||||
|
||||
const options = new Set(option.length ? option.slice(1).split("") : [])
|
||||
const rapid = options.delete("q")
|
||||
const jshints = !options.delete("J")
|
||||
|
|
Loading…
Add table
Reference in a new issue