Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add command-line plugin from PrismJS #297

Closed
YoukaiYoru opened this issue Jan 5, 2025 · 2 comments
Closed

Feature Request: Add command-line plugin from PrismJS #297

YoukaiYoru opened this issue Jan 5, 2025 · 2 comments
Assignees
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@YoukaiYoru
Copy link

Feature Request: Emulate Command-Line Output in Obsidian

Summary

A feature request to include a command-line plugin that emulates terminal output within Obsidian. This would allow users to display command-line results or simulate terminal commands directly in notes.

Basic Example

The plugin would allow users to embed terminal-like output in markdown files with syntax such as:

data-user="chris" data-host="remotehost" data-output="2, 4-8"
pwd
/usr/home/chris/bin
ls -la
total 2
drwxr-xr-x 2 chris chris 11 Jan 10 16:48 .
drwxr–r-x 45 chris chris 92 Feb 14 11:10 …
-rwxr-xr-x 1 chris chris 444 Aug 25 2013 backup
-rwxr-xr-x 1 chris chris 642 Jan 17 14:42 deploy

This would render as a simulated terminal output block within the note.

Motivation

The motivation behind this feature is to allow users to document and share terminal-like outputs directly within their notes. This would be useful for:

  • Developers and system administrators who want to document command-line tasks.
  • Users who want to visually represent the output of terminal commands within Obsidian.
  • Enhancing Obsidian as a tool for technical documentation.

The expected outcome is to allow seamless integration of command-line simulations within markdown files, making it easier to document and share terminal outputs.

Existing Requests?

Currently, there are no open feature requests or pull requests specifically for emulating terminal output in Obsidian. This would be a new and useful feature to add to enhance the usability of the tool for technical documentation.

@YoukaiYoru YoukaiYoru added the enhancement New feature or request label Jan 5, 2025
@Mandeep56Singh
Copy link

It will be a huge help for dsa notes

@mayurankv mayurankv added the duplicate This issue or pull request already exists label Jan 21, 2025
@mayurankv
Copy link
Owner

So I'll take a look again, but iirc I can't just patch the prismJS syntax highlighting. Either way it would be helpful to have a link to the prism plugin so I can take a look.

This was something being considered, see #9. It would definitely be helpful to have your input there as well! I'm going to close this as a duplicate but if you feel this is a separate issue, feel free to explain why and I can reopen this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants