zsh-users
 help / color / mirror / code / Atom feed
From: Ville Viitaharju <racle@lonke.ro>
To: zsh-users@zsh.org
Subject: Autocomplete doesn't work correctly on certain folder names
Date: Thu, 20 Apr 2023 15:08:50 +0300	[thread overview]
Message-ID: <CAEQc7iXik1WSQYt3XzSkRugwo6HOLifX7rzTWbBXXoc4bFCsxQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]

Steps to reproduce

    Install zsh and ohmyzsh
    run mkdir my-longfoldername-firstname  you-longfoldername-secondname
    type cd long<tab><tab>
    terminal shows "cd O-longfoldername- " instead of trying to
autocomplete.

Expected behavior

It should autocomplete like it would in case of:

    Install ohmyzsh
    run mkdir my-dir-2  your-dir-1
    type cd dir<tab><tab>
    autocomplete works as intended

How to reproduce with docker:

Create Dockerfile:

FROM ubuntu:23.04
RUN apt-get update && apt-get install -y zsh curl git
RUN sh -c "$(curl -fsSL
https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
RUN mkdir my-longfoldername-firstname  you-longfoldername-secondname
CMD zsh


Build with: docker build -t zsh-test .
Run with: docker run -ti zsh-test

cd long<tab> will produce the error while cd fold<tab><tab> works.
cd old<tab> produces another error (cd F-longfoldername-), so 0- isn't
always first character


It seems that this doesn't happen on archlinux or macOS.
POP_OS/Ubuntu seems to be affected, so this seems to be an OS dependent
issue.

Issue tested in zsh 5.8.1 and 5.9 + latest ohmyzsh

More info/discussion here: https://github.com/ohmyzsh/ohmyzsh/issues/11621

[-- Attachment #2: Type: text/html, Size: 1684 bytes --]

             reply	other threads:[~2023-04-20 12:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-20 12:08 Ville Viitaharju [this message]
2023-04-20 12:13 ` Roman Perepelitsa
2023-04-20 12:55   ` Ville Viitaharju
2023-04-20 13:05     ` Roman Perepelitsa
2023-04-20 13:42       ` Ville Viitaharju

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEQc7iXik1WSQYt3XzSkRugwo6HOLifX7rzTWbBXXoc4bFCsxQ@mail.gmail.com \
    --to=racle@lonke.ro \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).