about summary refs log tree commit diff stats
path: root/hm/soispha/conf/zsh/config/custom_cursor.sh
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-20 15:38:30 +0100
committerSoispha <soispha@vhack.eu>2024-02-20 15:50:32 +0100
commit1f56d6d1f4292c807b470b753fece696a2582e7e (patch)
treef0f8647699195494cc5cd89f0d80a6c9b187e66d /hm/soispha/conf/zsh/config/custom_cursor.sh
parentbuild(flake): Add treefmt (diff)
downloadnixos-config-1f56d6d1f4292c807b470b753fece696a2582e7e.zip
refactor(hm/conf/zsh/config): Rework old config scripts
Diffstat (limited to 'hm/soispha/conf/zsh/config/custom_cursor.sh')
-rw-r--r--hm/soispha/conf/zsh/config/custom_cursor.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/hm/soispha/conf/zsh/config/custom_cursor.sh b/hm/soispha/conf/zsh/config/custom_cursor.sh
deleted file mode 100644
index 9a6da012..00000000
--- a/hm/soispha/conf/zsh/config/custom_cursor.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-# Change cursor shape for different vi modes.
-function zle-keymap-select {
-  if [[ ${KEYMAP} == vicmd ]] ||
-     [[ $1 = 'block' ]]; then
-    echo -ne '\e[1 q'
-  elif [[ ${KEYMAP} == main ]] ||
-       [[ ${KEYMAP} == viins ]] ||
-       [[ ${KEYMAP} = '' ]] ||
-       [[ $1 = 'beam' ]]; then
-    echo -ne '\e[5 q'
-  fi
-}
-zle -N zle-keymap-select
-
-# ci", ci', ci`, di", etc
-autoload -U select-quoted
-zle -N select-quoted
-for m in visual viopp; do
-  for c in {a,i}{\',\",\`}; do
-    bindkey -M $m $c select-quoted
-  done
-done
-
-# ci{, ci(, ci<, di{, etc
-autoload -U select-bracketed
-zle -N select-bracketed
-for m in visual viopp; do
-  for c in {a,i}${(s..)^:-'()[]{}<>bB'}; do
-    bindkey -M $m $c select-bracketed
-  done
-done
-
-zle-line-init() {
-    zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere)
-    echo -ne "\e[5 q"
-}
-zle -N zle-line-init
-
-echo -ne '\e[5 q' # Use beam shape cursor on startup.
-precmd() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.