Skip to content
Myr

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

6 files+62 added−8 removed

modified:plugin/fzf.vim+1 added-1 removed
126 unmodified lines
127endfunction128129function! 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%' }133endfunction134135function! fzf#install()
849 unmodified lines
modified:CHANGELOG.md+19 added
27 unmodified lines
28 --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 } }3637 " Popup with 100% width38 let g:fzf_layout = { 'window': { 'width': 1.0, 'height': 0.5, 'border': 'horizontal' } }3940 " Popup with 100% height41 let g:fzf_layout = { 'window': { 'width': 0.5, 'height': 1.0, 'border': 'vertical' } }4243 " 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' } }4546 " 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 | fzf
2 unmodified lines
56 # 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/releases61620.23.163------64- Added `--preview-window` options for disabling flags
941 unmodified lines
modified:install+1 added-1 removed
1#!/usr/bin/env bash23set -u45version=0.24.0-rc15version=0.24.06auto_completion=7key_bindings=8update_config=29shells="bash zsh fish"
372 unmodified lines
modified:install.ps1+1 added-1 removed
1$version="0.24.0-rc1"1$version="0.24.0"23$fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition45function check_binary () {
56 unmodified lines
modified:Makefile+40 added-4 removed
4 unmodified lines
5ROOT_DIR := $(shell dirname $(MAKEFILE))6SOURCES := $(wildcard *.go src/*.go src/*/*.go) $(MAKEFILE)78VERSION := $(shell git describe --abbrev=0)9VERSION_TRIM := $(shell sed "s/-.*//" <<< $(VERSION))10VERSION_REGEX := $(subst .,\.,$(VERSION_TRIM))11REVISION := $(shell git log -n 1 --pretty=format:%h -- $(SOURCES))12BUILD_FLAGS := -a -ldflags "-X main.version=$(VERSION) -X main.revision=$(REVISION) -w '-extldflags=$(LDFLAGS)'" -tags "$(TAGS)"1314BINARY64 := fzf-$(GOOS)_amd64
1 unmodified line
16BINARYARM6 := fzf-$(GOOS)_arm617BINARYARM7 := fzf-$(GOOS)_arm718BINARYARM8 := fzf-$(GOOS)_arm819BINARYPPC64LE := fzf-$(GOOS)_ppc64le18VERSION := $(shell awk -F= '/version =/ {print $$2}' src/constants.go | tr -d "\" ")2021# https://en.wikipedia.org/wiki/Uname22UNAME_M := $(shell uname -m)23ifeq ($(UNAME_M),x86_64)
12 unmodified lines
36 BINARY := $(BINARYARM8)37else ifeq ($(UNAME_M),ppc64le)38 BINARY := $(BINARYPPC64LE)39else39$(error "Build on $(UNAME_M) is not supported, yet.")40$(error Build on $(UNAME_M) is not supported, yet.)41endif4243all: target/$(BINARY)44
5 unmodified lines
50 github.com/junegunn/fzf/src/util5152install: bin/fzf5353release:54build:55 goreleaser --rm-dist --snapshot5657release:58ifndef GITHUB_TOKEN59 $(error GITHUB_TOKEN is not defined)60endif6162 # Check if we are on master branch63ifneq ($(shell git symbolic-ref --short HEAD),master)64 $(error Not on master branch)65endif6667 # 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.ps17374 # 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-note7778 # 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 --force8182 # Make a GitHub release83 goreleaser --rm-dist --release-notes tmp/release-note8485 # Push to master86 git checkout master87 git push origin master8889 # Delete temp branch90 git push origin --delete temp9192clean:93 $(RM) -r dist target9495target/$(BINARY64): $(SOURCES)
29 unmodified lines
125update:126 $(GO) get -u127 $(GO) mod tidy12893.PHONY: all release test install clean docker docker-test update129.PHONY: all build release test install clean docker docker-test update
modified:README-VIM.md-1 removed
296 unmodified lines
297 - `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`303304`fzf#wrap`
145 unmodified lines