今天写了补丁 Don't need confirm marker input. · emacs-eaf/emacs-application-framework@2a2bca5 · GitHub
现在浏览器里面的Vimium功能,不需要用户在minibuffer输入跳转字符后按一下回车,EAF探测到你输入完字符以后自动跳转链接,和Chrome里面Vimium体验类似了。
今天写了补丁 Don't need confirm marker input. · emacs-eaf/emacs-application-framework@2a2bca5 · GitHub
现在浏览器里面的Vimium功能,不需要用户在minibuffer输入跳转字符后按一下回车,EAF探测到你输入完字符以后自动跳转链接,和Chrome里面Vimium体验类似了。
文件管理器已经支持文件名或拼音首字母搜索,体验类似 isearch
请问 epc 有什么特殊要求吗? 已经是最新的 EAF 版本, 我用 pip 卸载重装 epc, 也用安装脚本试过, 然而跑 demo 或其他程序仍然报错
from epc.client import EPCClient
ModuleNotFoundError: No module named 'epc'
系统是 macOS, epc 在 ipython 中可以成功导入
是不是你的MacOS环境变量没有设置好?
可以先试一下我的 GitHub - manateelazycat/cache-path-from-shell: Provide a chache mechanism make sure exec-path-from-shell just execute once. , 然后再启动EAF
这两个补丁后,不但支持 isearch, 也支持 isearch 的 C-s/C-r 连续跳转和搜索匹配高亮的行为。
用的Python是什么版本的?我们测试用的是brew安装的。
使用了这个插件, getenv 得到的结果已经和 shell 一样了, 但还是无法加载 epc
直接用好brew
主题的原因,提一个issue吧
解决了, 我本来安装了 brew 版本的 python, 后面为了便于环境管理换用 anaconda, 但是 brew 版本的没删, 它就自动绑定 brew 版本的了. brew 版本的装上 epc 就可以用了.
懒猫大神,今天升级到了最新版本eaf,在打开浏览器时出现了下面的错误:
Traceback (most recent call last):
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/core/utils.py", line 60, in on_signal_received
self._func(obj, *args, **kwargs)
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/eaf.py", line 170, in new_buffer
self.create_buffer(buffer_id, url, module_path, arguments)
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/eaf.py", line 187, in create_buffer
app_buffer = module.AppBuffer(buffer_id, url, arguments)
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/app/browser/buffer.py", line 38, in __init__
BrowserBuffer.__init__(self, buffer_id, url, arguments, False)
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/core/webengine.py", line 787, in __init__
self.buffer_widget.zoom_reset()
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/core/utils.py", line 168, in wrapped_f
return f(*args, **kwargs)
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/core/webengine.py", line 360, in zoom_reset
self.setZoomFactor(self.default_zoom)
TypeError: setZoomFactor(self, float): argument 1 has unexpected type 'str'
Traceback (most recent call last):
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/core/utils.py", line 60, in on_signal_received
self._func(obj, *args, **kwargs)
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/eaf.py", line 250, in update_views
view = View(self.buffer_dict[buffer_id], view_info)
KeyError: '6bb0-9f81-4a0d-19cb-22c4-e59f-acee'
Traceback (most recent call last):
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/core/utils.py", line 60, in on_signal_received
self._func(obj, *args, **kwargs)
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/eaf.py", line 250, in update_views
view = View(self.buffer_dict[buffer_id], view_info)
KeyError: '6bb0-9f81-4a0d-19cb-22c4-e59f-acee'
Traceback (most recent call last):
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/core/utils.py", line 60, in on_signal_received
self._func(obj, *args, **kwargs)
File "/mnt/Users/lzhes/Github/Emacs/.emacs.d/elpa/eaf-20210827.104/eaf.py", line 250, in update_views
view = View(self.buffer_dict[buffer_id], view_info)
KeyError: '6bb0-9f81-4a0d-19cb-22c4-e59f-acee'
配置如下:
(use-package eaf
:when (eq system-type 'gnu/linux)
:load-path (lambda () (expand-file-name "quelpa/build/emacs-application-framework" user-emacs-directory))
:custom
((eaf-browser-continue-where-left-off t)
(eaf-browser-enable-adblocker t)
(eaf-browser-default-zoom "2"))
:config
(require 'eaf-org)
(require 'eaf-browser))
子包是调用eaf-install-and-upgrade
安装的。麻烦你帮看下是怎么回事?
之前有个命令eaf-enable-debug
,现在好像没有了。
平台是ubuntu 21.04
更新后要重启下
找到原因了。
新版本eaf-browser-default-zoom
不接受 string 参数了。设置成(setq eaf-browser-default-zoom 2)
就好了。新版体验很赞!
已经修复了 Fix issue #33 : code preview support dark/light theme. · emacs-eaf/eaf-file-manager@3c36c49 · GitHub
推送了补丁 Search files in subthread. · emacs-eaf/eaf-file-manager@740da80 · GitHub
把文件搜索放到子线程中,现在搜索整个磁盘都瞬间出结果。
怎么默认使用eaf pdf 打开pdf文件?
通过find-file可以直接使用eaf/pdf-viewer。但是如果有个连接指向一个pdf文件,直接点击连接打开时会使用emacs的pdfview打开。
https://emacs.stackexchange.com/questions/61682/how-to-use-emacs-application-framework-as-default-pdf-viewer找到一个,但是没有启作用。
求助大神,file-manager 有如下报错。尝试调整了下eaf-file-manager.el里面两个format的specifier,还是一样。
Traceback (most recent call last):
File "/home/johnny/.emacs.d/elisp/emacs-application-framework/app/file-manager/buffer.py", line 73, in init_app
self.init_vars()
File "/home/johnny/.emacs.d/elisp/emacs-application-framework/app/file-manager/buffer.py", line 95, in init_vars
(directory_color, symlink_color, header_color, mark_color, search_match_color, warning_color) = get_emacs_func_result(
File "/home/johnny/.emacs.d/elisp/emacs-application-framework/core/utils.py", line 249, in get_emacs_func_result
result = epc_client.call_sync("eval-in-emacs", args)
File "/home/johnny/.local/lib/python3.8/site-packages/epc/handler.py", line 402, in call_sync
return self._blocking_request(self.call, timeout, name, args)
File "/home/johnny/.local/lib/python3.8/site-packages/epc/handler.py", line 384, in _blocking_request
return bc.result(timeout=timeout)
File "/home/johnny/.local/lib/python3.8/site-packages/epc/handler.py", line 116, in result
raise reply
epc.handler.ReturnError: [Symbol('error'), 'Format specifier doesn't match argument type']
你是用 install-eaf.el 整体更新的吗?