Obsidian-Code-Styler icon indicating copy to clipboard operation
Obsidian-Code-Styler copied to clipboard

Feature Request: Terminal Appearance

Open mayurankv opened this issue 1 year ago • 14 comments

Summary

Add a terminal parameter and terminal codebloc processor. The terminal parameter should make the codeblock appear as if it were a terminal The terminal codeblock should allow for indicating what the command was and what the output was and otherwise render it as a shellscript codeblock

For the terminal codeblock you should be able to:

  • Choose the output character i.e. $ or > etc.
  • Set user, directory, device etc.
  • Make runnable using execute code plugin
  • Make terminal codeblock use terminal parameter appearance

Basic example

```terminal
> command_1\
command_2
output_1
output_2
output_3
```

and

```bash terminal
bash script
```

These should both be styled as terminals.

Motivation

Nice styling for terminal code.

Existing Requests?

No existing requests.

mayurankv avatar Jul 08 '23 11:07 mayurankv