mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Updated Custom Commands Compendium (markdown)
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue