Skip to content

Tab completion preview thrown off track by unicode filenames #155

Closed

Description

@mikaeleiman

Example:

mikaeleiman@Berit ~/temp> ls
C#.tmbundle          jlink-test           s3stats
dmtp                 libusb-0.1.12.tar.gz
dmtp_corp            namnlös mapp
mikaeleiman@Berit ~/temp> cd namnlös mapp/
mikaeleiman@Berit ~/temp> cd ammnlös mapp/

I have a dir with a name containing a multi-byte UTF8 character, "namnlös mapp". When I type "cd n", the rest of the name is auto-complete-previewed (yay!). However, instead of the insert point being on "a", as you would expect, it's been moved back to "n". So when I type the second letter of the name, it overwrites the first letter, resulting in the last line of the example.

Activity

  1. ridiculousfish commented on Jul 14, 2012

    @ridiculousfish
    Member

    Reproduces for me on OS X

  2. ridiculousfish commented on Jul 15, 2012

    @ridiculousfish
    Member

    The deeper problem is that fish has no way of representing that a zero-width character has been output, so the combining marks can get lost very easily.

    I rewrote the line representation here to add support. That should fix this.

    To [email protected]:fish-shell/fish-shell.git
    b1281c3..ea1bfd7 master -> master

  3. locked as resolved and limited conversation to collaborators on Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions