Fix minor things
This commit is contained in:
parent
a393229c2e
commit
f6010d35db
2 changed files with 56 additions and 55 deletions
|
|
@ -7,13 +7,14 @@ return {
|
|||
edit_with_instructions = {
|
||||
diff = false,
|
||||
keymaps = {
|
||||
close = "<C-c>",
|
||||
accept = "<C-y>",
|
||||
toggle_diff = "<C-d>",
|
||||
toggle_settings = "<C-o>",
|
||||
toggle_help = "<C-h>",
|
||||
cycle_windows = "<Tab>",
|
||||
use_output_as_input = "<C-i>",
|
||||
-- close = "<C-c>",
|
||||
-- accept = "<C-y>",
|
||||
-- toggle_diff = "<C-d>",
|
||||
-- toggle_settings = "<C-o>",
|
||||
-- toggle_help = "<C-h>",
|
||||
-- cycle_windows = "<Tab>",
|
||||
-- use_output_as_input = "<C-i>",
|
||||
submit = "<C-a>",
|
||||
},
|
||||
},
|
||||
chat = {
|
||||
|
|
@ -39,28 +40,29 @@ return {
|
|||
},
|
||||
},
|
||||
keymaps = {
|
||||
close = "<C-c>",
|
||||
yank_last = "<C-y>",
|
||||
yank_last_code = "<C-k>",
|
||||
scroll_up = "<C-u>",
|
||||
scroll_down = "<C-d>",
|
||||
new_session = "<C-n>",
|
||||
cycle_windows = "<Tab>",
|
||||
cycle_modes = "<C-f>",
|
||||
next_message = "<C-j>",
|
||||
prev_message = "<C-k>",
|
||||
select_session = "<Space>",
|
||||
rename_session = "r",
|
||||
delete_session = "d",
|
||||
draft_message = "<C-r>",
|
||||
edit_message = "e",
|
||||
delete_message = "d",
|
||||
toggle_settings = "<C-o>",
|
||||
toggle_sessions = "<C-p>",
|
||||
toggle_help = "<C-h>",
|
||||
toggle_message_role = "<C-r>",
|
||||
toggle_system_role_open = "<C-s>",
|
||||
stop_generating = "<C-x>",
|
||||
-- close = "<C-c>",
|
||||
-- yank_last = "<C-y>",
|
||||
-- yank_last_code = "<C-k>",
|
||||
-- scroll_up = "<C-u>",
|
||||
-- scroll_down = "<C-d>",
|
||||
-- new_session = "<C-n>",
|
||||
-- cycle_windows = "<Tab>",
|
||||
-- cycle_modes = "<C-f>",
|
||||
-- next_message = "<C-j>",
|
||||
-- prev_message = "<C-k>",
|
||||
-- select_session = "<Space>",
|
||||
-- rename_session = "r",
|
||||
-- delete_session = "d",
|
||||
-- draft_message = "<C-r>",
|
||||
-- edit_message = "e",
|
||||
-- delete_message = "d",
|
||||
-- toggle_settings = "<C-o>",
|
||||
-- toggle_sessions = "<C-p>",
|
||||
-- toggle_help = "<C-h>",
|
||||
-- toggle_message_role = "<C-r>",
|
||||
-- toggle_system_role_open = "<C-s>",
|
||||
-- stop_generating = "<C-x>",
|
||||
submit = "<C-a>",
|
||||
},
|
||||
},
|
||||
popup_layout = {
|
||||
|
|
|
|||
|
|
@ -1,31 +1,31 @@
|
|||
#/usr/share/fzf/shell/key-bindings.zsh/usr/share/fzf/shell/key-bindings.zsh Start mesuring bottlenecks
|
||||
# Start measuring bottlenecks
|
||||
if [[ "$ZPROF" = true ]]; then
|
||||
zmodload zsh/zprof
|
||||
zmodload zsh/zprof
|
||||
fi
|
||||
|
||||
#--------------------------------------------------------------------#
|
||||
# ZSH Config #
|
||||
#--------------------------------------------------------------------#
|
||||
|
||||
# set VIM keybindings
|
||||
# Set VIM keybindings
|
||||
bindkey -v
|
||||
export KEYTIMEOUT=1
|
||||
autoload -Uz edit-command-line
|
||||
zle -N edit-command-line
|
||||
bindkey -M vicmd V edit-command-line # edits files in vim, hit Shift+v in normal mode
|
||||
bindkey -M vicmd V edit-command-line # Edits files in vim, hit Shift+v in normal mode
|
||||
|
||||
# Add vim text objects
|
||||
autoload -Uz select-bracketed select-quoted
|
||||
zle -N select-quoted
|
||||
zle -N select-bracketed
|
||||
for km in viopp visual; do
|
||||
bindkey -M $km -- '-' vi-up-line-or-history
|
||||
for c in {a,i}${(s..)^:-\'\"\`\|,./:;=+@}; do
|
||||
bindkey -M $km $c select-quoted
|
||||
done
|
||||
for c in {a,i}${(s..)^:-'()[]{}<>bB'}; do
|
||||
bindkey -M $km $c select-bracketed
|
||||
done
|
||||
bindkey -M $km -- '-' vi-up-line-or-history
|
||||
for c in {a,i}${(s..)^:-\'\"\`\|,./:;=+@}; do
|
||||
bindkey -M $km $c select-quoted
|
||||
done
|
||||
for c in {a,i}${(s..)^:-'()[]{}<>bB'}; do
|
||||
bindkey -M $km $c select-bracketed
|
||||
done
|
||||
done
|
||||
|
||||
# History
|
||||
|
|
@ -41,7 +41,6 @@ setopt CDABLE_VARS
|
|||
setopt PUSHD_SILENT
|
||||
|
||||
# Completion
|
||||
|
||||
setopt AUTO_LIST # Automatically list choices on ambiguous completion.
|
||||
# setopt CORRECT # Turn on spelling correction for command.
|
||||
setopt COMPLETE_IN_WORD # Complete from both ends of a word.
|
||||
|
|
@ -56,7 +55,7 @@ zstyle ':completion:*:warnings' format '%F{cyan}%BSorry, no matches for: %d%b%f'
|
|||
zstyle ':completion:*' rehash true
|
||||
zstyle ':completion:*' use-cache on
|
||||
|
||||
# autocomplete: https://github.com/marlonrichert/zsh-autocomplete/blob/main/.zshrc
|
||||
# Autocomplete: https://github.com/marlonrichert/zsh-autocomplete/blob/main/.zshrc
|
||||
zstyle ':autocomplete:*' fzf-completion yes
|
||||
zstyle ':autocomplete:*' min-input 1
|
||||
zstyle ':autocomplete:*' widget-style menu-select # Tab select instead of autocomplete
|
||||
|
|
@ -87,25 +86,25 @@ setopt GLOB_DOTS
|
|||
# Start Stuff #
|
||||
#--------------------------------------------------------------------#
|
||||
|
||||
# File directory that are needed to source
|
||||
# File directories that are needed to source
|
||||
files=(
|
||||
# zsh
|
||||
$DOTS/config/zsh/**/*.zsh
|
||||
# fzf scripts that need to be sourced
|
||||
$DOTS/scripts/fzf-flatpak
|
||||
# fzf config file
|
||||
$DOOTS/config/fzf/fzfrc
|
||||
# zsh
|
||||
$DOTS/config/zsh/**/*.zsh
|
||||
# fzf scripts that need to be sourced
|
||||
$DOTS/scripts/fzf-flatpak
|
||||
# fzf config file
|
||||
$DOOTS/config/fzf/fzfrc
|
||||
)
|
||||
|
||||
for file in $files; do
|
||||
if [[ -f $file ]]; then
|
||||
emulate -L zsh
|
||||
source $file
|
||||
fi
|
||||
if [[ -f $file ]]; then
|
||||
emulate -L zsh
|
||||
source $file
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ "$ZPROF" = true ]]; then
|
||||
zprof
|
||||
zprof
|
||||
fi
|
||||
|
||||
eval "$(starship init zsh)"
|
||||
|
|
@ -113,6 +112,6 @@ eval "$(starship init zsh)"
|
|||
eval "$(zoxide init zsh)"
|
||||
eval "$(mise activate zsh)"
|
||||
|
||||
# Load syntax highlight at the end so other configuration can use it
|
||||
# Load syntax highlight at the end so other configurations can use it
|
||||
# Color scheme for syntax highlighting
|
||||
source ~/.config/zsh/themes/catppuccin_macchiato-zsh-syntax-highlighting.zsh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue