biome icon indicating copy to clipboard operation
biome copied to clipboard

šŸ› Copying from the output in terminal and pasting elsewhere gives weird character for space symbol

Open jpike88 opened this issue 2 years ago • 2 comments

Environment information

biome 1.2.2

What happened?

Just pasting in here creates a similar issue:

   import MobileDetect from 'mobile-detect';
    220     │ - importĀ·{Ā·NgxStripeModuleĀ·}Ā·fromĀ·'ngx-stripe';
    221     │ - importĀ·{Ā·EventDataPayloadĀ·}Ā·fromĀ·'@shared/models/Event';
        221 │ + importĀ·{Ā·NgxStripeModuleĀ·}Ā·fromĀ·'ngx-stripe';

These weird dot characters make it hard to easily copy and paste snippets from error output.

Expected result

normal space characters

Code of Conduct

  • [X] I agree to follow Biome's Code of Conduct

jpike88 avatar Sep 29 '23 07:09 jpike88

What's your use case specifically?

Because this is intended, it's not a bug. We use centered dots to show the addition of spaces, which are different from tabs. This is really useful when we emit diff diagnostics coming from the formatter.

ematipico avatar Sep 29 '23 08:09 ematipico

I may just copy from the terminal into vscode search to easily hone in on the problem error, that's all.

jpike88 avatar Sep 29 '23 08:09 jpike88

I don't think this is our goal for now. Closing.

ematipico avatar Jan 04 '24 12:01 ematipico