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

Development branch for next release (0.53) #3807

Merged
merged 69 commits into from
Jun 6, 2024
Merged

Development branch for next release (0.53) #3807

merged 69 commits into from
Jun 6, 2024

Conversation

junegunn
Copy link
Owner

@junegunn junegunn commented May 19, 2024

Because this release will have some documentation changes, I'll be working on a non-master branch. Tests are welcome.

Native --tmux integration

# --tmux [center|top|bottom|left|right][,SIZE[%]][,SIZE[%]]

# Center, 50% width 50% height
fzf --tmux center

# Center, 80% width and height
fzf --tmux 80%

# Center ,100% width and 50% height
fzf --tmux 100%,50%

# Left, 40% width
fzf --tmux left,40%

# Left, 40% width, 90% height
fzf --tmux left,40%,90%

# Top, 40% height
fzf --tmux top,40%

# Top, 90% height, 40% height
fzf --tmux top,90%,40%

New defaults for pointer and marker

fzf --tmux 30% --multi
image
fzf --tmux 30% --multi --color gutter:-1
image
fzf --tmux 30% --multi --no-color
image
  • The previous defaults (>) wouldn't look nice with multi-line display
  • These Unicode bars look nice with or without the gutter and feel kind of modern

Multi-line display of multi-line items

rg -p bash | perl -0777 -pe 's/\n\n/\n\0/gm' | fzf --read0 --ansi --multi --highlight-line --reverse --tmux 70%
image

--tail=NUM to limit the number of items to keep in memory

Useful when you want to browse an endless stream of data (e.g. log stream) with fzf while limiting memory usage.

# Interactive filtering of a log stream
tail -f *.log | fzf --tail 100000 --tac --no-sort --exact

Following NO_COLOR protocol

If $NO_COLOR environment variable is set to a non-empty value, fzf will default to --no-color mode.

Git bash (mintty) support

fzf now works on Git bash out of the box via winpty. However, --height option doesn't work.

Embedded man page

You can run fzf --man to see the man page. This simplifies the distribution.

* Tidy up
* Mention `--tmux`
fzf --tmux center --bind 'enter:become:vim {}'
* Pointer: '▌'
* Marker: '▏'

They will still be set to '>' if `--no-unicode` is given.

Reasons:
* They look okay
* They work better with multi-line items (WIP)
@junegunn junegunn self-assigned this May 19, 2024
@junegunn junegunn marked this pull request as draft May 20, 2024 00:05
@junegunn junegunn changed the title Development Development branch for next release May 20, 2024
@junegunn junegunn changed the title Development branch for next release Development branch for next release (0.53) May 20, 2024
Close #3806

Known limitation:
* --height cannot be used
@junegunn
Copy link
Owner Author

junegunn commented May 20, 2024

image

Windows terminals don't seem to render correctly. Going to use for marker instead.

@junegunn junegunn force-pushed the devel branch 4 times, most recently from 58a95c7 to 2c7c6e8 Compare May 20, 2024 16:05
This is to make shell integration work out of the box on Git bash.

  eval "$(fzf --bash)"
  vim <CTRL-T>
    # would print '--height option is currently not supported on this platform'
This reload command wouldn't run before the fix:

  : | fzf --bind 'start:reload:echo \{}'
@junegunn junegunn merged commit cbf91f2 into master Jun 6, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants