Function: projectile-repeat-last-task
projectile-repeat-last-task is an autoloaded, interactive and
byte-compiled function defined in projectile.el.
Signature
(projectile-repeat-last-task ARG)
Documentation
Re-run the last task executed in the current project.
This re-runs the exact command the task ran last time, including any ad-hoc edits made then. With a prefix ARG the command can be edited again before it's run.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;;###autoload
(defun projectile-repeat-last-task (arg)
"Re-run the last task executed in the current project.
This re-runs the exact command the task ran last time, including any
ad-hoc edits made then. With a prefix ARG the command can be edited
again before it's run."
(interactive "P")
(let* ((project-root (projectile-acquire-root))
(last-task (gethash project-root projectile-last-task-map)))
(unless last-task
(user-error "No task has been run yet for this project"))
;; The stored command was confirmed when it first ran, so re-running
;; doesn't prompt again (like `projectile-repeat-last-command').
(projectile--run-task (car last-task) (cdr last-task) arg 'confirmed)))