mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 05:42:22 +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> {
|
||||
return [
|
||||
// Raise binds
|
||||
bindWithMods(["left_option", "left_cmd"], "t", raise("Teams")),
|
||||
|
||||
|
||||
// movement
|
||||
bindCaps("h", press("left_arrow")),
|
||||
bindCaps("j", press("down_arrow")),
|
||||
|
@ -129,9 +133,9 @@ type Mapping = {
|
|||
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") {
|
||||
return { key_code: key, modifiers: { optional } };
|
||||
return { key_code: key, modifiers: { optional, mandatory } };
|
||||
} else if (Array.isArray(key)) {
|
||||
return {
|
||||
simultaneous: key.map((x) => ({ key_code: x })),
|
||||
|
@ -171,6 +175,16 @@ function bind(
|
|||
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 {
|
||||
const capsCondition: Condition = {
|
||||
name: "caps_lock pressed",
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
(merge
|
||||
config
|
||||
{:font (wezterm.font "FiraMono Nerd Font")
|
||||
:font_size 14
|
||||
:scrollback_lines 10000
|
||||
:hide_tab_bar_if_only_one_tab true
|
||||
:color_scheme "GruvboxDarkHard"
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
// "buffer_font_family": "Zed Mono",
|
||||
|
||||
// "active_pane_magnification": 1.3,
|
||||
"tab_bar": {
|
||||
"show_nav_history_buttons": false
|
||||
},
|
||||
|
||||
"calls": {
|
||||
"mute_on_join": true
|
||||
|
@ -27,13 +30,27 @@
|
|||
"use_smartcase_find": true,
|
||||
"use_system_clipboard": "on_yank"
|
||||
},
|
||||
"languages": {
|
||||
"JSON": {
|
||||
"format_on_save": "off"
|
||||
}
|
||||
},
|
||||
|
||||
"assistant": {
|
||||
"version": "1",
|
||||
"provider": {
|
||||
"name": "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": {
|
||||
// "name": "zed.dev",
|
||||
// "default_model": "gpt-3.5-turbo"
|
||||
|
|
Loading…
Reference in a new issue