/codespaces.el

Emacs support for easy access to GitHub Codespaces.

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

codespaces.el

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))

Missing features

  • 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.

Credits

Thanks to Bas Alberts for writing the code to register ghcs as a valid TRAMP connection method.

License

GPL3.