fzy icon indicating copy to clipboard operation
fzy copied to clipboard

Split input lines to fields

Open d3m3t3r opened this issue 5 years ago • 2 comments

Allow for splitting input lines to fields where only a certain field is shown and used for matching. Also it could be specified which field will be printed when the selection is chosen.

In example, "cat /etc/passwd | fzy -d: -f1 -F6" will display and match only usernames (=1st field) and when the selection is made it will output the user's home directory (=6th field).

There are three new options -d/--delimiter, -f/--field and -F/--output-field and the feature is enabled only when -f/--field is specified.

d3m3t3r avatar Apr 06 '19 21:04 d3m3t3r

There are three new options -d/--separator, -f/--field and -F/--output-field and the feature is enabled only when -f/--field is specified.

Small idea/nit: I'd go with -d/--delimiter, which is (a) internally consistent (--separator doesn't have a d in it), and (b) consistent with cut(1)

neuschaefer avatar Apr 15 '19 22:04 neuschaefer

Why is this not merged?

Can I help to fix conflicts to get it merged?

kovetskiy avatar Nov 30 '19 21:11 kovetskiy