Add function to jump to tf plan output

This commit is contained in:
Jeremy Dormitzer 2024-07-15 16:10:47 -04:00
parent 8b75209521
commit 0b8be7b2f7

View File

@ -63,4 +63,11 @@
(advice-add 'terraform--get-resource-provider-namespace :around #'terraform-provider-ns-advice))
(defun terraform-jump-to-plan ()
"Jump to the top of the plan output in a buffer showing a terraform plan."
(interactive)
(when (eq major-mode 'vterm-mode)
(vterm-copy-mode))
(search-backward "Terraform will perform the following actions:"))
(provide 'init-terraform)