Skip to content
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

fish prepends back slash when using tilde while autocompleting an escape character #9073

Closed
xEgoist opened this issue Jul 15, 2022 · 1 comment
Labels
bug Something that's not working as intended
Milestone

Comments

@xEgoist
Copy link

xEgoist commented Jul 15, 2022

Environment

  • fish --version
    fish, version 3.5.0

  • uname -a
    Darwin Egoist 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64

  • $TERM
    xterm-256color
    Also happens with Alacritty, Kitty, Terminal.app

  • Issue also affects fish without third party customization

Issue

I believe this is similar, yet an edge case of #4570 .

the backslash bug only occurs when autocompleting something that require escaping without the user escaping it themselves.

to reproduce, run the following commands:

mkdir ~/fish_bug
cd ~/fish_bug
touch '[Hello]World.txt'
vim ~/fish_bug/[ **Tab**           <--- Notice that I deliberately did not escape the bracket.

result: vim \~/fish_bug/[Hello]\ World.txt

expected result: vim ~/fish_bug/[Hello]\ World.txt

@krobelus krobelus added the bug Something that's not working as intended label Jul 16, 2022
@krobelus krobelus added this to the fish 3.6.0 milestone Jul 16, 2022
@krobelus
Copy link
Member

should have put the "fixes" line in the commit message to autoclose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that's not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants