From 518848181aed16912871389f84ebdd9eb0bcfbe7 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Wed, 30 Jul 2025 15:53:44 -0400 Subject: [PATCH] fix git blame when there are spaces in the file name --- .../home-manager/modules/nmasur/presets/programs/helix.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/home-manager/modules/nmasur/presets/programs/helix.nix b/platforms/home-manager/modules/nmasur/presets/programs/helix.nix index 5373cdb..8a6b21d 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/helix.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/helix.nix @@ -174,7 +174,7 @@ in ]; # Commandline git blame - space.B = ":echo %sh{git log -n1 --date=short --pretty=format:'%%h %%ad %%s' $(git blame -L %{cursor_line},+1 %{buffer_name} | cut -d' ' -f1)}"; + space.B = ":echo %sh{git log -n1 --date=short --pretty=format:'%%h %%ad %%s' $(git blame -L %{cursor_line},+1 \"%{buffer_name}\" | cut -d' ' -f1)}"; # Open yazi # https://github.com/sxyazi/yazi/pull/2461