Compare commits

...

3 Commits

Author SHA1 Message Date
David
5a0257e9c3
Merge b3bf0f394f into 9626ce2beb 2024-12-12 10:03:03 +07:00
msdx321
9626ce2beb Add exception for VSCode env helper
Signed-off-by: msdx321 <msdx321@gmail.com>
2024-12-12 07:47:13 +05:30
David Mohl
b3bf0f394f added option to remap escape key 2015-09-04 15:29:04 +09:00
3 changed files with 11 additions and 1 deletions

View File

@ -322,6 +322,13 @@ bindkey -M vicmd "u" undo
bindkey -M viins "$key_info[Control]_" undo bindkey -M viins "$key_info[Control]_" undo
bindkey -M vicmd "$key_info[Control]R" redo bindkey -M vicmd "$key_info[Control]R" redo
# Allow remapping of command-mode key
zstyle -s ':prezto:module:editor' escape-remap 'escape_remap'
if [[ ! -z "$escape_remap" ]]; then
bindkey -M viins "$escape_remap" vi-cmd-mode
fi
if (( $+widgets[history-incremental-pattern-search-backward] )); then if (( $+widgets[history-incremental-pattern-search-backward] )); then
bindkey -M vicmd "?" history-incremental-pattern-search-backward bindkey -M vicmd "?" history-incremental-pattern-search-backward
bindkey -M vicmd "/" history-incremental-pattern-search-forward bindkey -M vicmd "/" history-incremental-pattern-search-forward

View File

@ -23,7 +23,7 @@ if ([[ "$TERM_PROGRAM" = 'iTerm.app' ]] && \
_tmux_iterm_integration='-CC' _tmux_iterm_integration='-CC'
fi fi
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && "$TERM_PROGRAM" != "vscode" && "$TERMINAL_EMULATOR" != "JetBrains-JediTerm" ]] && ( \ if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && -z "$VSCODE_RESOLVING_ENVIRONMENT" && "$TERM_PROGRAM" != "vscode" && "$TERMINAL_EMULATOR" != "JetBrains-JediTerm" ]] && ( \
( [[ -n "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' remote ) || ( [[ -n "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' remote ) ||
( [[ -z "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' local ) \ ( [[ -z "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' local ) \
); then ); then

View File

@ -66,6 +66,9 @@ zstyle ':prezto:load' pmodule \
# Set the key mapping style to 'emacs' or 'vi'. # Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'emacs' zstyle ':prezto:module:editor' key-bindings 'emacs'
# If you prefer to have a different Escape key in 'vi' mode
# zstyle ':prezto:module:editor' escape-remap 'jk'
# Auto convert .... to ../.. # Auto convert .... to ../..
# zstyle ':prezto:module:editor' dot-expansion 'yes' # zstyle ':prezto:module:editor' dot-expansion 'yes'