Skip to content

MDeX-1.3.4

Choose a tag to compare

@fwzheng fwzheng released this 18 Jul 05:55
6f83680

调整 / Changed

  • 底部状态栏改为显示当前文件的绝对路径:原状态栏左侧的「行 / 词 / 字符」计数改为显示当前打开文件的绝对路径(草稿未存盘时退化为文件名 / 未命名),长路径自动省略、悬停可看完整路径;切换
    标签、首存、另存为后即时刷新。
    Bottom status bar now shows the current file's absolute path: The "lines / words / characters" counts on the left of the status bar are replaced with the absolute path of the open file (drafts fall back to the filename / "Untitled"); long paths are ellipsized with the full path on hover, and refresh instantly on tab switch / first save / save-as.
  • 编辑区右上字数单位「字」改为「词」:编辑区右上角的实时计数由「N 字」改为「N 词」,与底部统计口径一致。
    Editor word-count unit "字" → "词": The live counter at the editor's top-right now reads "N 词" (words) instead of "N 字" (characters), matching the bottom-bar wording.
  • 精简预览区状态标识:移除预览区右上角的「已渲染」状态指示、右下角的「UTF-8 · Markdown」编码标识,减少视觉干扰。
    Trimmed preview-area status labels: Removed the "Rendered" indicator at the preview's top-right and the "UTF-8 · Markdown" encoding label at its bottom-right for less visual clutter.

修复 / Fixes

  • 编辑模式下底部状态栏的文件路径不刷新:仅编辑模式(隐藏预览窗格)下打开/切换文件,底部状
    态栏的文件绝对路径不显示(只停留在文件名或旧值)。根因是删除「已渲染」状态指示 <span id="rs"> 时漏删了 render() 编辑模式分支里的一处 $("rs") 赋值,$("rs") 返回 null 抛 TypeError 中断了渲染流程(BUG-081)。已清理该残留,并在切换标签时立即刷新状态栏。
    Status-bar file path didn't refresh in editor-only mode: With the preview pane hidden, opening/switching files left the bottom status bar stuck on the filename or a stale value instead of the absolute path. Root cause: a leftover $("rs") assignment in render()'s editor-mode branch (the element had been removed) threw a TypeError that aborted rendering (BUG-081). The reference is now removed and the status bar refreshes immediately on tab switch.
  • 菜单「另存为」后底部状态栏路径不刷新:通过菜单「另存为」把文档(含内置 MDeX 示例)存到某目录(如 Downloads)后,底部状态栏仍显示文件名而非新的完整路径。根因是 saveAs 函数设置了文件路径却未刷新状态栏(BUG-082)。已修复。
    Status-bar path didn't refresh after "Save As": Saving a document (incl. the built-in MDeX sample) via the menu "Save As" left the status bar showing the filename instead of the new absolute path. The saveAs function set the path but didn't refresh the status bar (BUG-082). Fixed.