Skip to content

allowing yadm to use the neogit ui #1801

@JanikkinaJ

Description

@JanikkinaJ

Is your feature request related to a problem? Please describe.
I enjoy this library and within emacs I was able to use yadm with magit through a simple script.
Here However it seemed a bit harder to script easily with the current structure.

Describe the solution you'd like
It would be nice to allow the user to choose to use the neogit gui for yadm through a simple command suchj as neogitYadm

Describe alternatives you've considered
I tried to script it in a similar way as this which works in emacs magit but due to structural differences this was not possible:

(use-package tramp
  :config
  (add-to-list 'tramp-methods
               '("yadm"
                 (tramp-login-program "yadm")
                 (tramp-login-args (("enter")))
                 (tramp-login-env (("SHELL") ("/bin/sh")))
                 (tramp-remote-shell "/bin/sh")
                 (tramp-remote-shell-args ("-c")))))

(defun magit-yadm ()
  (interactive)
  (magit-status "/yadm::")t
  )

Additional context
I have created my own fork with a solution that works for me. It is a bit of a dirty fix at the moment though and probably does not adhere to your code standards as of yet. If other people are interested I'd be happy to clean it up for wider use and create a merge request 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions