Commit Graph

2713 Commits (master)
 

Author SHA1 Message Date
Alec Scott 82954258c1
Add Spack installation instructions to README (#3526) 5 months ago
Junegunn Choi 50f092551b
Lint: RuboCop 5 months ago
Junegunn Choi c36a64be68
Add accept-or-print-query
Close #3528
5 months ago
dependabot[bot] a343b20775
Bump golang.org/x/term from 0.13.0 to 0.15.0 (#3525)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.13.0 to 0.15.0.
- [Commits](https://github.com/golang/term/compare/v0.13.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months ago
junegunn a714e76ae1 Deploying to master from @ junegunn/fzf@d21d5c9510 🚀 5 months ago
junegunn d21d5c9510 Deploying to master from @ junegunn/fzf@cd6788a2bb 🚀 5 months ago
Junegunn Choi cd6788a2bb
Increase buffer size of event channel to avoid freeze on zero event
Fix #3516
5 months ago
junegunn 6b99399c41 Deploying to master from @ junegunn/fzf@952b6af445 🚀 5 months ago
Laurent Cheylus 952b6af445
Allow files creation in /tmp on OpenBSD (#3512)
- src/protector/protector_openbsd.go: add tmppath for pledge
    permissions
  - fix junegunn/fzf#3511

Signed-off-by: Laurent Cheylus <foxy@free.fr>
6 months ago
junegunn 7c674ad7fa Deploying to master from @ junegunn/fzf@d7d2ac3951 🚀 6 months ago
Junegunn Choi d7d2ac3951
0.44.1 6 months ago
Junegunn Choi 29e67d307a
Fix crash when preview window is hidden on focus event 6 months ago
Junegunn Choi 7320b7df62
0.44.0 6 months ago
Tomáš Janoušek 11fb4233f7
Fix Home, End on rxvt-unicode (#3507) 6 months ago
Junegunn Choi 84bb350b14
Reset horizontal offset of the prompt on 'beginning-of-line'
https://github.com/junegunn/fzf/issues/3498#issuecomment-1806651174
6 months ago
Junegunn Choi 38e3694d1c
Revert "Sixel and Kitty image support on Windows binary (#2544)"
This reverts commit 68db9cb499.
6 months ago
dependabot[bot] 1084935241
Bump golang.org/x/sys from 0.13.0 to 0.14.0 (#3503)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/sys/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6 months ago
Junegunn Choi f5f0b9ecaa
Fix a typo 6 months ago
Junegunn Choi 230fc49ae2
(Experimental) Add support for iTerm2 inline image protocol
Close #1102

  fzf --preview 'imgcat -W $FZF_PREVIEW_COLUMNS -H $FZF_PREVIEW_LINES {}'

Notes:
* There is no good way to determine the height of the rendered image,
  so we assume that the image takes the full height of the preview
  window. So the image cannot be displayed with the other text.
* fzf-preview.sh script was updated to use `imgcat` if it's available
  but `chafa` is not.
* iTerm2 also supports Sixel, so adding support for this protocol is not
  quite necessary but it renders animated GIFs much better (e.g. looping).
6 months ago
Junegunn Choi 250d507bdf
Fix a typo on CHANGELOG 6 months ago
Junegunn Choi a818653174
Add --listen-unsafe=ADDR to allow remote process execution (#3498) 6 months ago
junegunn 5c3b044740 Deploying to master from @ junegunn/fzf@c5aa8729a1 🚀 6 months ago
Junegunn Choi c5aa8729a1
Fix failing test case 6 months ago
Junegunn Choi 3f78d76da1
Allow accepting remote connections
Close #3498

  # FZF_API_KEY is required for a non-localhost listen address
  FZF_API_KEY=xxx fzf --listen 0.0.0.0:6266
6 months ago
Junegunn Choi 70c19ccf16
Fix CTRL-Z handling: Signal SIGSTOP to PGID
Fix #3501
6 months ago
Junegunn Choi 68db9cb499
Sixel and Kitty image support on Windows binary (#2544) 6 months ago
Junegunn Choi d0466fa777
Fix regression where tcell renderer not clearing the preview window 6 months ago
Junegunn Choi 21ab64e962
sixel: Export $FZF_PREVIEW_TOP to the preview command (#2544)
So that it can determine if it should subtract 1 from $FZF_PREVIEW_LINES
to avoid scrolling issue of Sixel image that touches the bottom of the
screen.
6 months ago
Junegunn Choi a0145cebf2
sixel: Better handling of animated GIFs (#2544) 6 months ago
Junegunn Choi 69176fc5f4
fzf-preview.sh: Fall back to `stty size` (#2544) 6 months ago
Junegunn Choi 278dce9ba6
Restore scroll after rendering full-height Sixel image (#2544)
When a Sixel image touches the bottom of the screen, the whole screen
scrolls up one line to make room for the cursor. Add an ANSI escape
code to compensate for the movement. Unfortunately, the movement of the
screen is sometimes noticeable.

  fzf --preview='fzf-preview.sh {}' --preview-window border-left
6 months ago
Junegunn Choi 1cfa3ee4c7
fzf-preview.sh: Check the number of arguments 6 months ago
Junegunn Choi 9a95cd5794
Fix Sixel height calculation (#2544) 6 months ago
akdevservices a62fe3df6f
[completion] Handle all hostaliases in /etc/hosts (#3495)
* Fix #3488
* Handle inline comments in hosts file
6 months ago
junegunn 7701244a08 Deploying to master from @ junegunn/fzf@96e31e4b78 🚀 6 months ago
Junegunn Choi 96e31e4b78
Fix Sixel issues (#2544)
* Fix regression where previous image is not properly cleared
* Change the way fzf calculates the number of required lines to display
  an image (ceil -> floor) to fix the issue where an image is always
  rendered as a wireframe.
6 months ago
Junegunn Choi ec208af474
Go 1.18 or above is required
Close #3492
6 months ago
Junegunn Choi 242641264d
Clear previous non-Sixel text before rendering Sixel image (#2544) 6 months ago
Junegunn Choi d3a9a0615b
Fix kitty icat handling 6 months ago
Junegunn Choi 3277e8c89c
Remove $FZF_PREVIEW_PIXEL_{WIDTH,HEIGHT} (#2544)
They are not neccessary because we can use a program such as chafa that
can resize images by the terminal columns and lines.
6 months ago
Junegunn Choi d02b9442a5
(Experimental) Improve Sixel graphics support (#2544)
Progress:

* Sixel image can now be displayed with other text, and is scrollable
* If an image can't be displayed entirely due to the scroll offset, fzf
  will render a wireframe to indicate that an image should be displayed
* Renamed $FZF_PREVIEW_{WIDTH,HEIGHT} to $FZF_PREVIEW_PIXEL_{WIDTH,HEIGHT}
  for clarity
* Added bin/fzf-preview.sh script to demonstrate how to display an image
  using Kitty or Sixel protocol

An example:

  ls *.jpg | fzf --preview='seq $((FZF_PREVIEW_LINES*9/10)); fzf-preview.sh {}; seq 100'

A known issue:

* If you reduce the size of the preview window, the image may extend
  beyond the preview window
6 months ago
Junegunn Choi bac385b59c
Simplify LightRenderer.Size() 7 months ago
Junegunn Choi b1a0ab8086
Experimental Sixel support (#2544) 7 months ago
junegunn a33749eb71 Deploying to master from @ junegunn/fzf@f5e4ee90e4 🚀 7 months ago
Junegunn Choi f5e4ee90e4
Fix bug where top section of the previous preview content appearing
when the preview window is re-enabled and the current preview process is
taking more than 500ms and previewDelayed is triggered

  fzf --preview 'sleep 1; date; seq 1000' --bind space:toggle-preview
7 months ago
Junegunn Choi 690d5e6dbd
Fix scrollability of the preview window when preview offset is specified
This should not be scrollable

  fzf --preview 'seq $FZF_PREVIEW_LINES' --preview-window '~5'
7 months ago
Junegunn Choi a76c055b63
Fix inconsistent preview window width with --border
fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border
7 months ago
Junegunn Choi 70c461c60b
[bash] Preserve existing completion for ssh
Fix #3484
7 months ago
Laurent Cheylus d51b71ee80
Fix crash on OpenBSD with --listen (#3483)
- src/protector/protector_openbsd.go: add inet permissions for pledge
  - fix #3481

Signed-off-by: Laurent Cheylus <foxy@free.fr>
7 months ago
junegunn 3666448ca6 Deploying to master from @ junegunn/fzf@d3311d9f43 🚀 7 months ago