Can I make an org-mode link that open a magit-status buffer to a specific directory

221 Views Asked by At

I've been using org-mode to make a shortcut file so I can easily open files in emacs that I use a lot. But now I'd like to easily be able to open up a magit-status buffer for partiular repositories. Is there a way to make links in org-mode that will open those up?

2

There are 2 best solutions below

3
On BEST ANSWER

You can use a link of type elisp:

[[elisp:(magit-status "/my/repo")][magit status for my repository]]
0
On

Apparently now it's possible to use a link of type orgit:

 [[orgit:/path/to/repo][magit status for my repo]]

This link type and 2 others (orgit-log and orgit-rev) are provided by orgit package.