Skip to content

Backslashes show up in autocomplete output on fedora #211

New issue

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

Open
MasterOdin opened this issue Apr 27, 2023 · 5 comments
Open

Backslashes show up in autocomplete output on fedora #211

MasterOdin opened this issue Apr 27, 2023 · 5 comments

Comments

@MasterOdin
Copy link
Collaborator

Hello, I'm not sure if this is the right place to report, but I'm currently experiencing problems with auto-completion after installing it via dnf install tldr, it is placing backslashes behind every space, which is trashing the completion into a single line of items.

tldr --update_cache
# tldr[TAB] adds one space normally
# tldr[TAB][TAB] shows every package available in a single line as if there was one completion option
tldr \ \ pacman\ query\ \ \ \ insmod\ \ \ \ st\ \ \ \ cockpit\ ws\ \ \ \ ntfsfix\ \ \ \ distrobox\ host\ exec\ \ \ \ ostree\ \ \ \ timeshift\ \ \ \ pamac\ \ \ \ uuid\ \ \ \ ip\ route\ list\ \ \ \ a2query\ \ \ \ daemon\ \ \ \ pw\ play\ \ \ \ mkinitcpio\ \ \ \ id3v2\ \ \ \ at\ \ \ \ ego\ \ \ \ sacctmgr\ \ \ \ smbclient\ \ \ \ sar\ \ \ \ toolbox\ init\ container\ \ \ \ pmount\ \ \ \ nmcli

System information:

  • tldr 3.1.0 (Client Specification 1.5)
  • Fedora 38 (6.2.12-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC)
  • Bash version 5.2.15(1)-release (x86_64-redhat-linux-gnu)

Originally posted by @jrom99 in #69 (comment)

@nukemiko
Copy link

Reproducted this problem with: Arch Linux, tldr-3.2.0-1, bash-5.2.026-2

@Managor
Copy link
Contributor

Managor commented May 2, 2025

Can confirm that this is an issue still on the latest version. This is what I get for tab completing rsync
$ tldr rsync\ \ en\

@frenzymadness
Copy link
Contributor

I'm the maintainer of the tldr package in Fedora, so if there is anything wrong with how it's packaged into the OS, let me know, and I can fix it. The build process is described in https://src.fedoraproject.org/rpms/tldr/blob/rawhide/f/tldr.spec, but some parts are cryptic if you are not familiar with packaging.

I'm using Fedora 42, tldr 3.4.0 installed from Fedora repositories, and zsh and completions work only for cached commands. When I cleared the cache, the completion did not offer all possible commands.

@Managor
Copy link
Contributor

Managor commented May 5, 2025

I get the same issue on Arch so it's probably not a packaging issue. Most likely there is a problem with the completion script

@Managor
Copy link
Contributor

Managor commented May 5, 2025

Oh I see. Run tldr --list and the issue is kind of the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants