创建“Edit”链接,这些链接可在原生应用中打开纯文本源文件

The setup for my notes blog looks like this:

我的笔记博客的设置看起来像这样

  • Content is plain-text markdown files (synced via Dropbox, editable in iA Writer on my Mac, iPad, or iPhone)
  • 内容是纯文本 markdown 文件(通过 Dropbox 同步,在我的 Mac、iPad 或 iPhone 上使用 iA Writer 编辑)
  • Codebase is on GitHub
  • 代码库在 GitHub 上
  • Builds are triggered in Netlify by a Shortcut
  • Builds 通过 Shortcut 在 Netlify 中触发

I try to catch spelling issues and what not before I publish, but I’m not perfect.

我在发布前尽量捕捉拼写问题之类的,但我不完美。

I can proofread a draft as much as I want, but nothing helps me catch errors better than hitting publish and re-reading what I just published on my website.

我可以尽情校对草稿,但没有什么比点击发布并重新阅读我刚刚在网站上发布的内容更能帮助我捕捉错误了。

If that fails, kind readers will often reach out and say “Hey, I found a typo in your post [link].”

如果那不起作用,善良的读者通常会联系我说“嘿,我在你的帖子 [link] 中发现了一个拼写错误。”

To fix these errors, I will:

为了修复这些错误,我将:

  • Open iA Writer
  • 打开 iA Writer
  • Find the post
  • 找到帖子
  • Fix typo
  • 修复拼写错误
  • Fire Shortcut to trigger a build
  • 运行 Shortcut 以触发构建
  • Refresh my website and see the updated post
  • 刷新我的网站并查看更新的帖子

However, the “Open iA Writer” and “Find the post” are points of friction I’ve wanted to optimize.

不过,“打开 iA Writer” 和 “找到帖子” 是我一直想优化的摩擦点。

I’ve found myself thinking: “When I’m reading a post on notes.jim-nielsen.com and I spot a mistake, I wish I could just click an ‘Edit’ link right there and be editing my file.”

我发现自己想着:“当我在 notes.jim-nielsen.com 上阅读一篇帖子,发现错误时,我希望能直接点击一个‘Edit’链接,就开始编辑我的文件。”

You might be thinking, “Yeah that’s what a hosted CMS does.”

你可能在想,“是的,这就是托管 CMS 做的事。”

But I like my plain-text files. And I love my native writing app.

但我喜欢我的纯文本文件。而且我热爱我的原生写作应用。

What’s one to do?

一个人能做什么呢?

Well, turns out iA Writer supports opening files via links with this protocol:

好吧,事实证明 iA Writer 支持通过链接打开文件,使用这个协议:

ia-writer://open?path=location:/path/to/file.md

So, in my case, I can create a link for each post on my website that will open the corresponding plain-text file in iA Writer, e.g.

所以,在我的情况下,我可以为网站上的每篇帖子创建一个链接,它会在 iA Writer 中打开对应的纯文本文件,例如。

<article> <a href="ia-writer://open?path=notes:2026-01-04T2023.md...
开通本站会员,查看完整译文。

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.148.4. UTC+08:00, 2026-01-24 16:14
浙ICP备14020137号-1 $访客地图$