23
23
(require 'vc )
24
24
(require 'vc-git )
25
25
(require 'helm-files )
26
+ (require 'helm-types )
26
27
27
28
(defvaralias 'helm-c-source-ls-git 'helm-source-ls-git )
28
29
(make-obsolete-variable 'helm-c-source-ls-git 'helm-source-ls-git " 1.5.1" )
@@ -196,16 +197,19 @@ The color of matched items can be customized in your .gitconfig."
196
197
(buffer-substring-no-properties (goto-char (point-min ))
197
198
(line-end-position )))))
198
199
199
- (defun helm-ls-git-actions-list ()
200
- (let ((actions (helm-actions-from-type-file)))
201
- (helm-append-at-nth
202
- (helm-interpret-value actions nil 'ignorefn )
203
- (helm-make-actions " Git grep files (`C-u' only files with ext, `C-u C-u' all)"
204
- 'helm-ls-git-grep
205
- " Gid" 'helm-ff-gid
206
- " Search in Git log (C-u show patch)"
207
- 'helm-ls-git-search-log )
208
- 3 )))
200
+ (defun helm-ls-git-actions-list (&optional actions )
201
+ (helm-append-at-nth
202
+ actions
203
+ (helm-make-actions " Git status"
204
+ (lambda (_candidate )
205
+ (funcall helm-ls-git-status-command
206
+ (helm-default-directory)))
207
+ " Git grep files (`C-u' only files with ext, `C-u C-u' all)"
208
+ 'helm-ls-git-grep
209
+ " Gid" 'helm-ff-gid
210
+ " Search in Git log (C-u show patch)"
211
+ 'helm-ls-git-search-log )
212
+ 1 ))
209
213
210
214
(defun helm-ls-git-match-part (candidate )
211
215
(if (with-helm-buffer helm-ff-transformer-show-only-basename)
@@ -223,7 +227,7 @@ The color of matched items can be customized in your .gitconfig."
223
227
(candidate-transformer :initform '(helm-ls-git-transformer
224
228
helm-ls-git-sort-fn))
225
229
(action-transformer :initform 'helm-transform-file-load-el )
226
- (action :initform (helm-ls-git-actions-list))))
230
+ (action :initform (helm-ls-git-actions-list helm-type-file-actions ))))
227
231
228
232
;;;### autoload
229
233
(defclass helm-ls-git-status-source (helm-source-in-buffer)
0 commit comments