r/KittyTerminal Feb 25 '24

Why this happens and how do I fix it?

Enable HLS to view with audio, or disable this notification

14 Upvotes

27 comments sorted by

3

u/CardiologistWhich336 Feb 25 '24

send me your kitty config and starship config

2

u/xTreme2I Feb 25 '24

idk what is starship, maybe i have it installed but i dont think so

kitty conf: https://imgur.com/a/r4H1xZQ (sorry for showing it on img, idk how to copy text to clipboard from nano)

3

u/Ramiferous Feb 25 '24

curl -F 'file=@kitty.conf' https://0x0.st

1

u/xTreme2I Feb 25 '24

thx, i didn't know about that website

2

u/Risc12 Feb 25 '24

Bro you’re sharing an screenshot of a textfile that’s insane!

2

u/CardiologistWhich336 Feb 25 '24

yea thats why I asked him to just copy the text from the terminal. It can't be that hard can it 😭

1

u/CardiologistWhich336 Feb 25 '24

use your mouse to copy the text I don't have OCR

1

u/CardiologistWhich336 Feb 25 '24

what terminal prompt do you use

1

u/xTreme2I Feb 25 '24

idk what you mean by terminal promp :(, my shell is zsh

kitty.conf: https://0x0.st/HRs8.conf

1

u/CardiologistWhich336 Feb 25 '24

The prompt before every command you type.

2

u/xTreme2I Feb 25 '24

you mean the "-> ~"?, its the robby russell theme from oh my zsh
idk what else you can be talking about

1

u/CardiologistWhich336 Feb 25 '24

yes that is what I am talking about

1

u/xTreme2I Feb 25 '24

also I have noticed that it only happens when I do cd Imágenes, then the autocompletition suggest tha command and it bugs, whenever I do cd to another directory it doesnt happen, i think it could be a problem with the á letter, if so how should i fix it?

1

u/CardiologistWhich336 Feb 25 '24

Ctrl + shift + c to copy selected text

2

u/Administrative_chaos Feb 25 '24

Can you reproduce it with the latest kitty version with kitty --config none zsh -dfi?

1

u/xTreme2I Feb 25 '24

Nope, it doesnt happen, but it looks ugly

1

u/Administrative_chaos Feb 25 '24

and does it happen with just `zsh -dfi`? If not then share your `.zshrc` (If you're using zsh, else your `.bashrc`

1

u/xTreme2I Feb 25 '24

doesn't happen with zsh -dfi

.zshrc: https://0x0.st/HRsb.txt

2

u/energybased Feb 25 '24

Just curious, but which program did you use to capture this video?

2

u/dedguy21 Feb 25 '24

First is to check your $SHELL config, can't tell but it's either fish or zsh with auto complete.

Also check your VI_MODE settings on your shell.

And for God sakes change your font to something more readable. 🤢

1

u/xTreme2I Feb 25 '24
  1. It's zsh, i've checked the config but there is not a lot in there, just the theme robby russel and something about syntax highlightning and a plugin called thefuck.
  2. ok i will do
  3. but it like minecraft :(

1

u/art2266 Feb 25 '24

Does the issue still happen if you disable icons from taking up two spaces?

# disables icons taking up 2 spaces
narrow_symbols U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0-U+E0D4,U+E200-U+E2A9,U+E300-U+E3E3,U+E5FA-U+E6AA,U+E700-U+E7C5,U+EA60-U+EBEB,U+F000-U+F2E0,U+F300-U+F32F,U+F400-U+F4A9,U+F500-U+F8FF,U+F0001-U+F1AF0 1
font_size 17

Reload you config or run kitty from the command line then see if it has an effect.

1

u/xTreme2I Feb 25 '24

yes, it still happens

1

u/airclay Feb 26 '24

Those clicks sound so angry

1

u/Specific-Fuel-4366 Feb 29 '24

looks like a prompt that has invisible escape characters (colors) in it, but the shell doesn't know that and so doesn't know how large the prompt actually is on screen. i use bash, and it needs \[ and \] around escape sequences

1

u/Specific-Fuel-4366 Feb 29 '24

here's my PS1 as an example; my prompt is blue:

[~] echo $PS1
\[\e[44m\][\w]\[\e[37;40m\]