mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
minor fix
This commit is contained in:
parent
180de92998
commit
c6ad959982
11 changed files with 282 additions and 45 deletions
8
tools/zed/keymap.json
Executable file → Normal file
8
tools/zed/keymap.json
Executable file → Normal file
|
|
@ -53,14 +53,18 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"context": "vim_mode == normal || not_editing || EmptyPane",
|
||||
"context": "GitPanel || ProjectPanel || CollabPanel || OutlinePanel || ChatPanel || VimControl || EmptyPane || SharedScreen || MarkdownPreview || KeyContextView",
|
||||
|
||||
"bindings": {
|
||||
"space space": "file_finder::Toggle",
|
||||
"space ;": "command_palette::Toggle",
|
||||
"space f c": "zed::OpenSettings",
|
||||
"space f e c": "zed::OpenSettings",
|
||||
"space f t": "project_panel::ToggleFocus"
|
||||
"space f t": "project_panel::ToggleFocus",
|
||||
"ctrl-w h": "workspace::ActivatePaneLeft",
|
||||
"ctrl-w i": "workspace::ActivatePaneRight",
|
||||
"ctrl-w e": "workspace::ActivatePaneUp",
|
||||
"ctrl-w n": "workspace::ActivatePaneDown"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
91
tools/zed/keymap_backup.json
Normal file
91
tools/zed/keymap_backup.json
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
// $DOTFILES/tools/zed/keymaps.json
|
||||
// Date: 2025-01-25
|
||||
// Author: js0ny
|
||||
// Description: Zed keymaps
|
||||
|
||||
// Location:
|
||||
// GNU/Linux: ~/.config/zed/keymaps.json
|
||||
// Windows: %APPDATA%\Zed\keymaps.json
|
||||
// Linking: (link the whole directory)
|
||||
// ln -sf $DOTFILES/tools/zed ~/.config/zed
|
||||
|
||||
// Zed keymap
|
||||
|
||||
//
|
||||
|
||||
// For information on binding keys, see the Zed
|
||||
|
||||
// documentation: https://zed.dev/docs/key-bindings
|
||||
|
||||
//
|
||||
|
||||
// To see the default key bindings run `zed: open default keymap`
|
||||
|
||||
// from the command palette.
|
||||
|
||||
// https://github.com/zed-industries/zed/tree/main/assets/keymaps
|
||||
// Sequence: https://zed.dev/docs/key-bindings#remapping-keys
|
||||
[
|
||||
{
|
||||
"context": "Workspace",
|
||||
|
||||
"bindings": {
|
||||
// "shift shift": "file_finder::Toggle"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"context": "Editor",
|
||||
|
||||
"bindings": {
|
||||
// "j k": ["workspace::SendKeystrokes", "escape"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "vim_mode == normal || vim_mode == visual",
|
||||
|
||||
"bindings": {
|
||||
"N": "vim::JoinLines",
|
||||
"l": "vim::InsertBefore",
|
||||
"L": "vim::InsertFirstNonWhitespace",
|
||||
"H": "pane::ActivatePrevItem",
|
||||
"I": "pane::ActivateNextItem"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "vim_mode == normal || not_editing || EmptyPane",
|
||||
|
||||
"bindings": {
|
||||
"space space": "file_finder::Toggle",
|
||||
"space ;": "command_palette::Toggle",
|
||||
"space f c": "zed::OpenSettings",
|
||||
"space f e c": "zed::OpenSettings",
|
||||
"space f t": "project_panel::ToggleFocus"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "vim_mode == normal || vim_mode == visual || vim_mode == operator",
|
||||
|
||||
"bindings": {
|
||||
"n": "vim::Down",
|
||||
"e": "vim::Up",
|
||||
"i": "vim::Right",
|
||||
"k": "search::SelectNextMatch",
|
||||
"K": "search::SelectPrevMatch",
|
||||
"N": ["workspace::SendKeystrokes", "n n n n n"],
|
||||
"E": ["workspace::SendKeystrokes", "e e e e e"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "ProjectPanel && not_editing",
|
||||
|
||||
"bindings": {
|
||||
"n": "menu::SelectNext",
|
||||
"e": "menu::SelectPrev",
|
||||
"i": "project_panel::ExpandSelectedEntry",
|
||||
"A": "project_panel::NewDirectory",
|
||||
"a": "project_panel::NewFile",
|
||||
"d": "project_panel::Delete"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -18,6 +18,14 @@
|
|||
// custom settings, run `zed: open default settings` from the
|
||||
// command palette (cmd-shift-p / ctrl-shift-p)
|
||||
{
|
||||
"edit_predictions": {
|
||||
"disabled_globs": ["*.bean"],
|
||||
"mode": "eager_preview",
|
||||
"copilot": {
|
||||
"proxy": null,
|
||||
"proxy_no_verify": null
|
||||
}
|
||||
},
|
||||
"base_keymap": "VSCode",
|
||||
"vim_mode": true,
|
||||
"ui_font_size": 16,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue