Skip to content

Option to omit ({language}) in --list #288

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

Open
QuAzI opened this issue Jun 14, 2025 · 1 comment
Open

Option to omit ({language}) in --list #288

QuAzI opened this issue Jun 14, 2025 · 1 comment

Comments

@QuAzI
Copy link

QuAzI commented Jun 14, 2025

Please add some option for get_commands to omit ({language}) when --list command used.

Pain: I am trying to reproduce https://dev.to/helderberto/integrating-tldr-with-fzf-2377
So I need something like tldr --list | fzf | xargs tldr but for Windows.
At the moment, second fzf fails because of the language

> tldr --list | Get-Unique | fzf --preview "tldr -c {1}" --preview-window=right,70%
attrib (en)

> tldr @(tldr --list | Get-Unique | fzf --preview "tldr -c {1}" --preview-window=right,70%)
`attrib (en)` documentation is not available.
If you want to contribute it, feel free to send a pull request to: https://github.com/tldr-pages/tldr
@QuAzI
Copy link
Author

QuAzI commented Jun 14, 2025

Temporary workaround - .trim(" (en)")
But it's a dirty trick, and in the first menu I still see noisy (en) for each line.

But the result is better than nothing

$ tldr @(tldr --list | Sort-Object | Get-Unique | fzf --preview "tldr -c {1}" --preview-window=right,70%).trim(" (en)")

  bcdboot

  Configure or repair boot files.
  More information: https://learn.microsoft.com/windows-hardware/manufacture/desktop/bcdboot-command-line-options-techref-di.

  - Initialize the system partition by using BCD files from the source Windows folder:
    bcdboot C:\Windows

  - Enable [v]erbose mode:
    bcdboot C:\Windows /v

  - Specify the volume letter of the [s]ystem partition:
    bcdboot C:\Windows /s S:

  - Specify a [l]ocale:
    bcdboot C:\Windows /l en-us

  - Specify a [f]irmware type while copying the boot files to a specified volume:
    bcdboot C:\Windows /s S: /f UEFI|BIOS|ALL

or

$ navi --query @(tldr --list | Sort-Object | Get-Unique | fzf --preview "tldr -c {1}" --preview-window=right,70%).trim(" (en)")
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Specify a [f]irmware type while copying the boot files to a specified volume [bcdboot, windows]                                                                                            │
│ bcdboot <C:\Windows> /s <S:> /f <UEFI|BIOS|ALL>                                                                                                                                            │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘


▌ bcdboot, windows                                   ⠀Specify a [f]irmware type while copying the boot files to a specified volume     ⠀bcdboot <C:\Windows> /s <S:> /f <UEFI|BIOS|ALL>    ⠀
  bcdboot, windows                                   ⠀Specify a [l]ocale                                                               ⠀bcdboot <C:\Windows> /l <en-us>                    ⠀
  bcdboot, windows                                   ⠀Specify the volume letter of the [s]ystem partition                              ⠀bcdboot <C:\Windows> /s <S:>                       ⠀
  bcdboot, windows                                   ⠀Enable [v]erbose mode                                                            ⠀bcdboot <C:\Windows> /v                            ⠀
  bcdboot, windows                                   ⠀Initialize the system partition by using BCD files from the source Windows fol…  ⠀bcdboot <C:\Windows>

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

1 participant