feat: allow OSCommand.Quote to be invoked within a custom command

This commit is contained in:
Ryooooooga 2022-09-30 21:10:56 +09:00
parent 092363a986
commit 19df238b77
No known key found for this signature in database
GPG key ID: 07CF200DFCC20C25
4 changed files with 9 additions and 21 deletions

View file

@ -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'