warpdotdev / warpdotdev/warp

Expose a custom command for opening Markdown files

Open
#3,941 3 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:editor-notebooks enhancement triaged
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Discord username (optional)

Integralist

Describe the solution you'd like?

I'd like to be able to run a command like md example.md to view the example.md Markdown in Warp.

Is your feature request related to a problem? Please describe.

There are few frustrations with the feature as it exists today...

  1. If the file is long (which for me it is most of the time, i.e. the entire file won't fit on my screen), then I won't see the "View in Warp" link until I've finished scrolling the entire file.
  2. It's an extra step and I also have to reach for my mouse to click the "View in Warp" link.
  3. I have cat aliased to bat, and so I noticed (see video for context) that if you try and use /bin/cat instead, the link won't show. So I think that Warp is looking for the literal cat in the command prompt (which makes sense as the approach to take, but thought I'd mention it as I still kind of expected /bin/cat to work).
Additional context

https://github.com/warpdotdev/Warp/assets/180050/4b81be68-5c29-4421-bb24-6913fa2abe53

How important is this feature to you?

1 (Not too important)

Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is identified in the issue. Start by locating the existing Markdown “View in Warp” handling and the command-parsing entry point, then determine how a command such as md example.md should invoke it. Done means Markdown files can be opened in Warp through the requested custom command.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, rust, shell
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.