diff --git a/Windows.md b/Windows.md index d14ab2a..413368e 100644 --- a/Windows.md +++ b/Windows.md @@ -12,13 +12,21 @@ fzf uses `dir /s/b` as its default command for performance but it outputs absolu To use relative filepaths, set `FZF_DEFAULT_COMMAND` to any of the following and run it in cmd.exe because it has no overhead: - cmd.exe https://github.com/junegunn/fzf/pull/971#issuecomment-313971408 -```dosbatch -cmd.exe /q/V:ON/c "for /f %A in ('dir /s/b 2^> nul') do set RELPATH=%A & echo !RELPATH:%cd%\=!" -``` + ```dosbatch + cmd.exe /q/V:ON/c "for /f %A in ('dir /s/b 2^> nul') do set RELPATH=%A && echo !RELPATH:%cd%\=!" + ``` - powershell https://github.com/junegunn/fzf/issues/960 -```dosbatch -powershell.exe -NoLogo -NoProfile -Noninteractive -Command "Get-ChildItem -File -Recurse -Name" -``` + ```dosbatch + powershell.exe -NoLogo -NoProfile -Noninteractive -Command "Get-ChildItem -File -Recurse -Name" + ``` +- [sift](https://sift-tool.org/) + ```dosbatch + sift --targets . 2> nul + ``` +- [rg](https://github.com/BurntSushi/ripgrep) (supports UTF-16 as of [0.5.0](https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md#050-2017-03-12)) + ```dosbatch + rg --files . 2> nul + ``` ### PowerShell support