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

FZF to search in winget store and it closes previous fzf window #3739

Open
4 of 10 tasks
nahid6970 opened this issue Apr 17, 2024 · 0 comments
Open
4 of 10 tasks

FZF to search in winget store and it closes previous fzf window #3739

nahid6970 opened this issue Apr 17, 2024 · 0 comments
Labels

Comments

@nahid6970
Copy link

nahid6970 commented Apr 17, 2024

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.49.0 (62963dc)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

hello guys thnx for this tool and really appreciate it.
i have used this tool with a python script to install apps from winget it works great but the issue is when i click it it opens the install window where it should open in a new window and the fzf screen should stay there

here is the python script

def wget_inst_fzf():
    command = ' $host.UI.RawUI.WindowTitle = "wget🔽" ; winget search --exact "" | fzf --multi --preview-window=up:60% --preview \'winget show {1}\' | ForEach-Object { winget install $_.split()[0] }'
    try:
        subprocess.Popen([ 'start' , 'pwsh', '-Command', command], shell=True)
    except subprocess.CalledProcessError as e:
        print(f"Error executing command: {e}")

can u help me so the install command will open in a new window terminal

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

No branches or pull requests

2 participants