This package provides support for connecting to GitHub Codespaces in Emacs via TRAMP.
You will need to have the GitHub command line tools (gh
) installed.
Here is an example use-package
declaration (though it won’t work until I stick this on MELPA):
(use-package codespaces
:config
(codespaces-setup)
:bind
("C-c S" . #'codespaces-connect))
- Should ensure that
gh codespace list
works okay. - Should warn when trying to connect to a non-started codespace, and if so then start the codespace out-of-band before entering TRAMP, as otherwise we hit timeouts.
- Completion should sort codespacces by most-recently-used.
Thanks to Bas Alberts for writing the code to register ghcs
as a valid TRAMP connection method.
GPL3.