mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 07:43:39 -05:00
Add sift and rg for FZF_DEFAULT_COMMAND
20
Windows.md
20
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:
|
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
|
- cmd.exe https://github.com/junegunn/fzf/pull/971#issuecomment-313971408
|
||||||
```dosbatch
|
```dosbatch
|
||||||
cmd.exe /q/V:ON/c "for /f %A in ('dir /s/b 2^> nul') do set RELPATH=%A & echo !RELPATH:%cd%\=!"
|
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
|
- powershell https://github.com/junegunn/fzf/issues/960
|
||||||
```dosbatch
|
```dosbatch
|
||||||
powershell.exe -NoLogo -NoProfile -Noninteractive -Command "Get-ChildItem -File -Recurse -Name"
|
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
|
### PowerShell support
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user