0.24.0
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Junegunn Choi · committed by Junegunn Choi · parent 51dfacd · Browse files · 6 files·+62 added−8 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+62 added−8 removed
- other:+62 added−8 removed
Provenance
- Commit
0d5f862- Tree
6648774- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
51dfacd
6 files changed+62 added−8 removed
modified:plugin/fzf.vim+1 added-1 removed
126 unmodified lines127 endfunction128 129 function! s:default_layout()130 return s:popup_support()131- \ ? { 'window' : { 'width': 0.9, 'height': 0.6, 'highlight': 'Normal' } }131+ \ ? { 'window' : { 'width': 0.9, 'height': 0.6 } }132 \ : { 'down': '~40%' }133 endfunction134 135 function! fzf#install()849 unmodified linesmodified:CHANGELOG.md+19 added
27 unmodified lines28 --pointer ' '29 ```30 - More `--border` options31 - `vertical`, `top`, `bottom`, `left`, `right`32+ - Updated Vim plugin to use these new `--border` options33+ ```vim34+ " Floating popup window in the center of the screen35+ let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }36+37+ " Popup with 100% width38+ let g:fzf_layout = { 'window': { 'width': 1.0, 'height': 0.5, 'border': 'horizontal' } }39+40+ " Popup with 100% height41+ let g:fzf_layout = { 'window': { 'width': 0.5, 'height': 1.0, 'border': 'vertical' } }42+43+ " Similar to 'down' layout, but it uses a popup window and doesn't affect the window layout44+ let g:fzf_layout = { 'window': { 'width': 1.0, 'height': 0.5, 'yoffset': 1.0, 'border': 'top' } }45+46+ " Opens on the right;47+ " 'highlight' option is still supported but it will only take the foreground color of the group48+ let g:fzf_layout = { 'window': { 'width': 0.5, 'height': 1.0, 'xoffset': 1.0, 'border': 'left', 'highlight': 'Comment' } }49+ ```50 - To indicate if `--multi` mode is enabled, fzf will print the number of51 selected items even when no item is selected52 ```sh53 seq 100 | fzf2 unmodified lines56 # 100/100 (0)57 seq 100 | fzf --multi 558 # 100/100 (0/5)59 ```60+- Since 0.24.0, release binaries will be uploaded to https://github.com/junegunn/fzf/releases61 62 0.23.163 ------64 - Added `--preview-window` options for disabling flags941 unmodified linesmodified:install+1 added-1 removed
1 #!/usr/bin/env bash2 3 set -u4 5-version=0.24.0-rc15+version=0.24.06 auto_completion=7 key_bindings=8 update_config=29 shells="bash zsh fish"372 unmodified linesmodified:install.ps1+1 added-1 removed
1-$version="0.24.0-rc1"1+$version="0.24.0"2 3 $fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition4 5 function check_binary () {56 unmodified linesmodified:Makefile+40 added-4 removed
4 unmodified lines5 ROOT_DIR := $(shell dirname $(MAKEFILE))6 SOURCES := $(wildcard *.go src/*.go src/*/*.go) $(MAKEFILE)7 8 VERSION := $(shell git describe --abbrev=0)9+VERSION_TRIM := $(shell sed "s/-.*//" <<< $(VERSION))10+VERSION_REGEX := $(subst .,\.,$(VERSION_TRIM))11 REVISION := $(shell git log -n 1 --pretty=format:%h -- $(SOURCES))12 BUILD_FLAGS := -a -ldflags "-X main.version=$(VERSION) -X main.revision=$(REVISION) -w '-extldflags=$(LDFLAGS)'" -tags "$(TAGS)"13 14 BINARY64 := fzf-$(GOOS)_amd641 unmodified line16 BINARYARM6 := fzf-$(GOOS)_arm617 BINARYARM7 := fzf-$(GOOS)_arm718 BINARYARM8 := fzf-$(GOOS)_arm819 BINARYPPC64LE := fzf-$(GOOS)_ppc64le18-VERSION := $(shell awk -F= '/version =/ {print $$2}' src/constants.go | tr -d "\" ")20 21 # https://en.wikipedia.org/wiki/Uname22 UNAME_M := $(shell uname -m)23 ifeq ($(UNAME_M),x86_64)12 unmodified lines36 BINARY := $(BINARYARM8)37 else ifeq ($(UNAME_M),ppc64le)38 BINARY := $(BINARYPPC64LE)39 else39-$(error "Build on $(UNAME_M) is not supported, yet.")40+$(error Build on $(UNAME_M) is not supported, yet.)41 endif42 43 all: target/$(BINARY)44 5 unmodified lines50 github.com/junegunn/fzf/src/util51 52 install: bin/fzf53 53-release:54+build:55 goreleaser --rm-dist --snapshot56 57+release:58+ifndef GITHUB_TOKEN59+ $(error GITHUB_TOKEN is not defined)60+endif61+62+ # Check if we are on master branch63+ifneq ($(shell git symbolic-ref --short HEAD),master)64+ $(error Not on master branch)65+endif66+67+ # Check if version numbers are properly updated68+ grep -q ^$(VERSION_REGEX)$$ CHANGELOG.md69+ grep -qF '"fzf $(VERSION_TRIM)"' man/man1/fzf.170+ grep -qF '"fzf $(VERSION_TRIM)"' man/man1/fzf-tmux.171+ grep -qF $(VERSION) install72+ grep -qF $(VERSION) install.ps173+74+ # Make release note out of CHANGELOG.md75+ sed -n '/^$(VERSION_REGEX)$$/,/^[0-9]/p' CHANGELOG.md | tail -r | \76+ sed '1,/^ *$$/d' | tail -r | sed 1,2d | tee tmp/release-note77+78+ # Push to temp branch first so that install scripts always works on master branch79+ git checkout -B temp master80+ git push origin temp --follow-tags --force81+82+ # Make a GitHub release83+ goreleaser --rm-dist --release-notes tmp/release-note84+85+ # Push to master86+ git checkout master87+ git push origin master88+89+ # Delete temp branch90+ git push origin --delete temp91+92 clean:93 $(RM) -r dist target94 95 target/$(BINARY64): $(SOURCES)29 unmodified lines125 update:126 $(GO) get -u127 $(GO) mod tidy128 93-.PHONY: all release test install clean docker docker-test update129+.PHONY: all build release test install clean docker docker-test updatemodified:README-VIM.md-1 removed
296 unmodified lines297 - `height` [float range [0 ~ 1]] or [integer range [4 ~ ]]298 - Optional:299 - `yoffset` [float default 0.5 range [0 ~ 1]]300 - `xoffset` [float default 0.5 range [0 ~ 1]]301- - `highlight` [string default `'Comment'`]: Highlight group for border301 - `border` [string default `rounded`]: Border style302 - `rounded` / `sharp` / `horizontal` / `vertical` / `top` / `bottom` / `left` / `right` / `none`303 304 `fzf#wrap`145 unmodified lines