mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Clarify viewconfig help
This commit is contained in:
parent
b71eedf4bb
commit
1f7ea2c9ed
1 changed files with 5 additions and 2 deletions
|
@ -4181,10 +4181,13 @@ export function get(...keys: string[]) {
|
||||||
return done
|
return done
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Opens the current configuration in Firefox's native JSON viewer in the current tab.
|
/**
|
||||||
|
* Opens the current configuration in Firefox's native JSON viewer in a new tab.
|
||||||
*
|
*
|
||||||
* @param key - The specific key you wish to view (e.g, nmaps, autocmds.DocLoad). Also accepts the arguments `--default` or `--user` to view the default configuration, or your changes.
|
* @param key - The specific key you wish to view (e.g, nmaps, autocmds.DocLoad). Also accepts the arguments `--default` or `--user` to view the default configuration, or your changes.
|
||||||
*
|
*
|
||||||
|
* NB: the configuration won't update if you refresh the page - you need to run `:viewconfig` again.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
//#background
|
//#background
|
||||||
export function viewconfig(...key: string[]) {
|
export function viewconfig(...key: string[]) {
|
||||||
|
@ -4210,7 +4213,7 @@ export function viewconfig(...key: string[]) {
|
||||||
export async function jsonview(...json: string[]) {
|
export async function jsonview(...json: string[]) {
|
||||||
const tab = await tabopen("-w")
|
const tab = await tabopen("-w")
|
||||||
const url = "data:application/json," + encodeURIComponent(json.join(" "))
|
const url = "data:application/json," + encodeURIComponent(json.join(" "))
|
||||||
return browser.tabs.executeScript(tab.id, {code: `window.location.href = "${url}";`})
|
return browser.tabs.executeScript(tab.id, { code: `window.location.href = "${url}";` })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue