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 unwip = reset --soft HEAD~1
s = switch s = switch
b = switch -c b = switch -c
lt = log --oneline -10
[color] [color]
ui = auto ui = auto

View file

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

View file

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