zhuzhuyule / HexoEditor

this markdown Editor for hexo blog
GNU General Public License v3.0
1.22k stars 151 forks source link

一个 bug 与一个建议 #39

Closed Macr0phag3 closed 5 years ago

Macr0phag3 commented 6 years ago
  1. 均为使用最新版HexoEditor
  2. 已经阅读过 ReadMe 以及 Closed issues.

你好, 前几天使用了 hexoeditor, 这是一个很棒的编辑器, 各方面都符合我的需求. 使用过程中遇到一个 bug 以及希望向你提出的一个建议:

一个 bug: Mac 下的hexo 联动模块需使用 hexo 命令:

image

但是在 mac 似乎有点问题, 会一直卡在这里不动: image

查看 log 发现如下错误: image

但是, 无论是我的默认终端使用的 zsh 还是系统自带的原生sh, 均可以使用 hexo: image image

希望作者能帮我看看是哪个地方出了问题.

一个建议: 作为一个优秀的 md 编辑文件, 同步滚动必不可少, hexoeditor有, 但是每次启动都需要重新勾选: image

希望作者能把它加入到配置中去

以上, 再次感谢如此优秀的编辑器. 👍

zhuzhuyule commented 6 years ago

get 等这阵子忙完,就开始研究。 感谢支持。

josonchou commented 5 years ago

@zhuzhuyule 这个bug是electron build后环境变量有问题,我的解决方案是重写掉PATH:

// in index.js
// on darwin, to rewrite path
// shell-env => https://github.com/sindresorhus/shell-env
if (process.platform === "darwin") {
    const shellEnvs = require('shell-env').sync()
    process.env.PATH = shellEnvs.PATH;
}