parent
77392cbbc4
commit
7c0dc3a130
1 changed files with 30 additions and 22 deletions
|
|
@ -580,6 +580,10 @@ This simply applies the same transformer as in `ivy-switch-buffer', which is `iv
|
|||
(if (and (eq projectile-require-project-root 'prompt)
|
||||
(not (projectile-project-p)))
|
||||
(counsel-projectile-switch-to-buffer-action-switch-project)
|
||||
(let ((ivy-update-fns-alist
|
||||
'((counsel-projectile-switch-to-buffer . counsel--switch-buffer-update-fn)))
|
||||
(ivy-unwind-fns-alist
|
||||
'((counsel-projectile-switch-to-buffer . counsel--switch-buffer-unwind))))
|
||||
(ivy-read (projectile-prepend-project-name "Switch to buffer: ")
|
||||
;; We use a collection function so that it is called each
|
||||
;; time the `ivy-state' is reset. This is needed for the
|
||||
|
|
@ -590,7 +594,7 @@ This simply applies the same transformer as in `ivy-switch-buffer', which is `iv
|
|||
:sort counsel-projectile-sort-buffers
|
||||
:action counsel-projectile-switch-to-buffer-action
|
||||
:keymap counsel-projectile-switch-to-buffer-map
|
||||
:caller 'counsel-projectile-switch-to-buffer)))
|
||||
:caller 'counsel-projectile-switch-to-buffer))))
|
||||
|
||||
(ivy-configure 'counsel-projectile-switch-to-buffer
|
||||
:display-transformer-fn #'counsel-projectile-switch-to-buffer-transformer)
|
||||
|
|
@ -1532,6 +1536,10 @@ If not inside a project, call `counsel-projectile-switch-project'."
|
|||
(if (and (eq projectile-require-project-root 'prompt)
|
||||
(not (projectile-project-p)))
|
||||
(counsel-projectile-action-switch-project)
|
||||
(let ((ivy-update-fns-alist
|
||||
'((counsel-projectile . counsel--switch-buffer-update-fn)))
|
||||
(ivy-unwind-fns-alist
|
||||
'((counsel-projectile . counsel--switch-buffer-unwind))))
|
||||
(projectile-maybe-invalidate-cache arg)
|
||||
(ivy-read (projectile-prepend-project-name "Load buffer or file: ")
|
||||
;; We use a collection function so that it is called each
|
||||
|
|
@ -1542,7 +1550,7 @@ If not inside a project, call `counsel-projectile-switch-project'."
|
|||
:require-match t
|
||||
:action counsel-projectile-action
|
||||
:keymap counsel-projectile-map
|
||||
:caller 'counsel-projectile)))
|
||||
:caller 'counsel-projectile))))
|
||||
|
||||
(ivy-configure 'counsel-projectile
|
||||
:display-transformer-fn #'counsel-projectile-transformer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue