Closed Jiogo18 closed 4 months ago
Platform Arch Linux Terminal software Konsole with nushell
Completion results can be shifted when a file/folder contains accents or emojis in nushell.
"file0a".into(), "file0b".into(), "file0é".into(), "file1a".into(), "file1é".into(), "file2a".into(), "file2éééééééé".into(), "file3a".into(),
cargo run --example completions
f[TAB]
touch file0a file0b file0é file1a file1📁 file2a file2📁📁📁📁📁 file3a
./[TAB]
ls [TAB]
Changing .len() to .width() fix this https://github.com/nushell/reedline/blob/a580ea56d4e5a889468b2969d2a1534379504ab6/src/menu/columnar_menu.rs#L657
.len()
.width()
Other .len() call could be replaced by .width() in this file:
Platform Arch Linux Terminal software Konsole with nushell
Completion results can be shifted when a file/folder contains accents or emojis in nushell.
Steps to reproduce
With reedline
cargo run --example completions
f[TAB]
With nushell
touch file0a file0b file0é file1a file1📁 file2a file2📁📁📁📁📁 file3a
./[TAB]
(if it doesn't work, usels [TAB]
or similar)Screenshots/Screencaptures
Additional context
Changing
.len()
to.width()
fix this https://github.com/nushell/reedline/blob/a580ea56d4e5a889468b2969d2a1534379504ab6/src/menu/columnar_menu.rs#L657Other
.len()
call could be replaced by.width()
in this file: