Comments (6)
You can just append --no-height
at the end, because the last one wins.
export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --no-height"
from fzf.
With the same setup, non-ascii characters make Fzf quit; it's intricate
from fzf.
I found out that as soon as I removed the --height
option from $FZF_DEFAULT_OPTS
, fzf accepts non-ascii characters in Git Bash in Windows Terminal; however I could not make fzf work at all in Git bash.
Regarding the --height
option, it's unfortunately set by almost all common commands, such as Ctrl-T
.
The following lines, say in .bash_profile
, remove it wherever possible:
export FZF_DEFAULT_OPTS="${FZF_DEFAULT_OPTS//--height[=[:space:]][1-9][0-9]?/ }"
export FZF_CTRL_T_OPTS="${FZF_CTRL_T_OPTS//--height[=[:space:]][1-9][0-9]?/ }"
export FZF_CTRL_R_OPTS="${FZF_CTRL_R_OPTS//--height[=[:space:]][1-9][0-9]?/ }"
export FZF_ALT_C_OPTS="${FZF_DEFAULT_OPTS} --preview='tree.com //F {} | tail +3 | head -\$LINES'"
Ideally, of course, the issue with setting --height
in Fzf in Git Bash itself could be fixed.
from fzf.
Thank you, I was not aware of it. This is more robust. Ideally, since the provided bash scripts set their own custom parameters, add a check for Git Bash, say by [ -z ${MSYSTEM+x} ] || ...
, and append --no-height
.
from fzf.
I can confirm that --no-height
works for me too. In both Windows Terminal and mintty(from git bash).
BTW echo $FZF_DEFAULT_OPTS
is empty so I suppose --height
is the default, right?
from fzf.
Yes, you can inspect here:
__fzf_defaults() {
# $1: Prepend to FZF_DEFAULT_OPTS_FILE and FZF_DEFAULT_OPTS
# $2: Append to FZF_DEFAULT_OPTS_FILE and FZF_DEFAULT_OPTS
echo "--height ${FZF_TMUX_HEIGHT:-40%} --bind=ctrl-z:ignore $1"
command cat "${FZF_DEFAULT_OPTS_FILE-}" 2> /dev/null
echo "${FZF_DEFAULT_OPTS-} $2"
}
__fzf_select__() {
FZF_DEFAULT_COMMAND=${FZF_CTRL_T_COMMAND:-} \
FZF_DEFAULT_OPTS=$(__fzf_defaults "--reverse --walker=file,dir,follow,hidden --scheme=path" "${FZF_CTRL_T_OPTS-} -m") \
from fzf.
Related Issues (20)
- Action to clear selections if there are any else exit fzf. (Feature request) HOT 1
- Feature request: no-clear option that affects execute action (no clear before executing)
- On fzf.vim opening in new cmd Window in Git Bash HOT 41
- [Feature Request] Combining `--expect` and `--bind` HOT 4
- left-align preview window to the right of the finder HOT 1
- Does it support using fzf inside lldb debugger for searching command history HOT 1
- --preview-window=auto to place the preview window based on terminal size HOT 4
- Neovim: Opening a file via `:FZF` clears messages (e.g. warning W325 for existing swapfile is not shown) HOT 2
- Key Bindings For Windows Muscle Memory HOT 2
- Use `builtin cd` in fzf Alt+C Key Bindings for Fish Shell HOT 1
- Update fedora repository version (Rawhide and Fedora 40) HOT 2
- Reloading on windows seems broken HOT 2
- Breaking Change in Keybinding Behavior due to Commit 6b4358f HOT 2
- Command history sorting order HOT 1
- Directories not walked recursively in FUSE mounted directories HOT 1
- Issue with single key binding to toggle file and directory mode HOT 7
- Examine Profile-guided optimization (PGO) HOT 1
- Allow for external shell script in --preview HOT 2
- [Feature Request] History syntax highlighting HOT 4
- Tiebreak parameter of length or end does not produce the expected results HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fzf.