mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-10 20:05:50 +02:00
feat: allow OSCommand.Quote
to be invoked within a custom command
This commit is contained in:
parent
092363a986
commit
19df238b77
4 changed files with 9 additions and 21 deletions
|
@ -8,7 +8,7 @@ customCommands:
|
|||
command: 'hub browse -- "commit/{{.SelectedLocalCommit.Sha}}"'
|
||||
context: 'commits'
|
||||
- key: 'a'
|
||||
command: "git {{if .SelectedFile.HasUnstagedChanges}} add {{else}} reset {{end}} {{.SelectedFile.Name}}"
|
||||
command: "git {{if .SelectedFile.HasUnstagedChanges}} add {{else}} reset {{end}} {{.SelectedFile.Name | Quote}}"
|
||||
context: 'files'
|
||||
description: 'toggle file staged'
|
||||
- key: 'C'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue