marktext / marktext/marktext

Open a non-existed file from a command line issue

Open
#2,143 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:unicorn: feature request
Dominant language
TypeScript
Stars
61.6k
Forks
4.6k
Avg merge
23h 49m
Merged PRs (30d)
89

Description

When I execute marktext foo.md and foo.md is not existed.

Case 1: when there is no running marktext instance

What I expect: marktext should be launched with titled foo.md. Then I can simply use Ctrl+S to save the file as the name foo.md.

Current behavior: marktext will launch with Untitled title.

Case 2: when there is a running marktext instance

What I expect: marktext should open a new tab with the title name foo.md.

Current behavior: marktext doesn't do anything.

Thanks a lot.

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

Start by tracing how the Electron app handles the marktext foo.md command and forwards it when another instance is running. Verify both cases in the issue: a missing file opens with foo.md as its title, and an already-running instance creates a new tab with that title.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
cli, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.