zsh-users
 help / color / mirror / code / Atom feed
* Autocomplete doesn't work correctly on certain folder names
@ 2023-04-20 12:08 Ville Viitaharju
  2023-04-20 12:13 ` Roman Perepelitsa
  0 siblings, 1 reply; 5+ messages in thread
From: Ville Viitaharju @ 2023-04-20 12:08 UTC (permalink / raw)
  To: zsh-users

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-20 13:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-20 12:08 Autocomplete doesn't work correctly on certain folder names Ville Viitaharju
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

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).