Compare commits

...

4 commits

Author SHA1 Message Date
Max Bucknell
725f951283
Add integration test snippets 2025-05-19 13:35:56 -07:00
Max Bucknell
efcf10d692
Update default model in Zed 2025-05-19 13:35:46 -07:00
Max Bucknell
b1a4b8fad2
Add lt alias for git 2025-05-19 13:35:28 -07:00
Max Bucknell
a1cd734bf4
Fix deprecated Zed keymaps 2025-04-15 12:19:12 +10:00
4 changed files with 50 additions and 14 deletions

View file

@ -34,6 +34,7 @@
unwip = reset --soft HEAD~1
s = switch
b = switch -c
lt = log --oneline -10
[color]
ui = auto

View file

@ -17,20 +17,20 @@
{
"context": "Pane",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-j": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-l": "workspace::ActivatePaneDown",
"cmd-shift-g": "pane::RevealInProjectPanel"
}
},
{
"context": "Editor",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-j": "workspace::ActivatePaneDown",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-l": "workspace::ActivatePaneRight",
"cmd-enter": "repl::Run"
}
},
@ -50,10 +50,10 @@
";": "command_palette::Toggle",
":": "vim::RepeatFind",
"space o": "file_finder::Toggle",
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"]
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-j": "workspace::ActivatePaneDown",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-l": "workspace::ActivatePaneRight"
}
},
{

View file

@ -16,7 +16,7 @@
"assistant": {
"default_model": {
"provider": "anthropic",
"model": "claude-3-5-sonnet-latest"
"model": "claude-3-7-sonnet-latest"
},
"version": "2"
},
@ -59,7 +59,7 @@
"wrap_guides": [80],
"use_smartcase_search": true,
"terminal": {
"dock": "right",
"dock": "bottom",
"toolbar": {
"breadcrumbs": false
}

View file

@ -0,0 +1,35 @@
{
"itesth": {
"prefix": "itesth",
"description": "Integration test header",
"body": [
"/* eslint-disable @typescript-eslint/no-unused-expressions */",
"import 'reflect-metadata'",
"",
"import { describe } from 'node:test'",
"",
"import { createDatabase, tearDown, withFixturesIt } from '@lib/database/test'",
"import { createTestContext } from 'baseup/services/internal/engine/context/test'",
"",
"import { expect, use } from 'chai'",
"import chaiAsPromised from 'chai-as-promised'",
"use(chaiAsPromised)",
"",
"$0"
]
},
"itests": {
"prefix": "itests",
"description": "Integration test suite",
"body": ["describe('${1:Function name}', () => {", " $0", "})"]
},
"itest": {
"prefix": "itest",
"description": "Integration test case",
"body": [
"withFixturesIt([${1:Fixtures...}], '${2:Should...}', async () => {",
" $0",
"})"
]
}
}