diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 00000000..a55e7a17
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/lib/command.ts b/lib/command.ts
index ca57fb28..109795dc 100644
--- a/lib/command.ts
+++ b/lib/command.ts
@@ -1,5 +1,5 @@
import type { CommandDef, SlashCommandDef } from "$lib/manifest.ts";
-import { SlashCompletions } from "@silverbulletmd/silverbullet/types";
+import type { SlashCompletions } from "@silverbulletmd/silverbullet/types";
export type RunnableCommand = {
run?: (args?: any[]) => Promise;
diff --git a/lib/manifest.ts b/lib/manifest.ts
index 0398f0be..8cac1c17 100644
--- a/lib/manifest.ts
+++ b/lib/manifest.ts
@@ -1,6 +1,5 @@
import type { Manifest as PlugosManifest } from "./plugos/types.ts";
import type { NamespaceOperation } from "./plugos/namespace.ts";
-import type { ILuaFunction } from "./space_lua/runtime.ts";
export type CodeWidgetT = {
codeWidget?: string;
diff --git a/plug-api/syscalls/system.ts b/plug-api/syscalls/system.ts
index c615ccd0..ff656d45 100644
--- a/plug-api/syscalls/system.ts
+++ b/plug-api/syscalls/system.ts
@@ -1,6 +1,6 @@
import type { SyscallMeta } from "../types.ts";
import { syscall } from "../syscall.ts";
-import { CommandDef } from "../../lib/manifest.ts";
+import type { CommandDef } from "../../lib/manifest.ts";
/**
* System level syscalls
diff --git a/type/client.ts b/type/client.ts
index 1cf69689..ec47929a 100644
--- a/type/client.ts
+++ b/type/client.ts
@@ -17,28 +17,6 @@ export type Notification = {
export type PanelMode = number;
-export type Shortcut = {
- // Command we're creating the shortcut for
- command: string;
- // Optional arguments to pass to the shortcut
- args?: any[];
- // (Re)bind to keyboard shortcut
- key?: string;
- mac?: string;
- // Bind to slash command
- slashCommand?: string;
- // Tweak priority in command palette
- priority?: number;
-};
-
-export type ActionButton = {
- icon: string;
- description?: string;
- command: string;
- args?: any[];
- mobile?: boolean;
-};
-
export type EmojiConfig = {
aliases: string[][];
};
diff --git a/web/client_system.ts b/web/client_system.ts
index dadd5a88..a0e6e58a 100644
--- a/web/client_system.ts
+++ b/web/client_system.ts
@@ -45,11 +45,11 @@ import type { LuaCollectionQuery } from "../lib/space_lua/query_collection.ts";
import type { Command } from "$lib/command.ts";
import { SpaceLuaEnvironment } from "./space_lua.ts";
import {
- ILuaFunction,
+ type ILuaFunction,
jsToLuaValue,
luaCall,
LuaStackFrame,
- LuaValue,
+ type LuaValue,
luaValueToJS,
} from "../lib/space_lua/runtime.ts";
import { buildThreadLocalEnv, handleLuaError } from "./space_lua_api.ts";
diff --git a/web/components/command_palette.tsx b/web/components/command_palette.tsx
index a3c81ea5..58aee54f 100644
--- a/web/components/command_palette.tsx
+++ b/web/components/command_palette.tsx
@@ -5,11 +5,7 @@ import type {
} from "@codemirror/autocomplete";
import { Terminal } from "preact-feather";
import type { Command } from "../../lib/command.ts";
-import type {
- FilterOption,
- Shortcut,
-} from "@silverbulletmd/silverbullet/type/client";
-import type { Config } from "../config.ts";
+import type { FilterOption } from "@silverbulletmd/silverbullet/type/client";
export function CommandPalette({
commands,
diff --git a/web/editor_state.ts b/web/editor_state.ts
index 7302bd32..c094e610 100644
--- a/web/editor_state.ts
+++ b/web/editor_state.ts
@@ -53,7 +53,6 @@ import { safeRun } from "$lib/async.ts";
import { codeCopyPlugin } from "./cm_plugins/code_copy.ts";
import { disableSpellcheck } from "./cm_plugins/spell_checking.ts";
import { isValidEditor } from "$lib/command.ts";
-import type { Shortcut } from "@silverbulletmd/silverbullet/type/client";
export function createEditorState(
client: Client,
diff --git a/web/hooks/event.ts b/web/hooks/event.ts
index 9d102ed8..236222f3 100644
--- a/web/hooks/event.ts
+++ b/web/hooks/event.ts
@@ -1,3 +1,4 @@
+// deno-lint-ignore-file ban-types
import type { Manifest } from "$lib/plugos/types.ts";
import type { System } from "$lib/plugos/system.ts";
import type { EventHookI } from "$lib/plugos/eventhook.ts";
diff --git a/web/syscalls/event.ts b/web/syscalls/event.ts
index e9f47947..3ef581e8 100644
--- a/web/syscalls/event.ts
+++ b/web/syscalls/event.ts
@@ -1,14 +1,8 @@
+// deno-lint-ignore-file ban-types
import type { SysCallMapping } from "$lib/plugos/system.ts";
-import { buildThreadLocalEnv, handleLuaError } from "../space_lua_api.ts";
-import {
- type ILuaFunction,
- jsToLuaValue,
- luaCall,
- LuaStackFrame,
- luaValueToJS,
-} from "../../lib/space_lua/runtime.ts";
-import { Client } from "../client.ts";
-import { EventSubscription } from "../../lib/event.ts";
+import { LuaStackFrame, luaValueToJS } from "../../lib/space_lua/runtime.ts";
+import type { Client } from "../client.ts";
+import type { EventSubscription } from "../../lib/event.ts";
export function eventListenerSyscalls(
client: Client,
diff --git a/web/syscalls/system.ts b/web/syscalls/system.ts
index 8d94e3c9..c3654537 100644
--- a/web/syscalls/system.ts
+++ b/web/syscalls/system.ts
@@ -2,7 +2,7 @@ import type { SyscallMeta } from "../../plug-api/types.ts";
import type { SysCallMapping } from "../../lib/plugos/system.ts";
import type { Client } from "../client.ts";
import { version } from "../../version.ts";
-import { CommandDef } from "../../lib/manifest.ts";
+import type { CommandDef } from "../../lib/manifest.ts";
export function systemSyscalls(
client: Client,
diff --git a/website/Vim.md b/website/Vim.md
index 77ea88af..d191460b 100644
--- a/website/Vim.md
+++ b/website/Vim.md
@@ -1,5 +1,4 @@
-SilverBullet has a basic Vim mode. You can toggle it using the
-${widgets.commandButton("Editor: Toggle Vim Mode")} command.
+SilverBullet has a basic Vim mode. You can toggle it using the ${widgets.commandButton("Editor: Toggle Vim Mode")} command.
In addition, it supports various ex commands that you can run as you would expect, for instance: `:imap jj `.