<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fzf/src/tokenizer_test.go, branch v0.66.0-custom</title>
<subtitle>Personal fork of fzf</subtitle>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/'/>
<entry>
<title>Add --accept-nth option to transform the output</title>
<updated>2025-02-09T02:53:35+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2025-02-09T02:53:35+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=2b584586ed1caf15429625da981575ee35d407b8'/>
<id>2b584586ed1caf15429625da981575ee35d407b8</id>
<content type='text'>
This option can be used to replace a sed or awk in the post-processing step.

  ps -ef | fzf --multi --header-lines 1 | awk '{print $2}'
  ps -ef | fzf --multi --header-lines 1 --accept-nth 2

This may not be a very "Unix-y" thing to do, so I've always felt that fzf
shouldn't have such an option, but I've finally changed my mind because:

* fzf can be configured with a custom delimiter that is a fixed string
  or a regular expression.
* In such cases, you'd need to repeat the delimiter again in the
  post-processing step.
* Also, tools like awk or sed may interpret a regular expression
  differently, causing mismatches.

You can still use sed, cut, or awk if you prefer.

Close #3987
Close #1323
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This option can be used to replace a sed or awk in the post-processing step.

  ps -ef | fzf --multi --header-lines 1 | awk '{print $2}'
  ps -ef | fzf --multi --header-lines 1 --accept-nth 2

This may not be a very "Unix-y" thing to do, so I've always felt that fzf
shouldn't have such an option, but I've finally changed my mind because:

* fzf can be configured with a custom delimiter that is a fixed string
  or a regular expression.
* In such cases, you'd need to repeat the delimiter again in the
  post-processing step.
* Also, tools like awk or sed may interpret a regular expression
  differently, causing mismatches.

You can still use sed, cut, or awk if you prefer.

Close #3987
Close #1323
</pre>
</div>
</content>
</entry>
<entry>
<title>Disallow incorrect wrapping range expression for --nth</title>
<updated>2025-01-15T13:39:48+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2025-01-15T13:39:48+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=717562b264a49a25c8b934d174e959b33bd02681'/>
<id>717562b264a49a25c8b934d174e959b33bd02681</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor the code so that fzf can be used as a library (#3769)</title>
<updated>2024-05-06T16:06:42+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2024-05-06T16:06:42+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=e8405f40fe2eb3675f1cb4f69e825eff5f13f269'/>
<id>e8405f40fe2eb3675f1cb4f69e825eff5f13f269</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Code cleanup: remove unnecessary string conversions (#1642)</title>
<updated>2019-07-19T04:23:18+00:00</updated>
<author>
<name>Christian Muehlhaeuser</name>
<email>muesli@gmail.com</email>
</author>
<published>2019-07-19T04:23:18+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=3b9dbd4146fce2d5b7551ac65676da344ea6a18d'/>
<id>3b9dbd4146fce2d5b7551ac65676da344ea6a18d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make fzf pass go vet</title>
<updated>2018-03-13T05:56:55+00:00</updated>
<author>
<name>Ryan Boehning</name>
<email>ryanboehning@gmail.com</email>
</author>
<published>2018-02-17T22:01:06+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=21b94d2de5bdf2d8c4e8107e4c197a2abc1e7275'/>
<id>21b94d2de5bdf2d8c4e8107e4c197a2abc1e7275</id>
<content type='text'>
Add String() methods to types, so they can be printed with %s. Change
some %s format specifiers to %v, when the default string representation
is good enough. In Go 1.10, `go test` triggers a parallel `go vet`. So
this also makes fzf pass `go test`.

Close #1236
Close #1219
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add String() methods to types, so they can be printed with %s. Change
some %s format specifiers to %v, when the default string representation
is good enough. In Go 1.10, `go test` triggers a parallel `go vet`. So
this also makes fzf pass `go test`.

Close #1236
Close #1219
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid unconditionally storsing input as runes</title>
<updated>2017-07-19T17:44:30+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2017-07-19T17:44:30+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=c9f16b6430f3b9c9d12ee078e2218e8467c13340'/>
<id>c9f16b6430f3b9c9d12ee078e2218e8467c13340</id>
<content type='text'>
When --with-nth is used, fzf used to preprocess each line and store the
result as rune array, which was wasteful if the line only contains ascii
characters.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When --with-nth is used, fzf used to preprocess each line and store the
result as rune array, which was wasteful if the line only contains ascii
characters.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix inconsistent tiebreak scores when --nth is used</title>
<updated>2017-06-02T04:25:35+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2017-06-02T04:25:35+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=2e3dc75425d23b4d9e8e05a901395914cf8d3120'/>
<id>2e3dc75425d23b4d9e8e05a901395914cf8d3120</id>
<content type='text'>
Make sure to consistently calculate tiebreak scores based on the
original line.

This change may not be preferable if you filter aligned tabular input on
a subset of columns using --nth. However, if we calculate length
tiebreak only on the matched components instead of the entire line, the
result can be very confusing when multiple --nth components are
specified, so let's keep it simple and consistent.

Close #926
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make sure to consistently calculate tiebreak scores based on the
original line.

This change may not be preferable if you filter aligned tabular input on
a subset of columns using --nth. However, if we calculate length
tiebreak only on the matched components instead of the entire line, the
result can be very confusing when multiple --nth components are
specified, so let's keep it simple and consistent.

Close #926
</pre>
</div>
</content>
</entry>
<entry>
<title>[perf] Avoid allocating rune array for ascii string</title>
<updated>2016-08-13T15:41:30+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2016-08-13T15:39:44+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=1d4057c20907b7d263d6f2b8cb4350a024859dfe'/>
<id>1d4057c20907b7d263d6f2b8cb4350a024859dfe</id>
<content type='text'>
In the best case (all ascii), this reduces the memory footprint by 60%
and the response time by 15% to 20%. In the worst case (every line has
non-ascii characters), 3 to 4% overhead is observed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the best case (all ascii), this reduces the memory footprint by 60%
and the response time by 15% to 20%. In the worst case (every line has
non-ascii characters), 3 to 4% overhead is observed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use trimmed length when --nth is used with --tiebreak=length</title>
<updated>2015-10-02T09:40:20+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2015-10-02T09:40:20+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=92a75c9563600a174e9ee8334853f99ed560492a'/>
<id>92a75c9563600a174e9ee8334853f99ed560492a</id>
<content type='text'>
This change improves sort ordering for aligned tabular input.
Given the following input:

    apple   juice   100
    apple   pie     200

fzf --nth=2 will now prefer the one with pie. Before this change fzf
compared "juice   " and "pie     ", both of which have the same length.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change improves sort ordering for aligned tabular input.
Given the following input:

    apple   juice   100
    apple   pie     200

fzf --nth=2 will now prefer the one with pie. Before this change fzf
compared "juice   " and "pie     ", both of which have the same length.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix --with-nth performance; use simpler regular expression</title>
<updated>2015-08-10T15:15:41+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2015-08-10T14:47:03+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=d0f2c00f9f0a2ded5a94703c30ea127b8f8cb847'/>
<id>d0f2c00f9f0a2ded5a94703c30ea127b8f8cb847</id>
<content type='text'>
Related #317
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Related #317
</pre>
</div>
</content>
</entry>
</feed>
