Commit a33d382
committed
Enables custom command building, for example git grep with glob:
```lua
require("fzf-lua").live_grep({
cmd = "git grep -i --line-number --column --color=always",
fn_transform_cmd = function(query, cmd, opts)
-- Uncomment to debug
-- io.stdout:write(string.format("[DEBUG] %s\n", cmd .. query))
return cmd .. query
end
})
```
1 parent 160e32d commit a33d382
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
222 | 230 | | |
223 | 231 | | |
224 | 232 | | |
| |||
0 commit comments