File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -101,24 +101,37 @@ It could either by `project-directory' or `default-directory'")
101101(defvar ivy-searcher--candidates )
102102
103103; ;
104- ; ; (@* "Util " )
104+ ; ; (@* "Custom " )
105105; ;
106106
107107(defun ivy-file-preview--ivy-searcher-p ()
108108 " Return non-nil if current command is from `ivy-searcher' ."
109109 (memq ivy-file-preview--this-command '(ivy-searcher-search-file
110110 ivy-searcher-search-project)))
111111
112+ ; ;
113+ ; ; (@* "Util" )
114+ ; ;
115+
112116(defun ivy-file-preview--init-ov-data ()
113117 " Initialize overlays data."
114- (when (ivy-file-preview--ivy-searcher-p)
118+ ; ; NOTE: Custom overlays data.
119+ ; ;
120+ ; ; Here is where I get the possible custom overlay data.
121+ ; ;
122+ ; ; ---
123+ ; ; TODO:
124+ ; ; - `counsel-ag'
125+ (cond
126+ ; ; Ivy Searcher
127+ ((ivy-file-preview--ivy-searcher-p)
115128 (setq ivy-file-preview--first-cand-index
116129 (cl-position
117130 nil ivy-searcher--candidates
118131 :test
119132 (lambda (_key cand )
120133 (pop cand)
121- (string= ivy-file-preview--selected-file (plist-get cand :file )))))))
134+ (string= ivy-file-preview--selected-file (plist-get cand :file ))))))))
122135
123136(defun ivy-file-preview--match-end (&optional pos index )
124137 " Get matching end by currently selected candidate.
You can’t perform that action at this time.
0 commit comments