summaryrefslogtreecommitdiffstatshomepage
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/keybindings.zsh12
1 files changed, 10 insertions, 2 deletions
diff --git a/zsh/keybindings.zsh b/zsh/keybindings.zsh
index 7eef985..df70112 100644
--- a/zsh/keybindings.zsh
+++ b/zsh/keybindings.zsh
@@ -103,7 +103,15 @@ for key kcap seq mode widget (
bindkey '^ ' autosuggest-accept
bindkey '^[[Z' reverse-menu-complete
-bindkey -s ^f "tmux-sessionizer\n"
+
+sessionizer () {
+ tmux-sessionizer
+ zle redisplay
+}
+
+zle -N sessionizer
+bindkey '^F' sessionizer
+# bindkey -s ^f "tmux-sessionizer\n"
# register ctrl+c as interupt
function ctrl_c_intr() {
@@ -120,4 +128,4 @@ autoload -Uz add-zsh-hook || return
# register the functions as hooks
add-zsh-hook preexec ctrl_c_intr
-add-zsh-hook precmd ctrl_y_intr \ No newline at end of file
+add-zsh-hook precmd ctrl_y_intr