我有一个项目,里面有很多aaa.py的文件
dir1
├── aaa.py
dir2
├── aaa.py
dir3
├── aaa.py
现在我想要把aaa.py修改成bbb.py, 直接使用projectile-find-file搜索aaa.py然后C-c C-o打开的不是ivy-occur的buffer(这是不是一个bug)
使用counsel-projectile-find-file可以打开ivy-occur的buffer,但是修改时提示Text is read only
请问一下projectile-find-file该怎么搭配ivy-occur使用呢? 我尝试使用find-name-dired替代ivy-occur
(defun maple/ivy-dired-occur()
(interactive)
(find-name-dired
(or (projectile-project-root) default-directory) (concat (ivy--input) "*"))
(ivy-exit-with-action
(lambda (_)
(pop-to-buffer (get-buffer "*Find*"))
(dired-hide-details-mode)
(wdired-change-to-wdired-mode)
(when (bound-and-true-p evil-local-mode) (evil-normal-state)))))
但搜索结果会不一样,总感觉不太对