Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/smx/src/modules/editor/handler.ts>EditorHandler

Manage and sync scripts, configs and templates between computers
Latest
class EditorHandler
implements IEditorHandler
import { EditorHandler } from "https://deno.land/x/smx@v0.6.0/src/modules/editor/handler.ts";

Constructors

new
EditorHandler(unnamed 0: { settings: ISettingsManager; config: IConfigHandler; runner: IRunProcess; })

Methods

edit(path: string, editor?: string): Promise<void>
get(name: string): EditorConfig | undefined
getDefault(type: "folder" | "file" | "diff"): EditorConfig | undefined
setDefault(
editor: string,
type: "folder" | "file" | "diff",
_: boolean,
): Promise<void>