Text styling for output (ANSI code) #328
Replies: 3 comments 5 replies
-
This is now released, but still lacks documentation. |
Beta Was this translation helpful? Give feedback.
-
Hi @OMSmolina, I'm using this discussion to reply to your comment in issue 329
Yeah, the Ask after execution modal is actually lagging behind as I didn't notice to pay enough attention to it when developing the ANSI code support. That said, at least the output is still correct. If you click for example the Current file: bottom button in the modal, the outputted content with the HTML formatting will show up correctly in a currently open note file. A way to solve this would be to make the Ask after execution modal to have a read-only mode, which would show HTML formatting correctly. |
Beta Was this translation helpful? Give feedback.
-
Ability to remove ANSI code
A great idea! I'll plan this for |
Beta Was this translation helpful? Give feedback.
-
Sometimes shell command output might contain control characters that define colors and/or font style (e.g. bold, italic) for parts of the outputted text. This is called ANSI code.
So far, the Shell command plugin has displayed the any possibly outputted ANSI code texts as-is. I.e. the plugin has had no knowledge of it. It has resulted in the following hard to read output messages:
Example shell command:
git -c color.ui=always status
(shows Git version control status, with color-coding enabled)Original, ugly output:
Output after converting ANSI code to HTML:
Beta Was this translation helpful? Give feedback.
All reactions