Skip to content

Commit 8449e10

Browse files
authored
Merge pull request #71 from emacs-php/lookup-rpc-documentation
Add a function to search Phpactor RPC documentation
2 parents f1dcb52 + 595ca82 commit 8449e10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

phpactor.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,13 @@ function."
491491
;;
492492
;; See https://phpactor.github.io/phpactor/rpc.html#phpactor-commands
493493

494+
;;;###autoload
495+
(defun phpactor-open-rpc-documentation (command)
496+
"Open the official documentation for COMMAND."
497+
(interactive "sRPC Command: ")
498+
(let ((doc-uri (concat "https://github.com/phpactor/phpactor/blob/develop/doc/rpc.md#" command)))
499+
(browse-url doc-uri)))
500+
494501
;;;###autoload
495502
(defun phpactor-copy-class ()
496503
"Execute Phpactor RPC copy_class command."

0 commit comments

Comments
 (0)