Skip to content

Commit

Permalink
fix: grug-far appending extra text at the end of replaced files (#263)
Browse files Browse the repository at this point in the history
See this for more information:
MagicDuck/grug-far.nvim#154
  • Loading branch information
mikavilpas authored Jul 25, 2024
1 parent 07cd83f commit be2ac43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/yazi/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function M.default()
local filter = directory:make_relative(vim.uv.cwd())
require('grug-far').grug_far({
prefills = {
flags = filter,
paths = filter,
},
})
end,
Expand Down

2 comments on commit be2ac43

@MagicDuck
Copy link

@MagicDuck MagicDuck commented on be2ac43 Jul 26, 2024

Choose a reason for hiding this comment

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

Just FYI, you might want to do

filter:sub(“ “, “\\ “) to support file paths with spaces in their names which are common especially on windowze 😄

@mikavilpas
Copy link
Owner Author

Choose a reason for hiding this comment

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

Nice idea, I think I'll add this right away.

Please sign in to comment.