gh0stzk / dotfiles

BSPWM environment with 18 themes. With a theme selector to change on the fly.
GNU General Public License v3.0
2.51k stars 189 forks source link

Using basic shortcuts in terminal with zsh customization creating other characters #269

Open NavatejR opened 1 week ago

NavatejR commented 1 week ago

Shot-2024-07-06-200527

So what happens is that when I like do basic shortcuts such as Ctrl + (Left arrow) then it doesn't move the text cursor back but instead writes :5D which I don't understand how to fix, there is no specification in zshrc file either

gh0stzk commented 1 week ago

Hello, is in kitty or alacritty?

gh0stzk commented 1 week ago

i see, is kitty, i test in alacritty and text cursor go back without problem. in Kitty i got a D. You can try adding in .zshrc

# [Ctrl-RightArrow] - move forward one word
bindkey '^[[1;5C' forward-word
# [Ctrl-LeftArrow] - move backward one word
bindkey '^[[1;5D' backward-word
gh0stzk commented 1 week ago

Or in kitty https://github.com/kovidgoyal/kitty/issues/15