summaryrefslogtreecommitdiff
path: root/src/tui/light_unix.go
AgeCommit message (Collapse)Author
2025-04-20Add --tty-default=/dev/tty and --no-tty-default option (#4352)Junegunn Choi
Fix #4242. Use --no-tty-default, if you want fzf to perform a TTY look-up instead of defaulting to /dev/tty.
2024-12-31Add --list-border for additional border around the list sectionJunegunn Choi
Close #4148
2024-06-20Code cleanupJunegunn Choi
2024-05-23execute: Open separate handles to /dev/tty (in, out, err)Junegunn Choi
# This will no longer cause 'Vim: Warning: Output is not to a terminal' fzf --bind 'enter:execute:vim {}' > /tmp/foo
2024-05-15Refactor tui.TtyIn()Junegunn Choi
2024-05-15Revert "Close handles to /dev/tty", instead reuse handlesJunegunn Choi
2024-05-14Close handles to /dev/ttyJunegunn Choi
2024-05-14Render UI directly to /dev/ttyJunegunn Choi
See https://github.com/junegunn/fzf/discussions/3792 This allows us to separately capture the standard error from fzf and its child processes, and there's less chance of user errors of redirecting the error stream and hiding fzf.
2024-05-07Refactor the code so that fzf can be used as a library (#3769)Junegunn Choi
2024-04-13Enable profiling options when 'pprof' tag is set (#2813)Charlie Vieth
This commit enables cpu, mem, block, and mutex profling of the FZF executable. To support flushing the profiles at program exit it adds util.AtExit to register "at exit" functions and mandates that util.Exit is used instead of os.Exit to stop the program. Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2023-10-26(Experimental) Improve Sixel graphics support (#2544)Junegunn Choi
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
2023-10-23Simplify LightRenderer.Size()Junegunn Choi
2023-10-23Experimental Sixel support (#2544)Junegunn Choi
2022-03-29Modernize build tagsJunegunn Choi
2021-03-20Replace golang.org/x/crypto/ssh/terminal with golang.org/x/term (#2395)Mitsuo Heijo
See https://github.com/golang/go/issues/31044
2020-09-02Add truecolor support for Windows, if available (#2156)Michael Kelley
- Update to latest tcell which has 24 bit Windows support - light renderer under Windows defaults to Dark256, if possible - Respect TCELL_TRUECOLOR - Remove tcell 1.3 references
2020-03-10Make height option work under Windows (#1341)Michael Kelley
Separate Unix & Windows code into platform specific files for light renderer