Index

Variables

Const platform_defaults

platform_defaults: Record<PlatformOs, default_config> = {win: {browsermaps: {"<C-6>": null,"<A-6>": "buffer #",} as unknown, // typescript doesn't like me adding new binds like thisnmaps: {"<C-6>": "buffer #",} as unknown,imaps: {"<C-6>": "buffer #",} as unknown,inputmaps: {"<C-6>": "buffer #",} as unknown,ignoremaps: {"<C-6>": "buffer #",} as unknown,nativeinstallcmd: `powershell -NoProfile -Command "(New-Object System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/tridactyl/tridactyl/master/native/win_install.ps1', """$env:temp/tridactyl_installnative.ps1""")" & powershell -NoProfile -File %temp%\\tridactyl_installnative.ps1 %TAG & del %temp%\\tridactyl_installnative.ps1`,},linux: {nmaps: {";x":'hint -F e => { const pos = tri.dom.getAbsoluteCentre(e); tri.excmds.exclaim_quiet("xdotool mousemove --sync " + window.devicePixelRatio * pos.x + " " + window.devicePixelRatio * pos.y + "; xdotool click 1")}',";X":'hint -F e => { const pos = tri.dom.getAbsoluteCentre(e); tri.excmds.exclaim_quiet("xdotool mousemove --sync " + window.devicePixelRatio * pos.x + " " + window.devicePixelRatio * pos.y + "; xdotool keydown ctrl+shift; xdotool click 1; xdotool keyup ctrl+shift")}',} as unknown,},} as Record<browser.runtime.PlatformOs, default_config>

Const removeNull

removeNull: any = R.when(R.is(Object),R.pipe(// Ramda gives an error here without the anyR.reject(val => val === null) as any,R.map(a => removeNull(a)),),)

Functions

getAsyncDynamic

  • getAsyncDynamic(...target: string[]): Promise<any>
  • Get the value of the key target.

    Please only use this with targets that will be used at runtime - it skips static checks. Prefer getAsync.

    Parameters

    • Rest ...target: string[]

    Returns Promise<any>

getDynamic

  • getDynamic(...target: string[]): any
  • Get the value of the key target.

    Please only use this with targets that will be used at runtime - it skips static checks. Prefer get.

    Parameters

    • Rest ...target: string[]

    Returns any

parseConfig

  • parseConfig(): string
  • Parse the config into a string representation of a .tridactylrc config file. Tries to parse the config into sectionable chunks based on keywords. Binds, aliases, autocmds and logging settings each have their own section while the rest are dumped into "General Settings".

    Returns string

    string The parsed config file.

Const parseConfigHelper

  • parseConfigHelper(pconf: any, parseobj: any, prefix?: any[]): any
  • Parameters

    • pconf: any
    • parseobj: any
    • Default value prefix: any[] = []

    Returns any

pull

  • pull(): Promise<void>

push

  • push(): Promise<void>