Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab on kitty/foot deletes the space after the character module #6634

Open
nullndr opened this issue Mar 18, 2025 · 4 comments
Open

Tab on kitty/foot deletes the space after the character module #6634

nullndr opened this issue Mar 18, 2025 · 4 comments
Labels
🐛 bug Something isn't working as expected.

Comments

@nullndr
Copy link

nullndr commented Mar 18, 2025

Bug Report

Current Behavior

When inserting a tab to complete the command, the space after the character module gets deleted, shifting the whole input.

Additional context/Screenshots

Image

Image

Environment

  • Starship version: starship 1.22.1
  • Shell type: zsh
  • Shell version: zsh 5.9 (x86_64-pc-linux-gnu)
  • Terminal emulator: kitty
  • Operating system: Arch Linux

Starship Configuration

"$schema" = 'https://starship.rs/config-schema.json'
[aws]
  symbol = '☁️ '
[directory]
  truncate_to_repo  = false
  truncation_symbol = "../"
[nodejs]
  disabled = false
[os]
  disabled = false
[localip]
  disabled = false
  ssh_only = false
[time]
  disabled = false
[username]
  show_always = true
@nullndr nullndr added the 🐛 bug Something isn't working as expected. label Mar 18, 2025
@davidkna
Copy link
Member

This issue is commonly caused by non-UTF-8 system locales. Please make sure that your system uses an UTF-8 locale (e.g. en_US.UTF-8), and that the locale is not commented in /etc/locale.gen.

@nullndr
Copy link
Author

nullndr commented Mar 24, 2025

@davidkna the en_US.UTF-8 is the only locale I have in my system:

...
#en_IL UTF-8
#en_IN UTF-8
#en_NG UTF-8
#en_NZ.UTF-8 UTF-8
#en_NZ ISO-8859-1
#en_PH.UTF-8 UTF-8
#en_PH ISO-8859-1
#en_SC.UTF-8 UTF-8
#en_SG.UTF-8 UTF-8
#en_SG ISO-8859-1
en_US.UTF-8 UTF-8
#en_US ISO-8859-1
#en_ZA.UTF-8 UTF-8
#en_ZA ISO-8859-1
#en_ZM UTF-8
#en_ZW.UTF-8 UTF-8
#en_ZW ISO-8859-1
#eo UTF-8
...

@nullndr
Copy link
Author

nullndr commented Mar 28, 2025

With more testings this looks like a problem related to zsh.

If I run bash inside kitty, and then eval "$(starship init bash)" then this problem does not appear.

@nullndr
Copy link
Author

nullndr commented Mar 31, 2025

I also tried with foot and the error is the same

@nullndr nullndr changed the title Tab on kitty deletes the space after the character module Tab on kitty/foot deletes the space after the character module Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

2 participants