Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-PsFzfRipgrep hungs when opening file with Neovim. #230

Open
AlexandrosAlexiou opened this issue Sep 1, 2023 · 2 comments
Open

Invoke-PsFzfRipgrep hungs when opening file with Neovim. #230

AlexandrosAlexiou opened this issue Sep 1, 2023 · 2 comments

Comments

@AlexandrosAlexiou
Copy link

AlexandrosAlexiou commented Sep 1, 2023

Observed:
It hungs with the following output:
Executing 'nvim "D:\test\Tests\Public\remote.Tests.ps1" +5'...
Checked the code and it seems that it hungs here. Any insights?

How to reproduce:

  1. Create config
$env:EDITOR = "nvim"
# Set the key handler to Invoke-PsFzfRipgrep with Ctrl+g
Set-PSReadlineKeyHandler -Chord 'Ctrl+g' -ScriptBlock {
	Invoke-PsFzfRipgrep -searchstring "" 
}
  1. Hit "ctrl + g" and select a file to open

Note: Seems to be working if I set the editor to "code"

@mattcargile
Copy link
Contributor

Are you intending to call with an empty string? That would seem to take quite some time to handle.

@AlexandrosAlexiou
Copy link
Author

AlexandrosAlexiou commented Nov 1, 2023

Are you intending to call with an empty string? That would seem to take quite some time to handle.

I start with empty string to immediately invoke PsFzfRipgrep without providing a search string first

If I do not provide an empty string Invoke-PsFzfRipgrep expects a search sting to be provided first before initiating the search.

cmdlet Invoke-PsFzfRipgrep at command pipeline position 1
Supply values for the following parameters:
SearchString:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants