mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
feat: move snippets, keybinding actions and macros out of core into plugins
This commit is contained in:
1 parent
d9bba10612
commit
e0c30a4e6f
262 files changed
+9091
-10744
No files matched your search
@@ -37,6 +37,7 @@ import {
|
||||
parseCustomKeybindings,
|
||||
patchOpenTab,
|
||||
} from "@/api/open-tabs-api";
|
||||
import { runKeybindingAction } from "@/shell/keybinding-registry";
|
||||
import { usePluginScope } from "./scope";
|
||||
import { knownPluginIds, usePluginStore } from "./plugin-store";
|
||||
import { useUiPreferencesContext } from "@/contexts/UiPreferencesContext";
|
||||
@@ -361,6 +362,8 @@ export const pluginHostBridge: PluginHostBridge = {
|
||||
patchOpenTab: (instanceId, updates) => patchOpenTab(instanceId, updates),
|
||||
getCustomKeybindings: async () =>
|
||||
parseCustomKeybindings((await getUserPreferences()).customKeybindings),
|
||||
runKeybindingAction: (action, context) =>
|
||||
runKeybindingAction(action, context),
|
||||
getClientPreference: (name) => getCookie(name),
|
||||
setClientPreference: (name, value) => {
|
||||
void setCookie(name, value, 365);
|
||||
|
||||
Reference in new issue
Block a user