mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Fix #2808: add :mkt --clipboard
This commit is contained in:
parent
b856d593cc
commit
55d872b502
1 changed files with 6 additions and 0 deletions
|
@ -742,6 +742,8 @@ export async function nativeinstall() {
|
|||
|
||||
Available flags:
|
||||
- `-f` will overwrite the config file if it exists.
|
||||
- `--clipboard` write config to clipboard - no [[native]] required
|
||||
|
||||
@param args an optional string of arguments to be parsed.
|
||||
@returns the parsed config.
|
||||
|
||||
|
@ -762,6 +764,10 @@ export async function mktridactylrc(...args: string[]) {
|
|||
const file = argParse(args).join(" ") || undefined
|
||||
|
||||
const conf = config.parseConfig()
|
||||
if (file == "--clipboard") {
|
||||
setclip(conf)
|
||||
return fillcmdline_tmp(3000, "# RC copied to clipboard")
|
||||
}
|
||||
if ((await Native.nativegate("0.1.11")) && !(await rc.writeRc(conf, overwrite, file))) logger.error("Could not write RC file")
|
||||
|
||||
return conf
|
||||
|
|
Loading…
Add table
Reference in a new issue