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

[feature] --keep-left=COL to preserve COL number of leftmost columns while searching #2437

Closed
7 tasks done
haakonstorm opened this issue Apr 9, 2021 · 1 comment
Closed
7 tasks done

Comments

@haakonstorm
Copy link

  • I have read through the manual page (man fzf)
  • I have the latest version of fzf
  • I have searched through the existing issues

Info

  • OS
    • Linux
    • Mac OS X
  • Shell
    • bash
    • zsh

Problem / Steps to reproduce

  1. See attached screenshots for illustration

Screenshot of iTerm2 (09-04-2021, 19-21-57)

Screenshot of iTerm2 (09-04-2021, 19-21-29)

Here the word(s) on the left is the name of what is actually selected (via fzf). The right side text is the "friendly name" description of what is to be selected. This is a small tool dubbed pmm for now "package manager manager" I'm making for search discovery and install of "packages" like brew formulae, casks, kubernetes helm charts, pypi, npn nodejs, etc.

In full technicolor (ANSI) 😀

@haakonstorm
Copy link
Author

Perhaps AWK style index: --keep-left-nth={1} as a way to [semi]-automatically determine number of columns to save.
Not sure what to do when matching substrings are spread over too many columns. I.e. wider than terminal $columns. In this particular use case the left-most word is the most important info.

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