Skip to content

Conversation

@Lorite
Copy link

@Lorite Lorite commented Oct 23, 2025

Solves #4730

args = [
"-c",
"cp {{ .Target }} {{ .Target }}.base && code --new-window --wait --merge {{ .Destination }} {{ .Target }} {{ .Target }}.base {{ .Source }}",
"cp \"{{ .Target }}\" \"{{ .Target }}.base\" && code --new-window --wait --merge \"{{ .Destination }}\" \"{{ .Target }}\" \"{{ .Target }}.base\" \"{{ .Source }}\"",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, for this. However it's better to use the quote template function, e.g. {{ .Target | quote }}, than adding quotes manually at each end.

Copy link
Author

@Lorite Lorite Oct 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried it and it doesn't work. I get the following error: 'chezmoi: template: merge.args[1]:1: function "quote" not defined'
Also, I just found this issue #4169

@halostatue
Copy link
Collaborator

halostatue commented Oct 23, 2025

Your commit will need to be updated; the title should be "fix: Docs…". Note the lowercase value for the change type.

… tool" don't work for paths with spaces in them
@Lorite Lorite changed the title Fix: Docs in "User guide -> tools -> merge -> use vscode as the merge tool" don't work for paths with spaces in them fix: Docs in "User guide -> tools -> merge -> use vscode as the merge tool" don't work for paths with spaces in them Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants