mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 13:42:23 +00:00
asdf
This commit is contained in:
parent
8615a48773
commit
cd156e5adb
3 changed files with 35 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
||||||
function manipulators(): Array<Mapping> {
|
function manipulators(): Array<Mapping> {
|
||||||
return [
|
return [
|
||||||
|
// Raise binds
|
||||||
|
bindWithMods(["left_option", "left_cmd"], "t", raise("Teams")),
|
||||||
|
|
||||||
|
|
||||||
// movement
|
// movement
|
||||||
bindCaps("h", press("left_arrow")),
|
bindCaps("h", press("left_arrow")),
|
||||||
bindCaps("j", press("down_arrow")),
|
bindCaps("j", press("down_arrow")),
|
||||||
|
@ -129,9 +133,9 @@ type Mapping = {
|
||||||
type: "basic";
|
type: "basic";
|
||||||
};
|
};
|
||||||
|
|
||||||
function from(key: string | string[], optional: string[] = ["any"]): From {
|
function from(key: string | string[], optional: string[] = ["any"], mandatory: string[] = []): From {
|
||||||
if (typeof key === "string") {
|
if (typeof key === "string") {
|
||||||
return { key_code: key, modifiers: { optional } };
|
return { key_code: key, modifiers: { optional, mandatory } };
|
||||||
} else if (Array.isArray(key)) {
|
} else if (Array.isArray(key)) {
|
||||||
return {
|
return {
|
||||||
simultaneous: key.map((x) => ({ key_code: x })),
|
simultaneous: key.map((x) => ({ key_code: x })),
|
||||||
|
@ -171,6 +175,16 @@ function bind(
|
||||||
return { conditions: when, from: from(f), to: toValue, type: "basic" };
|
return { conditions: when, from: from(f), to: toValue, type: "basic" };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function bindWithMods(
|
||||||
|
f: string | string[],
|
||||||
|
mods: string[],
|
||||||
|
to: ToAction | To,
|
||||||
|
when: Condition[] = [],
|
||||||
|
): Mapping {
|
||||||
|
const toValue = Array.isArray(to) ? to : [to];
|
||||||
|
return { conditions: when, from: from(f, [], mods), to: toValue, type: "basic" };
|
||||||
|
}
|
||||||
|
|
||||||
function bindCaps(from: string | string[], to: ToAction | To): Mapping {
|
function bindCaps(from: string | string[], to: ToAction | To): Mapping {
|
||||||
const capsCondition: Condition = {
|
const capsCondition: Condition = {
|
||||||
name: "caps_lock pressed",
|
name: "caps_lock pressed",
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
(merge
|
(merge
|
||||||
config
|
config
|
||||||
{:font (wezterm.font "FiraMono Nerd Font")
|
{:font (wezterm.font "FiraMono Nerd Font")
|
||||||
|
:font_size 14
|
||||||
:scrollback_lines 10000
|
:scrollback_lines 10000
|
||||||
:hide_tab_bar_if_only_one_tab true
|
:hide_tab_bar_if_only_one_tab true
|
||||||
:color_scheme "GruvboxDarkHard"
|
:color_scheme "GruvboxDarkHard"
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
// "buffer_font_family": "Zed Mono",
|
// "buffer_font_family": "Zed Mono",
|
||||||
|
|
||||||
// "active_pane_magnification": 1.3,
|
// "active_pane_magnification": 1.3,
|
||||||
|
"tab_bar": {
|
||||||
|
"show_nav_history_buttons": false
|
||||||
|
},
|
||||||
|
|
||||||
"calls": {
|
"calls": {
|
||||||
"mute_on_join": true
|
"mute_on_join": true
|
||||||
|
@ -27,13 +30,27 @@
|
||||||
"use_smartcase_find": true,
|
"use_smartcase_find": true,
|
||||||
"use_system_clipboard": "on_yank"
|
"use_system_clipboard": "on_yank"
|
||||||
},
|
},
|
||||||
|
"languages": {
|
||||||
|
"JSON": {
|
||||||
|
"format_on_save": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
"assistant": {
|
"assistant": {
|
||||||
"version": "1",
|
"version": "1",
|
||||||
"provider": {
|
"provider": {
|
||||||
"name": "openai",
|
"name": "openai",
|
||||||
"type": "openai",
|
"type": "openai",
|
||||||
"default_model": "gpt-3.5-turbo"
|
"default_model": "gpt-3.5-turbo",
|
||||||
|
// "default_model": "anthropic/claude-3-haiku",
|
||||||
|
"api_url": "http://localhost:4444",
|
||||||
|
//"api_url": "https://openrouter.ai/api/v1",
|
||||||
}
|
}
|
||||||
|
// "provider": {
|
||||||
|
// "name": "openai",
|
||||||
|
// "type": "openai",
|
||||||
|
// "default_model": "gpt-3.5-turbo"
|
||||||
|
// }
|
||||||
//"provider": {
|
//"provider": {
|
||||||
// "name": "zed.dev",
|
// "name": "zed.dev",
|
||||||
// "default_model": "gpt-3.5-turbo"
|
// "default_model": "gpt-3.5-turbo"
|
||||||
|
|
Loading…
Reference in a new issue