求问各位朋友,有没有关于windows平台上everything的包,可以帮助我使用everything的,目前everything使用感觉太多参数记不住,头疼
我用的是consult-everything
,不知道你用的什么包还要设置参数,这个consult-everything
也仅仅可用而已,但我感觉比everything自己的regex好用一点。
用consult-locate
就行 (setq consult-locate-args (encode-coding-string "es.exe -i -p -r" 'gbk-dos))
1 个赞
我用的是consult, 没看到有什么consult-everything呀 everything本身的参数是非常多的,我希望可以有一个界面把选项和参数和含义告诉我,这样不用去记。类似于这样的功能的包,二楼推荐的我先看看如何
;; Prefer utf-8
(set-charset-priority 'unicode)
(prefer-coding-system 'utf-8-unix)
(when w/is-windows
;; NOTE: (decoding output . encoding input)
(add-to-list 'process-coding-system-alist '("rg" utf-8 . gbk))
;; NOTE: not needed if is native GBK locale(ex, no `(prefer-coding-system 'utf-8-unix)')
(add-to-list 'process-coding-system-alist '("mutool" gbk . gbk))
(add-to-list 'process-coding-system-alist '("es" gbk . gbk)))
(when w/is-windows
(setq consult-locate-args "es.exe -i -p -r"))
包的话(像rg.el那样列出ripgrep选项的)得自己写了
好的,谢谢。你这是解决编码问题对吧
现在consult-locate暂时不支持模糊搜索,有什么方法可以开启?
这个我也不懂,应该是consult--locate-builder
不支持,目前直接输入regex搜索倒是可以
我先用counsel-locate代替了,如果不支持模糊搜索,感觉很费劲
1 个赞
非常感谢! 我折腾了很久才实现consult-everything,原来自带的locate就可以配置使用es.exe…
(use-package consult-everything
:if (or (eq system-type 'windows-nt)
(eq system-type 'android))
:after consult
:load-path "~/.emacs.d/lisp/consult-everything"
:straight nil
;; :demand
:commands (consult-everything)
)