update zed tasks and keymap

This commit is contained in:
2026-01-12 14:02:31 +08:00
parent 2f37ac4f95
commit 28e1135dd7
3 changed files with 58 additions and 57 deletions

View File

@@ -6,25 +6,22 @@
// To see the default key bindings run `zed: open default keymap` // To see the default key bindings run `zed: open default keymap`
// from the command palette. // from the command palette.
[ [
{ {
"context": "Workspace", "context": "Workspace",
"bindings": { "bindings": {
// "shift shift": "file_finder::Toggle" // "shift shift": "file_finder::Toggle"
} },
}, },
{ {
"context": "Editor", "context": "Editor",
"bindings": { "bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"] // "j k": ["workspace::SendKeystrokes", "escape"]
} },
}, },
{ {
"context": "VimControl && !menu", "context": "Editor && extension==tex", // This restricts the keybindings to tex files however does not work when in terminal
"bindings": { "bindings": {
"j": ["vim::Down", { "display_lines": true }], "ctrl-alt-f": ["task::Spawn", { "task_name": "forward_search" }]
"k": ["vim::Up", { "display_lines": true }], },
"g j": "vim::Down", },
"g k": "vim::Up"
}
}
] ]

View File

@@ -7,58 +7,53 @@
// custom settings, run `zed: open default settings` from the // custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p) // command palette (cmd-shift-p / ctrl-shift-p)
{ {
"ui_font_size": 15.0,
"buffer_font_weight": 400.0,
"drag_and_drop_selection": { "drag_and_drop_selection": {
"delay": 0, "delay": 0,
"enabled": true "enabled": true,
}, },
"terminal": { "terminal": {
"font_family": ".ZedMono", "font_family": ".ZedMono",
"detect_venv": "off", "detect_venv": "off",
"font_size": 14 "font_size": 14,
}, },
"show_wrap_guides": true,
"title_bar": { "title_bar": {
"show_sign_in": false "show_sign_in": false,
}, },
"git_panel": { "git_panel": {
"default_width": 320.0 "default_width": 280.0,
}, },
"outline_panel": { "outline_panel": {
"default_width": 320.0 "default_width": 280.0,
}, },
"notification_panel": { "notification_panel": {
"dock": "right" "dock": "right",
}, },
"debugger": { "debugger": {
"dock": "bottom" "dock": "bottom",
}, },
"edit_predictions": { "edit_predictions": {
"mode": "subtle", "mode": "subtle",
"copilot": { "copilot": {
"proxy": null, "proxy": null,
"proxy_no_verify": null "proxy_no_verify": null,
}, },
"enabled_in_text_threads": false "enabled_in_text_threads": false,
}, },
"telemetry": { "telemetry": {
"diagnostics": false, "diagnostics": false,
"metrics": false "metrics": false,
}, },
"base_keymap": "VSCode", "base_keymap": "VSCode",
"buffer_font_features": {
"calt": false,
"NWID": true
},
"ui_font_size": 14,
"buffer_font_family": "Iosevka Terminal Wide", "buffer_font_family": "Iosevka Terminal Wide",
"buffer_font_size": 14, "buffer_font_size": 14,
"buffer_line_height": "comfortable", "buffer_line_height": "comfortable",
"project_panel": { "project_panel": {
"default_width": 320.0, "default_width": 280.0,
"scrollbar": { "scrollbar": {
"show": "never" "show": "never",
}, }
"entry_spacing": "standard"
}, },
"tab_size": 4, "tab_size": 4,
"format_on_save": "off", "format_on_save": "off",
@@ -68,24 +63,24 @@
"soft_wrap": "editor_width", "soft_wrap": "editor_width",
"git": { "git": {
"inline_blame": { "inline_blame": {
"enabled": false "enabled": false,
} },
}, },
"collaboration_panel": { "collaboration_panel": {
"button": false "button": false,
}, },
"agent": { "agent": {
"enabled": false "enabled": false,
}, },
"features": { "features": {
// "copilot": false, // "copilot": false,
"edit_prediction_provider": "none" "edit_prediction_provider": "none",
}, },
// "vim_mode": true, // "vim_mode": true,
"languages": { "languages": {
"Haskell": { "Haskell": {
"tab_size": 2 "tab_size": 2,
} },
}, },
////// LSP config ////// ////// LSP config //////
"lsp": { "lsp": {
@@ -94,20 +89,20 @@
"texlab": { "texlab": {
"build": { "build": {
"onSave": true, "onSave": true,
"forwardSearchAfter": false "forwardSearchAfter": false,
} },
} },
} },
}, },
"clangd": { "clangd": {
"binary": { "binary": {
"ignore_system_version": true, "ignore_system_version": true,
"path": "/opt/homebrew/opt/llvm/bin/clangd", "path": "/opt/homebrew/opt/llvm/bin/clangd",
"arguments": [] "arguments": [],
} },
} },
}, },
"file_types": { "file_types": {
"Cython":["sage"] "Cython": ["sage"],
} },
} }

View File

@@ -0,0 +1,9 @@
[
{
"label": "forward_search",
"command": "/Applications/Skim.app/Contents/SharedSupport/displayline -g $ZED_ROW $ZED_DIRNAME/$ZED_STEM.pdf",
"allow_concurrent_runs": false,
"reveal": "never",
"hide": "always"
}
]