We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The beginning of the prompt is messed up if there are emojis in the prompt line
Run mkdir "dirname containing emoji (🐛)"; cd dir*
mkdir "dirname containing emoji (🐛)"; cd dir*
The first character of the prompt does not change
fish, version 3.2.1 tide, version 4.3.2 xterm-256color
This is really annoying if you try to put colored emojis in your item. i.e.
The text was updated successfully, but these errors were encountered:
The ellipsis vanishes when resizing the window, but it is displayed again when entering commands.
Sorry, something went wrong.
The problem is that I've been using string length as a proxy for string width.
string length
@faho Could you help me out?
function foo -a char set -l stringLength (string length "$char") echo $stringLength printf '%s' $char string repeat --max (math $COLUMNS - $stringLength) - end
Is there any way to have string length use the values of fish_emoji_width/fish_ambiguous_width? Or otherwise calculate the width of a string?
fish_emoji_width
fish_ambiguous_width
No. It's length, not width. fish-shell/fish-shell#4012 asks for a string width subcommand.
string width
Use visible string length (fixes #134)
fb0c245
0fd8055
b9fda6b
No branches or pull requests
Describe the bug
The beginning of the prompt is messed up if there are emojis in the prompt line
Steps to reproduce
Run
mkdir "dirname containing emoji (🐛)"; cd dir*
Expected behavior
The first character of the prompt does not change
Screenshots
Environments
Additional context
This is really annoying if you try to put colored emojis in your item. i.e.
The text was updated successfully, but these errors were encountered: