gh0stzk / dotfiles

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

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

Closed NavatejR closed 4 months ago

NavatejR commented 4 months 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 4 months ago

Hello, is in kitty or alacritty?

gh0stzk commented 4 months 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 4 months ago

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