diff --git a/chezmoi/dot_config/zed/keymap.json b/chezmoi/dot_config/zed/keymap.json index 0ac6511..c175302 100644 --- a/chezmoi/dot_config/zed/keymap.json +++ b/chezmoi/dot_config/zed/keymap.json @@ -32,6 +32,12 @@ "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 "context": "Picker || menu", @@ -43,8 +49,10 @@ } }, { - "context": "Editor && vim_mode == normal && !VimWaiting && !menu", + "context": "Editor && VimControl && !VimWaiting && !menu", "bindings": { + "|": "pane::SplitVertical", + // Window movement bindings // Ctrl jklk to move between panes "ctrl-h": ["workspace::ActivatePaneInDirection", "Left"], @@ -106,7 +114,7 @@ }, // Empty pane, set of keybindings that are available when there is no active editor { - "context": "EmptyPane || SharedScreen", + "context": "(EmptyPane || SharedScreen) && vim_mode != insert", "bindings": { // Open file finder "space f f": "file_finder::Toggle", @@ -117,8 +125,7 @@ { "context": "Workspace", "bindings": { - "ctrl-t": "terminal_panel::ToggleFocus", - "space e": "workspace::ToggleLeftDock" + "ctrl-t": "terminal_panel::ToggleFocus" } }, { @@ -149,7 +156,8 @@ "ctrl-h": ["workspace::ActivatePaneInDirection", "Left"], "ctrl-l": ["workspace::ActivatePaneInDirection", "Right"], "ctrl-k": ["workspace::ActivatePaneInDirection", "Up"], - "ctrl-j": ["workspace::ActivatePaneInDirection", "Down"] + "ctrl-j": ["workspace ::ActivatePaneInDirection", "Down"], + "space e": "workspace::ToggleLeftDock" } }, // Panel nagivation diff --git a/chezmoi/dot_config/zed/private_settings.json b/chezmoi/dot_config/zed/private_settings.json index 5b7030a..8657fd3 100644 --- a/chezmoi/dot_config/zed/private_settings.json +++ b/chezmoi/dot_config/zed/private_settings.json @@ -59,5 +59,8 @@ "search_results": true, "selected_symbol": true, "diagnostics": true + }, + "command_aliases": { + "q": "pane: close all items" } } diff --git a/chezmoi/dot_config/zsh/functions/functions.zsh b/chezmoi/dot_config/zsh/functions/functions.zsh index d971d4f..425aa0c 100644 --- a/chezmoi/dot_config/zsh/functions/functions.zsh +++ b/chezmoi/dot_config/zsh/functions/functions.zsh @@ -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" } -## 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 profzsh() { shell=${1-$SHELL}