update zed zed config

This commit is contained in:
Alexander Navarro 2024-10-28 08:20:34 -03:00
parent 860321f63e
commit 6af792a0e9
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5
3 changed files with 16 additions and 16 deletions

View file

@ -32,6 +32,12 @@
"ctrl-l": "editor::ContextMenuNext" "ctrl-l": "editor::ContextMenuNext"
} }
}, },
{
"context": "Editor && (vim_mode == normal || vim_mode == insert)",
"bindings": {
"ctrl-shift-v": "editor::Paste"
}
},
{ {
// move context menus with Ctrl + hjkl in menus // move context menus with Ctrl + hjkl in menus
"context": "Picker || menu", "context": "Picker || menu",
@ -43,8 +49,10 @@
} }
}, },
{ {
"context": "Editor && vim_mode == normal && !VimWaiting && !menu", "context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": { "bindings": {
"|": "pane::SplitVertical",
// Window movement bindings // Window movement bindings
// Ctrl jklk to move between panes // Ctrl jklk to move between panes
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"], "ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
@ -106,7 +114,7 @@
}, },
// Empty pane, set of keybindings that are available when there is no active editor // Empty pane, set of keybindings that are available when there is no active editor
{ {
"context": "EmptyPane || SharedScreen", "context": "(EmptyPane || SharedScreen) && vim_mode != insert",
"bindings": { "bindings": {
// Open file finder // Open file finder
"space f f": "file_finder::Toggle", "space f f": "file_finder::Toggle",
@ -117,8 +125,7 @@
{ {
"context": "Workspace", "context": "Workspace",
"bindings": { "bindings": {
"ctrl-t": "terminal_panel::ToggleFocus", "ctrl-t": "terminal_panel::ToggleFocus"
"space e": "workspace::ToggleLeftDock"
} }
}, },
{ {
@ -149,7 +156,8 @@
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"], "ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"], "ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"], "ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"] "ctrl-j": ["workspace ::ActivatePaneInDirection", "Down"],
"space e": "workspace::ToggleLeftDock"
} }
}, },
// Panel nagivation // Panel nagivation

View file

@ -59,5 +59,8 @@
"search_results": true, "search_results": true,
"selected_symbol": true, "selected_symbol": true,
"diagnostics": true "diagnostics": true
},
"command_aliases": {
"q": "pane: close all items"
} }
} }

View file

@ -25,17 +25,6 @@ dwps() {
docker run -d --rm -p 3000:80 --user 1000:1000 -v "$PWD":/var/www/html --name "$image_name" "$image_name" docker run -d --rm -p 3000:80 --user 1000:1000 -v "$PWD":/var/www/html --name "$image_name" "$image_name"
} }
## Create python venv
pvenv() {
[[ -n $VIRTAUL_ENV ]] && echo "Virtual enviroment already sourced" && return
dir=${1:-venv}
[[ ! -d $dir ]] && echo "Creating virtual enviroment..." && python -m venv $dir
source "$dir/bin/activate"
}
# Print bottlenecks # Print bottlenecks
profzsh() { profzsh() {
shell=${1-$SHELL} shell=${1-$SHELL}