fix git blame when there are spaces in the file name

This commit is contained in:
Noah Masur
2025-07-30 15:53:44 -04:00
parent f9bf763f91
commit 518848181a

View File

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