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

Multiple delimiter to work with -n and --select-1? #3762

Closed
5 of 10 tasks
tmpm697 opened this issue May 2, 2024 · 0 comments
Closed
5 of 10 tasks

Multiple delimiter to work with -n and --select-1? #3762

tmpm697 opened this issue May 2, 2024 · 0 comments

Comments

@tmpm697
Copy link

tmpm697 commented May 2, 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.50.0

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

I have this pattern:

echo "    3   certificatesigningrequests (aka 'csr')"

I want to immediately select (--select-1) base on either match certificatesigningrequests or csr

I can immediately match certificatesigningrequests with -n 2.. --select-1 but I then also need to match csr which has delimiter '

how can i specify multiple patterns to match here for --select-1 to immediately select if matched?

i.e:

cmd <smth> certificatesigningrequ<trigger_fzf_here> --> match certificatesigningrequests which needs default space delimiter

cmd <smth> csr<trigger_fzf_here> --> match csr which needs' delimiter

proposal:
we can merge both delimiter and -n filed to select like:
this option can be specified multiple times.

--whatevername_to_merge_delimiter_and_nth "2:\'" --> this match on filed 2th and delimiter is `'`
@tmpm697 tmpm697 closed this as completed May 7, 2024
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