Repository navigation
MarkdownAura v1.4.2
MarkdownAura 1.4.2
Live reload works when the app was started from the command line with a relative path. It was
silently dead there: the file watcher reports absolute paths, while a tab opened through argv
kept the relative one, and the two never compared equal — so an edit made in another program did not
reach the preview, and a file deleted under such a tab was never struck through as missing. Opening a
folder from the dialog, or passing an absolute path, was unaffected, which is why it took a report to
find. Paths are now resolved to absolute the moment the app adopts them — the command line, a second
launch forwarded to the running window, and the folder the explorer opens — so the tree, the tabs and
the watcher all speak one form. A session saved by an earlier version is migrated on read, including the
duplicate tab that the old spelling could leave behind for a file opened both ways.
Nothing else changes: this release is the fix, a regression test for it, and the design notes that say
why the resolution happens where it does.
从命令行用相对路径启动时,实时重载现在是有效的。 此前它在那里静默失效:文件监视器报告的是
绝对路径,而从 argv 打开的那个标签页保留的是相对路径,两者永远比较不相等——于是别的程序里改
了文件,预览不更新;在该标签下把文件删掉,也不会被划成 missing。从对话框打开文件夹、或传绝对路径都不
受影响,所以这个问题一直要等到有人报告才被发现。现在应用采纳路径的那一刻就把它解析成绝对路径——
命令行、转发给已打开窗口的第二次启动、以及资源管理器打开的那个文件夹——于是文件树、标签页与监视器
说的是同一种形态。旧版本存下的会话会在读取时迁移,包括"同一文件被两种写法各开一次"留下的重复标签。
除此之外没有别的改动:本次就是这个修复、它的一条回归测试,以及说明"为什么解析放在那一处"的设计说明。