junegunn / junegunn/fzf

Powershell: Can't run sleep

Open
#2,901 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
83k
Forks
2.9k
Avg merge
17h 8m
Merged PRs (30d)
10

Description

- [x] I have read through the manual page (`man fzf`)
- [x] I have the latest version of fzf
- [x] I have searched through the existing issues

## Info

- OS
- [ ] Linux
- [ ] Mac OS X
- [x] Windows
- [ ] Etc.
- Shell
- [ ] bash
- [ ] zsh
- [ ] fish
- [x] powershell

## Problem / Steps to reproduce

Unable to run a `--bind 'change:reload(sleep 0.1; $RG {q} || $true)'`
for some reason ripgrep, fd work but any other command including sleep doesn't
`[Command failed: sleep 0.1; rg --column --line-number --no-heading --color=always --smart-case [^"string_to_search"^] || True`

every time i change a word i need to wait for it to finish, in a larger project this can take a long time.
I tried looking through the wiki for a binding that could interrupt ripgrep or disable search when quay is empty but found nothing, also tried running execute on a keybinding but that also returned command

## Desired Effect
Stop rg from constantly searching on each key press, make it search for nothing when empty.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the --bind change:reload command in PowerShell and compare it with the working ripgrep and fd cases. Read the fzf manual and wiki sections on reload and execute bindings; the issue is done when an empty query avoids the search and the intended command runs reliably on Windows PowerShell.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, powershell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.