Indentation with tab characters in complete for fish shell - Why? #6418
Unanswered
BaumiCoder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I encountered that the scripts for completion in the fish shell uses tab characters for indentation. An example output is in the rust-lang/rust project. If I found the correct source file in clap_complete, the reason are tab characters in this multi line string:
clap/clap_complete/src/aot/shells/fish.rs
Line 253 in 8387c81
All code for all other shells are using 4 spaces for indentation. For example the counterpart for zsh is here:
clap/clap_complete/src/aot/shells/zsh.rs
Line 34 in 8387c81
The official fish_indent tool uses 4 spaces (tested with 4.7.1). Is there some reason for using a different kind of indentation for the fish shell in clap_complete or is it a bug?
Beta Was this translation helpful? Give feedback.
All reactions