feat(sterni/acme): add plumbing rule for showing git commits
Change-Id: Iee072e1dc7c6d11456aeae47140e6a62fe832531 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13040 Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
a396f4162f
commit
75e0c1cf43
2 changed files with 6 additions and 1 deletions
5
users/sterni/acme/plumb/git
Normal file
5
users/sterni/acme/plumb/git
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# based on https://blog.silvela.org/post/2021-12-11-acme-tricks/
|
||||
type is text
|
||||
data matches '[0-9a-f]*[a-f][0-9a-f]*'
|
||||
data matches '([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]+)'
|
||||
plumb start rc -c 'cd '$wdir'; cd `{git rev-parse --show-toplevel} && git show --pretty=fuller '$1' | plumb -i -d edit -a ''action=showdata filename=+git/'$1''' '
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
# TODO(sterni): are rules for :linenumber etc. needed or acme default?
|
||||
# TODO(sterni): file: urls
|
||||
# TODO(sterni): xdg-open for mail addresses, images, pdfs etc.
|
||||
# TODO(sterni): git
|
||||
|
||||
editor = acme
|
||||
include man
|
||||
|
|
@ -9,4 +8,5 @@ include man
|
|||
depot = /home/lukas/src/depot
|
||||
include tvl
|
||||
|
||||
include git
|
||||
include urls
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue