mirror of
https://github.com/junegunn/fzf.git
synced 2026-11-24 04:36:07 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea07eca3e0 | ||
|
|
9a0705815c | ||
|
|
0029be819b | ||
|
|
ea69a9eb8c | ||
|
|
bf4869b7fa | ||
|
|
eea2081857 | ||
|
|
4499615fe9 |
No files matched your search
@@ -1,17 +0,0 @@
|
||||
## Contribution Policy
|
||||
|
||||
We do not accept pull requests generated primarily by AI without genuine understanding or real-world usage context.
|
||||
|
||||
All contributions are expected to demonstrate:
|
||||
- A clear understanding of the codebase
|
||||
- Alignment with product direction
|
||||
- Thoughtful reasoning behind changes
|
||||
- Evidence of real-world usage or hands-on experience with the problem
|
||||
|
||||
If these expectations are not met, we would prefer to implement the changes ourselves rather than spend time reviewing low-effort submissions.
|
||||
|
||||
---
|
||||
|
||||
## Acknowledgement
|
||||
|
||||
- [ ] I confirm that this PR meets the above expectations and reflects my own understanding and real-world context.
|
||||
@@ -33,12 +33,12 @@ jobs:
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v4
|
||||
uses: github/codeql-action/init@v4.39.4
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v4
|
||||
uses: github/codeql-action/autobuild@v4.39.4
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v4
|
||||
uses: github/codeql-action/analyze@v4.39.4
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: vedantmgoyal2009/winget-releaser@4ffc7888bffd451b357355dc214d43bb9f23917e # v2
|
||||
- uses: vedantmgoyal2009/winget-releaser@b7370d4d152efdce803a26cc6ca9eee58cb2ad54 # v2
|
||||
with:
|
||||
identifier: junegunn.fzf
|
||||
release-tag: ${{ inputs.release-tag }}
|
||||
|
||||
@@ -4,6 +4,8 @@ CHANGELOG
|
||||
0.75.1
|
||||
------
|
||||
- Fixed `--info inline-right:PREFIX` leaving part of the previous output when the info gets shorter (#4953)
|
||||
- Fixed a one-line picker overwriting the line above it, e.g. `--height=~50%` with inline info and empty input (#4958) (@nhooyr)
|
||||
- [vim] Fixed the popup window being cropped on Windows when the first redraw after starting the terminal is delayed (#4957) (@FanXiangTM)
|
||||
|
||||
0.75.0
|
||||
------
|
||||
|
||||
@@ -1124,6 +1124,10 @@ function! s:execute_term(dict, command, temps) abort
|
||||
endif
|
||||
if is_popup
|
||||
let term_opts.hidden = 1
|
||||
" Avoid resizing the terminal after fzf starts (#4957)
|
||||
let bounds = s:popup_bounds()
|
||||
let term_opts.term_rows = bounds.height
|
||||
let term_opts.term_cols = bounds.width
|
||||
else
|
||||
let term_opts.curwin = 1
|
||||
endif
|
||||
|
||||
+4
-1
@@ -292,7 +292,10 @@ func (r *LightRenderer) Init() error {
|
||||
}
|
||||
|
||||
r.enableModes()
|
||||
r.csi(fmt.Sprintf("%dA", r.MaxY()-1))
|
||||
// CSI 0 A means one row up, not zero rows.
|
||||
if height := r.MaxY(); height > 1 {
|
||||
r.csi(fmt.Sprintf("%dA", height-1))
|
||||
}
|
||||
r.csi("G")
|
||||
r.csi("K")
|
||||
if !r.clearOnExit && !r.fullscreen {
|
||||
|
||||
@@ -187,6 +187,17 @@ class TestLayout < TestInteractive
|
||||
tmux.until { assert_block(expected, it) }
|
||||
end
|
||||
|
||||
def test_height_range_empty_input_preserves_previous_line
|
||||
tmux.send_keys %(printf 'KEEP THIS LINE\\n'; : | FZF_DEFAULT_OPTS_FILE= #{FZF} --style=minimal --height='~50%' --info=inline-right), :Enter
|
||||
tmux.until do |lines|
|
||||
assert_match(%r{0/0}, lines.last)
|
||||
assert_equal 'KEEP THIS LINE', lines[-2]
|
||||
end
|
||||
|
||||
tmux.send_keys 'C-c'
|
||||
tmux.until { |lines| assert_equal 'KEEP THIS LINE', lines.last }
|
||||
end
|
||||
|
||||
def test_height_range_fit_preview_above
|
||||
tmux.send_keys 'seq 3 | fzf --height ~100% --info=inline --border rounded --preview-window border-rounded --preview "seq {}" --preview-window up,60%', :Enter
|
||||
expected = <<~OUTPUT
|
||||
|
||||
Reference in new issue
Block a user