<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fzf/src/result_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 special 'strip' style attribute for stripping colors</title>
<updated>2025-10-08T15:17:00+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2025-10-01T14:47:09+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=91beacf0f4966e0e5ddbcdedae008d8a66f93ab9'/>
<id>91beacf0f4966e0e5ddbcdedae008d8a66f93ab9</id>
<content type='text'>
Test cases:
  fd --color always | fzf --ansi --delimiter /
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim,nth:regular
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular --raw
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strikethrough --raw
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strip:strikethrough --raw
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strip:dim:strikethrough --raw
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test cases:
  fd --color always | fzf --ansi --delimiter /
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim,nth:regular
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular --raw
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strikethrough --raw
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strip:strikethrough --raw
  fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strip:dim:strikethrough --raw
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix ANSI attributes lost when nth:regular is set</title>
<updated>2025-05-30T12:02:35+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2025-05-30T11:52:13+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=15d6c17390ba4d795989bcc65c0afaf91caaf41d'/>
<id>15d6c17390ba4d795989bcc65c0afaf91caaf41d</id>
<content type='text'>
Example:
  # foo was not displayed in italic
  echo -e "\x1b[33;3mfoo \x1b[mbar" | fzf --ansi --color fg:dim,nth:regular --nth 1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Example:
  # foo was not displayed in italic
  echo -e "\x1b[33;3mfoo \x1b[mbar" | fzf --ansi --color fg:dim,nth:regular --nth 1
</pre>
</div>
</content>
</entry>
<entry>
<title>Add 'alt-bg' color for striped lines (#4370)</title>
<updated>2025-05-04T05:32:06+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2025-05-04T05:32:06+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=cd9517b67964ec281605d4375f5b4a37f8a77282'/>
<id>cd9517b67964ec281605d4375f5b4a37f8a77282</id>
<content type='text'>
Test cases:

1. 'jump' should show alternating background colors even when 'alt-bg' is
not defined as before.

  go run main.go --bind load:jump

Two differences:
  * The alternating lines will not be in bold (was a bug)
  * The marker column will not be rendered with alternating background color

2. Use alternating background color when 'alt-bg' is set

  go run main.go --color bg:238,alt-bg:237
  go run main.go --color bg:238,alt-bg:237 --highlight-line

3. 'selected-bg' should take precedence

  go run main.go --color bg:238,alt-bg:237,selected-bg:232 \
                 --highlight-line --multi --bind 'load:select+up+select+up'

4. Should work with text with ANSI colors

  declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |
    bat --plain --language bash --color always |
    go run main.go --read0 --ansi --reverse --multi \
                   --color bg:237,alt-bg:238,current-bg:236 --highlight-line

---

Close #4354
Fix #4372</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test cases:

1. 'jump' should show alternating background colors even when 'alt-bg' is
not defined as before.

  go run main.go --bind load:jump

Two differences:
  * The alternating lines will not be in bold (was a bug)
  * The marker column will not be rendered with alternating background color

2. Use alternating background color when 'alt-bg' is set

  go run main.go --color bg:238,alt-bg:237
  go run main.go --color bg:238,alt-bg:237 --highlight-line

3. 'selected-bg' should take precedence

  go run main.go --color bg:238,alt-bg:237,selected-bg:232 \
                 --highlight-line --multi --bind 'load:select+up+select+up'

4. Should work with text with ANSI colors

  declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |
    bat --plain --language bash --color always |
    go run main.go --read0 --ansi --reverse --multi \
                   --color bg:237,alt-bg:238,current-bg:236 --highlight-line

---

Close #4354
Fix #4372</pre>
</div>
</content>
</entry>
<entry>
<title>Allow displaying --nth parts in a different text style</title>
<updated>2025-01-15T16:38:45+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2025-01-15T16:38:45+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=3e7f032ec200f00f92fa53f9aecde4b989c7dd66'/>
<id>3e7f032ec200f00f92fa53f9aecde4b989c7dd66</id>
<content type='text'>
Close #4183
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Close #4183
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for hyperlinks in preview window</title>
<updated>2024-08-13T23:51:34+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2024-08-13T23:43:27+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=d90a969c00401a11d86a238eef29048dea42398a'/>
<id>d90a969c00401a11d86a238eef29048dea42398a</id>
<content type='text'>
Close #2165
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Close #2165
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix highlighting of regions that are matched multiple times</title>
<updated>2024-01-23T03:19:32+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2024-01-23T03:17:40+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=2a8b65e105ec1a1a9d4cecf947b7267f04453b7c'/>
<id>2a8b65e105ec1a1a9d4cecf947b7267f04453b7c</id>
<content type='text'>
Fix #3596
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix #3596
</pre>
</div>
</content>
</entry>
<entry>
<title>Add new tiebreak: 'chunk'</title>
<updated>2022-08-02T12:48:19+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2022-08-02T04:44:55+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=f0bfeba733f755a81b2e2d327268f2dabae8f684'/>
<id>f0bfeba733f755a81b2e2d327268f2dabae8f684</id>
<content type='text'>
Favors the line with shorter matched chunk. A chunk is a set of
consecutive non-whitespace characters.

Unlike the default `length`, this new scheme works well with tabular input.

  # length prefers item #1, because the whole line is shorter,
  # chunk prefers item #2, because the matched chunk ("foo") is shorter
  fzf --height=6 --header-lines=2 --tiebreak=chunk --reverse --query=fo &lt;&lt; "EOF"
  N | Field1 | Field2 | Field3
  - | ------ | ------ | ------
  1 | hello  | foobar | baz
  2 | world  | foo    | bazbaz
  EOF

If the input does not contain any spaces, `chunk` is equivalent to
`length`. But we're not going to set it as the default because it is
computationally more expensive.

Close #2285
Close #2537
- Not the exact solution to --tiebreak=length not taking --nth into account,
  but this should work. And the added benefit is that it works well even
  when --nth is not provided.
- Adding a bonus point to the last character of a word didn't turn out great.
  The order of the result suddenly changes when you type in the last
  character in the word producing a jarring effect.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Favors the line with shorter matched chunk. A chunk is a set of
consecutive non-whitespace characters.

Unlike the default `length`, this new scheme works well with tabular input.

  # length prefers item #1, because the whole line is shorter,
  # chunk prefers item #2, because the matched chunk ("foo") is shorter
  fzf --height=6 --header-lines=2 --tiebreak=chunk --reverse --query=fo &lt;&lt; "EOF"
  N | Field1 | Field2 | Field3
  - | ------ | ------ | ------
  1 | hello  | foobar | baz
  2 | world  | foo    | bazbaz
  EOF

If the input does not contain any spaces, `chunk` is equivalent to
`length`. But we're not going to set it as the default because it is
computationally more expensive.

Close #2285
Close #2537
- Not the exact solution to --tiebreak=length not taking --nth into account,
  but this should work. And the added benefit is that it works well even
  when --nth is not provided.
- Adding a bonus point to the last character of a word didn't turn out great.
  The order of the result suddenly changes when you type in the last
  character in the word producing a jarring effect.
</pre>
</div>
</content>
</entry>
<entry>
<title>Modernize build tags</title>
<updated>2022-03-29T12:23:45+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2022-03-29T12:20:33+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=b88eb72ac29b92c82a0d7c7f8d7b65380720b02c'/>
<id>b88eb72ac29b92c82a0d7c7f8d7b65380720b02c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Check gofmt in `make test`</title>
<updated>2021-02-28T09:28:21+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2021-02-28T09:28:21+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=bb0502ff4429580e363be708ff301c35479144e3'/>
<id>bb0502ff4429580e363be708ff301c35479144e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix unit tests</title>
<updated>2020-11-25T04:08:28+00:00</updated>
<author>
<name>Junegunn Choi</name>
<email>junegunn.c@gmail.com</email>
</author>
<published>2020-11-25T04:08:14+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/fzf/commit/?id=298342677107f19f2ef7035afcf5302fdf26aa51'/>
<id>298342677107f19f2ef7035afcf5302fdf26aa51</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
