Indentation with tab characters in complete for fish shell - Why? #6418
|
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? |
Replies: 1 comment 1 reply
|
Clap in general used more tabs previously. We've moved away from a lot of them and this is just likely a cosmetic oversight. |
Clap in general used more tabs previously. We've moved away from a lot of them and this is just likely a cosmetic oversight.