Permalink
Browse files

added correct keybindings/removed fishshell script

  • Loading branch information...
1 parent 75b82ae commit f47494d8fcf636e083ad116c2136fcc02d2d2131 @graysky2 committed Jan 23, 2013
Showing with 10 additions and 683 deletions.
  1. +1 −1 dotfiles/.ncmpcpp/config
  2. +9 −0 shell/.zsh/lib/key-bindings.zsh
  3. +0 −40 shell/.zsh/lib/keys.zsh
  4. +0 −642 shell/.zsh/lib/substring-search.zsh
View
@@ -4,7 +4,7 @@
####################################################
mpd_host = "10.1.2.100"
-
+mpd_music_dir = "/mnt/data/music/genre"
user_interface = "alternative" (classic/alternative)
song_columns_list_format = "(22)[blue]{a} (7)[green]{n} (30)[white]{t} (29)[cyan]{b} (5)[blue]{y} (7)[white]{l}"
playlist_disable_highlight_delay = "0"
@@ -27,3 +27,12 @@ bindkey '^?' backward-delete-char
bindkey "^[[3~" delete-char
bindkey "^[3;5~" delete-char
bindkey "\e[3~" delete-char
+
+autoload -Uz up-line-or-beginning-search
+zle -N up-line-or-beginning-search
+autoload -Uz down-line-or-beginning-search
+zle -N down-line-or-beginning-search
+bindkey '\eOA' up-line-or-beginning-search
+bindkey '\e[A' up-line-or-beginning-search
+bindkey '\eOB' down-line-or-beginning-search
+bindkey '\e[B' down-line-or-beginning-search
View
@@ -1,40 +0,0 @@
-autoload up-line-or-beginning-search
-autoload down-line-or-beginning-search
-zle -N up-line-or-beginning-search
-zle -N down-line-or-beginning-search
-
-bindkey -v # set vim bindings
-# http://zshwiki.org/home/zle/bindkeys
-
-typeset -A key
-
-key[Home]=${terminfo[khome]}
-key[End]=${terminfo[kend]}
-key[Insert]=${terminfo[kich1]}
-key[Delete]=${terminfo[kdch1]}
-key[Up]=${terminfo[kcuu1]}
-key[Down]=${terminfo[kcud1]}
-key[Left]=${terminfo[kcub1]}
-key[Right]=${terminfo[kcuf1]}
-key[PageUp]=${terminfo[kpp]}
-key[PageDown]=${terminfo[knp]}
-key[Enter]=${terminfo[kent]}
-
-# setup key accordingly
-[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line
-[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line
-[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
-[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char
-[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-beginning-search
-[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-beginning-search
-[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
-[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
-[[ -n "${key[Enter]}" ]] && bindkey "${key[Enter]}" enter
-
-# Finally, make sure the terminal is in application mode, when zle is
-# active. Only then are the values from $terminfo valid.
-zle-line-init () { echoti smkx }
-zle-line-finish () { echoti rmkx }
-
-zle -N zle-line-init
-zle -N zle-line-finish
Oops, something went wrong.

0 comments on commit f47494d

Please sign in to comment.