一开始就是这样设计的。
你想要的效果已经搞出来了:Wait 300 milliseconds, if current preview file is changed, stop fetch… · emacs-eaf/eaf-file-manager@43bb2e5 · GitHub
光标移动的时候立即启动预览子线程,但是子线程不立即开始计算,而是等300毫秒,300毫秒以后如果当前选中的文件还没有发生变化就开始计算预览数据,如果当前选中的文件已经发生改变,就停止计算。
你不论按一下键,还是按着不放,预览线程都不会抢夺主线程的计算资源,最终达到丝滑的效果。
求助下各位,批量重命名功能会报如下错误,大概会是什么问题。现象是mark若干文件后,e,但是重命名buffer不会跳出来,eaf里面有这么些信息:
Property 'backgroundBrush'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'foregroundBrush'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'itemIndexMethod'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'sceneRect'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'bspTreeDepth'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'palette'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'font'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'sortCacheEnabled'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'stickyFocus'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'minimumRenderSize'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'focusOnTouch'' of object 'AppBuffer' has no notify signal and is not constant, value updates in HTML will be broken!
ERROR:epc:ReturnError([Symbol('void-function'), Symbol('string-lines')])
第一你需要 (require 'subr-x)
第二批量重命名现在不支持mark文件,是针对所有文件进行重命名
更新遇到这个问题有什么解决方法嘛
[EAF] Installing python dependencies for installed applications
[EAF] Running pip install --user pytaglib @ /home/liuyan/bin/eaf
Looking in indexes: https://mirrors.sjtug.sjtu.edu.cn/pypi/web/simple
Requirement already satisfied: pytaglib in /home/liuyan/.local/lib/python3.8/site-packages (1.4.6)
[EAF] Running npm install @ /home/liuyan/bin/eaf/app/file-manager
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npm.taobao.org/@vue/cli-plugin-eslint/-/cli-plugin-eslint-4.5.13.tgz - [not_found] document not found
npm ERR! 404
npm ERR! 404 '@vue/cli-plugin-eslint@https://registry.npm.taobao.org/@vue/cli-plugin-eslint/-/cli-plugin-eslint-4.5.13.tgz' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/liuyan/.npm/_logs/2021-08-21T04_58_55_019Z-debug.log
不要用淘宝的npm镜像,它的同步有问题,很多包都没有
确实,换回官方源之后就没问题啦
感谢回复!不过(require 'subr-x)了之后也还是一样,我尝试自己找找问题吧。
我把string-lines改成s.el(melpa最新版)里的s-lines就OK了。string-lines没有搜到是在哪个el里的。
string-lines is an autoloaded compiled Lisp function in ‘subr-x.el’.
(string-lines STRING &optional OMIT-NULLS)
Other relevant functions are documented in the string group. Probably introduced at or before Emacs version 28.1.
Split STRING into a list of lines. If OMIT-NULLS, empty lines will be removed from the results.
Probably introduced at or before Emacs version 28.1.
我的是27.2
更新最新版本吧,已经用旧的API替代了
感谢! (字数补丁)
这个补丁针对那些不需要获取JavaScript函数结果的地方用 eval_js 替换 execute_js, 因为 execute_js 有一个 250ms 的小事件循环,所以 eval_js 调用一次就比 execute_js 提速 250ms
今天优化文件管理器的时候发现很多地方都调用 execute_js 而不是 eval_js, 优化后:
- 文件管理器切换文件的迟钝感消失了
- 同时音乐播放器、系统监视器、网易云音乐、Mindmap的启动速度都有50%到几倍的提升
强烈建议大家更新
我每天看这个帖子就像翻微博一样。。。 期待这个东西越来越好
今天OpenSuse的开发者提交了补丁,使EAF支持在OpenSuse上一键安装。
EAF目前支持Windows、macOS、Linux、FreeBSD四大平台。
Linux系统支持ArchLinux、Fedora、Debian、OpenSuse等主流发行版,
感谢社区的力量!
更新到最新版使用install-eaf,没有自动npm install。这是个什么问题?
我进入app里的文件夹里手动npm install是能安装依赖的。
如果 app git pull 没有更新,好像就不会运行 npm
谢谢,删了重新装就好了。
下次如果遇到这种情况,可以试试 --force-install 选项