Updated Custom Commands Compendium (markdown)

Mohammed Elwardi Fadeli 2021-08-01 13:42:54 +01:00
parent dfa2176a32
commit 3b18ae0101

@ -100,7 +100,7 @@ customCommands:
```yml
customCommands:
- key : 's'
- key : '<c-a>' # Out of sane keybindings in commits context :(
description: 'Search the whole history (From a ref and down) for an expression in a file'
command: "git checkout {{index .PromptResponses 3}}"
context: 'commits'
@ -115,7 +115,7 @@ customCommands:
- type: 'menuFromCommand'
title: 'Commits:'
command: "git log --oneline {{index .PromptResponses 2}} -S'{{index .PromptResponses 0}}' --all -- {{index .PromptResponses 1}}"
filter: '(?P<commit_id>[0-9a-zA-Z]+) .*'
filter: '(?P<commit_id>[0-9a-zA-Z]+) .*' # or just '(?P<commit_id>.*)' to catch commit descriptions too
format: '{{ .commit_id }}'
```
Example Usage on lazygit repo: