Open a non-existed file from a command line issue
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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