Comment on page
Open Markdown files in your terminal and run commands.
There are three ways to view a Markdown file in Warp:
For any link to a Markdown file within a block, you can open the file in Warp by
CMD-clicking on the link, from the link tooltip, or from the right-click context menu on the link.
Opening a Markdown file in Warp using the link tooltip
If you run a Markdown-viewing command like
cat myfile.md, Warp will show a banner with a button to open the Markdown file.
The following commands are considered Markdown viewers:
From Finder, you can open a Markdown file in Warp from the “Open With” menu that appears when right-clicking on the file.
Warp can run shell commands from Markdown code blocks in your active terminal session. Click the run icon (
>_) to insert a command into the terminal input.
The shell command must be in a code block with three backticks (```) and not inline code in order for Warp to treat the code like a runnable command.
Markdown shell blocks also support keyboard navigation. There are two ways to enter the keyboard navigation mode:
- Clicking on a shell block.
Once a shell block is selected, press
CMD_ENTERto insert it into the terminal input. You can also use
CMD-DOWNto navigate between shell blocks. While the Markdown file is focused, press
CMD-Lto switch focus back to the terminal without inserting a command.
Navigating between and running commands in a Markdown file
In addition, all shell and code blocks have a copy button to quickly copy the block’s text to the clipboard.
Code blocks without a set language, or one of the following languages, are treated as shell commands: