mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
First (broken) attempt at yy to yank URLs
This commit is contained in:
parent
4d109a7796
commit
c76d3a6c9a
3 changed files with 16 additions and 0 deletions
|
@ -358,6 +358,18 @@ export function fillcmdline(str?: string) {
|
|||
message("commandline_frame", "fillcmdline", [str])
|
||||
}
|
||||
|
||||
//#content
|
||||
export function clipboard(excmd = "open"){
|
||||
let scratchpad = document.createElement("input")
|
||||
scratchpad.contentEditable = "true"
|
||||
scratchpad.textContent = window.location.href
|
||||
scratchpad.select()
|
||||
document.execCommand("Copy")
|
||||
console.log(scratchpad)
|
||||
let pastecontent = scratchpad.textContent
|
||||
console.log(pastecontent)
|
||||
}
|
||||
|
||||
//#content
|
||||
export function resizecmdline() {
|
||||
CommandLineContent.resize()
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
"bookmarks",
|
||||
"contextMenus",
|
||||
"cookies",
|
||||
"clipboardWrite",
|
||||
"clipboardRead",
|
||||
"downloads",
|
||||
"downloads.open",
|
||||
"find",
|
||||
|
|
|
@ -38,6 +38,8 @@ export namespace normalmode {
|
|||
["]]", "clicknext"],
|
||||
["[[", "clicknext prev"],
|
||||
["T", "current-url tab"],
|
||||
["p", "clipboard open"],
|
||||
["P", "clipboard tabopen"],
|
||||
["j", "scrollline 10"],
|
||||
["k", "scrollline -10"],
|
||||
["h", "scrollx -5"],
|
||||
|
|
Loading…
Add table
Reference in a new issue