Projects STRLCPY fzf Commits 55241497
🤬
  • ■ ■ ■ ■ ■ ■
    .gitignore
    1 1  bin/fzf
    2 2  bin/fzf.exe
     3 +dist
    3 4  target
    4 5  pkg
    5 6  Gemfile.lock
    skipped 3 lines
    9 10  gopath
    10 11  *.zwc
    11 12  fzf
     13 +tmp
     14 +*.patch
    12 15   
  • ■ ■ ■ ■ ■ ■
    .gon.hcl
     1 +source = ["./dist/fzf-macos_darwin_amd64/fzf"]
     2 +bundle_id = "kr.junegunn.fzf"
     3 + 
     4 +apple_id {
     5 + username = "[email protected]"
     6 + password = "@env:AC_PASSWORD"
     7 +}
     8 + 
     9 +sign {
     10 + application_identity = "Apple Development: [email protected]"
     11 +}
     12 + 
  • ■ ■ ■ ■ ■ ■
    .goreleaser.yml
     1 +---
     2 +project_name: fzf
     3 + 
     4 +before:
     5 + hooks:
     6 + - go mod download
     7 + 
     8 +builds:
     9 + - id: fzf-macos
     10 + binary: fzf
     11 + goos:
     12 + - darwin
     13 + goarch:
     14 + - amd64
     15 + ldflags:
     16 + - "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
     17 + hooks:
     18 + post: gon .gon.hcl
     19 + 
     20 + - goos:
     21 + - linux
     22 + - windows
     23 + - freebsd
     24 + - openbsd
     25 + goarch:
     26 + - amd64
     27 + - arm
     28 + - arm64
     29 + goarm:
     30 + - 5
     31 + - 6
     32 + - 7
     33 + ldflags:
     34 + - "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
     35 + ignore:
     36 + - goos: freebsd
     37 + goarch: arm
     38 + - goos: openbsd
     39 + goarch: arm
     40 + - goos: freebsd
     41 + goarch: arm64
     42 + - goos: openbsd
     43 + goarch: arm64
     44 + 
     45 +archives:
     46 + - name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
     47 + format: tar.gz
     48 + format_overrides:
     49 + - goos: windows
     50 + format: zip
     51 + files:
     52 + - non-existent*
     53 + 
     54 +release:
     55 + github:
     56 + owner: junegunn
     57 + name: fzf
     58 + prerelease: auto
     59 + name_template: '{{ .Tag }}'
     60 + 
     61 +snapshot:
     62 + name_template: "{{ .Tag }}-devel"
     63 + 
     64 +changelog:
     65 + sort: asc
     66 + filters:
     67 + exclude:
     68 + - README
     69 + - test
     70 + 
  • ■ ■ ■ ■
    CHANGELOG.md
    skipped 22 lines
    23 23   # * Italic style may not be supported by some terminals
    24 24   rg --line-number --no-heading --color=always "" |
    25 25   fzf --ansi --prompt "Rg: " \
    26  - --color fg+:italic,hl:underline:-1,hl+:underline:reverse:-1 \
     26 + --color fg+:italic,hl:underline:-1,hl+:italic:underline:reverse:-1 \
    27 27   --color pointer:reverse,prompt:reverse,input:159 \
    28 28   --pointer ' '
    29 29   ```
    skipped 958 lines
  • ■ ■ ■ ■ ■
    Makefile
    skipped 4 lines
    5 5  ROOT_DIR := $(shell dirname $(MAKEFILE))
    6 6  SOURCES := $(wildcard *.go src/*.go src/*/*.go) $(MAKEFILE)
    7 7   
     8 +VERSION := $(shell git describe --abbrev=0)
    8 9  REVISION := $(shell git log -n 1 --pretty=format:%h -- $(SOURCES))
    9  -BUILD_FLAGS := -a -ldflags "-X main.revision=$(REVISION) -w '-extldflags=$(LDFLAGS)'" -tags "$(TAGS)"
     10 +BUILD_FLAGS := -a -ldflags "-X main.version=$(VERSION) -X main.revision=$(REVISION) -w '-extldflags=$(LDFLAGS)'" -tags "$(TAGS)"
    10 11   
    11 12  BINARY64 := fzf-$(GOOS)_amd64
    12 13  BINARYARM5 := fzf-$(GOOS)_arm5
    skipped 2 lines
    15 16  BINARYARM8 := fzf-$(GOOS)_arm8
    16 17  BINARYPPC64LE := fzf-$(GOOS)_ppc64le
    17 18  VERSION := $(shell awk -F= '/version =/ {print $$2}' src/constants.go | tr -d "\" ")
    18  -RELEASE64 := fzf-$(VERSION)-$(GOOS)_amd64
    19  -RELEASEARM5 := fzf-$(VERSION)-$(GOOS)_arm5
    20  -RELEASEARM6 := fzf-$(VERSION)-$(GOOS)_arm6
    21  -RELEASEARM7 := fzf-$(VERSION)-$(GOOS)_arm7
    22  -RELEASEARM8 := fzf-$(VERSION)-$(GOOS)_arm8
    23  -RELEASEPPC64LE := fzf-$(VERSION)-$(GOOS)_ppc64le
    24 19   
    25 20  # https://en.wikipedia.org/wiki/Uname
    26 21  UNAME_M := $(shell uname -m)
    skipped 19 lines
    46 41   
    47 42  all: target/$(BINARY)
    48 43   
    49  -target:
    50  - mkdir -p $@
    51  - 
    52  -ifeq ($(GOOS),windows)
    53  -release: target/$(BINARY64)
    54  - cd target && cp -f $(BINARY64) fzf.exe && zip $(RELEASE64).zip fzf.exe
    55  - cd target && rm -f fzf.exe
    56  -else ifeq ($(GOOS),linux)
    57  -release: target/$(BINARY64) target/$(BINARYARM5) target/$(BINARYARM6) target/$(BINARYARM7) target/$(BINARYARM8) target/$(BINARYPPC64LE)
    58  - cd target && cp -f $(BINARY64) fzf && tar -czf $(RELEASE64).tgz fzf
    59  - cd target && cp -f $(BINARYARM5) fzf && tar -czf $(RELEASEARM5).tgz fzf
    60  - cd target && cp -f $(BINARYARM6) fzf && tar -czf $(RELEASEARM6).tgz fzf
    61  - cd target && cp -f $(BINARYARM7) fzf && tar -czf $(RELEASEARM7).tgz fzf
    62  - cd target && cp -f $(BINARYARM8) fzf && tar -czf $(RELEASEARM8).tgz fzf
    63  - cd target && cp -f $(BINARYPPC64LE) fzf && tar -czf $(RELEASEPPC64LE).tgz fzf
    64  - cd target && rm -f fzf
    65  -else
    66  -release: target/$(BINARY64)
    67  - cd target && cp -f $(BINARY64) fzf && tar -czf $(RELEASE64).tgz fzf
    68  - cd target && rm -f fzf
    69  -endif
    70  - 
    71  -release-all: clean test
    72  - GOOS=darwin make release
    73  - GOOS=linux make release
    74  - GOOS=freebsd make release
    75  - GOOS=openbsd make release
    76  - GOOS=windows make release
    77  - 
    78 44  test: $(SOURCES)
    79 45   SHELL=/bin/sh GOOS= $(GO) test -v -tags "$(TAGS)" \
    80 46   github.com/junegunn/fzf/src \
    skipped 3 lines
    84 50   
    85 51  install: bin/fzf
    86 52   
     53 +release:
     54 + goreleaser --rm-dist --snapshot
     55 + 
    87 56  clean:
    88  - $(RM) -r target
     57 + $(RM) -r dist target
    89 58   
    90 59  target/$(BINARY64): $(SOURCES)
    91 60   GOARCH=amd64 $(GO) build $(BUILD_FLAGS) -o $@
    skipped 29 lines
    121 90   $(GO) get -u
    122 91   $(GO) mod tidy
    123 92   
    124  -.PHONY: all release release-all test install clean docker docker-test update
     93 +.PHONY: all release test install clean docker docker-test update
    125 94   
  • ■ ■ ■ ■
    README.md
    skipped 81 lines
    82 82  You can [download fzf executable][bin] alone if you don't need the extra
    83 83  stuff.
    84 84   
    85  -[bin]: https://github.com/junegunn/fzf-bin/releases
     85 +[bin]: https://github.com/junegunn/fzf/releases
    86 86   
    87 87  ### Using Homebrew or Linuxbrew
    88 88   
    skipped 614 lines
  • ■ ■ ■ ■ ■ ■
    go.mod
    skipped 1 lines
    2 2   
    3 3  require (
    4 4   github.com/gdamore/tcell v1.4.0
    5  - github.com/lucasb-eyer/go-colorful v1.0.3 // indirect
    6 5   github.com/mattn/go-isatty v0.0.12
    7 6   github.com/mattn/go-runewidth v0.0.9
    8  - github.com/mattn/go-shellwords v1.0.9
    9  - github.com/saracen/walker v0.0.0-20191201085201-324a081bae7e
    10  - golang.org/x/crypto v0.0.0-20200128174031-69ecbb4d6d5d
    11  - golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5
    12  - golang.org/x/text v0.3.2 // indirect
     7 + github.com/mattn/go-shellwords v1.0.10
     8 + github.com/saracen/walker v0.1.1
     9 + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897
     10 + golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 // indirect
     11 + golang.org/x/sys v0.0.0-20201026173827-119d4633e4d1
     12 + golang.org/x/text v0.3.3 // indirect
    13 13  )
    14 14   
    15 15  go 1.13
    skipped 1 lines
  • ■ ■ ■ ■ ■ ■
    go.sum
    1  -github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
    2 1  github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
    3 2  github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
    4 3  github.com/gdamore/tcell v1.4.0 h1:vUnHwJRvcPQa3tzi+0QI4U9JINXYJlOz9yiaiPQ2wMU=
    5 4  github.com/gdamore/tcell v1.4.0/go.mod h1:vxEiSDZdW3L+Uhjii9c3375IlDmR05bzxY404ZVSMo0=
    6  -github.com/lucasb-eyer/go-colorful v1.0.2 h1:mCMFu6PgSozg9tDNMMK3g18oJBX7oYGrC09mS6CXfO4=
    7  -github.com/lucasb-eyer/go-colorful v1.0.2/go.mod h1:0MS4r+7BZKSJ5mw4/S5MPN+qHFF1fYclkSPilDOKW0s=
    8 5  github.com/lucasb-eyer/go-colorful v1.0.3 h1:QIbQXiugsb+q10B+MI+7DI1oQLdmnep86tWFlaaUAac=
    9 6  github.com/lucasb-eyer/go-colorful v1.0.3/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
    10 7  github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
    11 8  github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
    12  -github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y=
    13  -github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
    14 9  github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
    15  -github.com/mattn/go-runewidth v0.0.8 h1:3tS41NlGYSmhhe/8fhGRzc+z3AYCw1Fe1WAyLuujKs0=
    16  -github.com/mattn/go-runewidth v0.0.8/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
    17 10  github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0=
    18 11  github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
    19  -github.com/mattn/go-shellwords v1.0.9 h1:eaB5JspOwiKKcHdqcjbfe5lA9cNn/4NRRtddXJCimqk=
    20  -github.com/mattn/go-shellwords v1.0.9/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y=
    21  -github.com/saracen/walker v0.0.0-20191201085201-324a081bae7e h1:NO86zOn5ScSKW8wRbMaSIcjDZUFpWdCQQnexRqZ9h9A=
    22  -github.com/saracen/walker v0.0.0-20191201085201-324a081bae7e/go.mod h1:G0Z6yVPru183i2MuRJx1DcR4dgIZtLcTdaaE/pC1BJU=
     12 +github.com/mattn/go-shellwords v1.0.10 h1:Y7Xqm8piKOO3v10Thp7Z36h4FYFjt5xB//6XvOrs2Gw=
     13 +github.com/mattn/go-shellwords v1.0.10/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y=
     14 +github.com/saracen/walker v0.1.1 h1:Ou2QIKTWqo0QxhtuHVmtObbmhjMCEUyJ82xp0uV+MGI=
     15 +github.com/saracen/walker v0.1.1/go.mod h1:0oKYMsKVhSJ+ful4p/XbjvXbMgLEkLITZaxozsl4CGE=
    23 16  golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M=
    24 17  golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
    25  -golang.org/x/crypto v0.0.0-20200128174031-69ecbb4d6d5d h1:9FCpayM9Egr1baVnV1SX0H87m+XB0B8S0hAMi99X/3U=
    26  -golang.org/x/crypto v0.0.0-20200128174031-69ecbb4d6d5d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
     18 +golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNmw2api+jEfxLoykJVice/E=
     19 +golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
    27 20  golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
    28  -golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
    29  -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
    30  -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
    31  -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
    32  -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
     21 +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
     22 +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 h1:SQFwaSi55rU7vdNs9Yr0Z324VNlrF+0wMqRXT4St8ck=
     23 +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
    33 24  golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
    34 25  golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
    35 26  golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756 h1:9nuHUbU8dRnRRfj9KjWUVrJeoexdbeMjttk6Oh1rD10=
    36 27  golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
    37 28  golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
    38  -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5 h1:LfCXLvNmTYH9kEmVgqbnsWfruoXZIrh4YBgqVHtDvw0=
    39  -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
     29 +golang.org/x/sys v0.0.0-20201026173827-119d4633e4d1 h1:/DtoiOYKoQCcIFXQjz07RnWNPRCbqmSXSpgEzhC9ZHM=
     30 +golang.org/x/sys v0.0.0-20201026173827-119d4633e4d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
    40 31  golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
    41 32  golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
    42  -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
    43  -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
     33 +golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=
     34 +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
    44 35  golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
    45  -golang.org/x/tools v0.0.0-20191011211836-4c025a95b26e h1:1o2bDs9pCd2xFhdwqJTrCIswAeEsn4h/PCNelWpfcsI=
    46  -golang.org/x/tools v0.0.0-20191011211836-4c025a95b26e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
    47  -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
    48 36   
  • ■ ■ ■ ■ ■ ■
    install
    skipped 1 lines
    2 2   
    3 3  set -u
    4 4   
    5  -version=0.23.1
     5 +version=0.24.0-rc1
    6 6  auto_completion=
    7 7  key_bindings=
    8 8  update_config=2
    9  -binary_arch=
    10 9  shells="bash zsh fish"
    11 10  prefix='~/.fzf'
    12 11  prefix_expand=~/.fzf
    skipped 102 lines
    115 114   
    116 115  try_curl() {
    117 116   command -v curl > /dev/null &&
    118  - if [[ $1 =~ tgz$ ]]; then
     117 + if [[ $1 =~ tar.gz$ ]]; then
    119 118   curl -fL $1 | tar -xzf -
    120 119   else
    121 120   local temp=${TMPDIR:-/tmp}/fzf.zip
    skipped 3 lines
    125 124   
    126 125  try_wget() {
    127 126   command -v wget > /dev/null &&
    128  - if [[ $1 =~ tgz$ ]]; then
     127 + if [[ $1 =~ tar.gz$ ]]; then
    129 128   wget -O - $1 | tar -xzf -
    130 129   else
    131 130   local temp=${TMPDIR:-/tmp}/fzf.zip
    skipped 3 lines
    135 134   
    136 135  download() {
    137 136   echo "Downloading bin/fzf ..."
    138  - if [[ ! "$version" =~ alpha ]]; then
    139  - if [ -x "$fzf_base"/bin/fzf ]; then
    140  - echo " - Already exists"
    141  - check_binary && return
    142  - fi
    143  - link_fzf_in_path && return
     137 + if [ -x "$fzf_base"/bin/fzf ]; then
     138 + echo " - Already exists"
     139 + check_binary && return
    144 140   fi
     141 + link_fzf_in_path && return
    145 142   mkdir -p "$fzf_base"/bin && cd "$fzf_base"/bin
    146 143   if [ $? -ne 0 ]; then
    147 144   binary_error="Failed to create bin directory"
    skipped 1 lines
    149 146   fi
    150 147   
    151 148   local url
    152  - [[ "$version" =~ alpha ]] &&
    153  - url=https://github.com/junegunn/fzf-bin/releases/download/alpha/${1} ||
    154  - url=https://github.com/junegunn/fzf-bin/releases/download/$version/${1}
     149 + url=https://github.com/junegunn/fzf/releases/download/$version/${1}
    155 150   set -o pipefail
    156 151   if ! (try_curl $url || try_wget $url); then
    157 152   set +o pipefail
    skipped 15 lines
    173 168  binary_available=1
    174 169  binary_error=""
    175 170  case "$archi" in
    176  - Darwin\ *64) download fzf-$version-darwin_${binary_arch:-amd64}.tgz ;;
    177  - Linux\ armv5*) download fzf-$version-linux_${binary_arch:-arm5}.tgz ;;
    178  - Linux\ armv6*) download fzf-$version-linux_${binary_arch:-arm6}.tgz ;;
    179  - Linux\ armv7*) download fzf-$version-linux_${binary_arch:-arm7}.tgz ;;
    180  - Linux\ armv8*) download fzf-$version-linux_${binary_arch:-arm8}.tgz ;;
    181  - Linux\ aarch64*) download fzf-$version-linux_${binary_arch:-arm8}.tgz ;;
    182  - Linux\ *64) download fzf-$version-linux_${binary_arch:-amd64}.tgz ;;
    183  - FreeBSD\ *64) download fzf-$version-freebsd_${binary_arch:-amd64}.tgz ;;
    184  - OpenBSD\ *64) download fzf-$version-openbsd_${binary_arch:-amd64}.tgz ;;
    185  - CYGWIN*\ *64) download fzf-$version-windows_${binary_arch:-amd64}.zip ;;
    186  - MINGW*\ *64) download fzf-$version-windows_${binary_arch:-amd64}.zip ;;
    187  - MSYS*\ *64) download fzf-$version-windows_${binary_arch:-amd64}.zip ;;
    188  - Windows*\ *64) download fzf-$version-windows_${binary_arch:-amd64}.zip ;;
    189  - *) binary_available=0 binary_error=1 ;;
     171 + Darwin\ *64) download fzf-$version-darwin_amd64.tar.gz ;;
     172 + Linux\ armv5*) download fzf-$version-linux_armv5.tar.gz ;;
     173 + Linux\ armv6*) download fzf-$version-linux_armv6.tar.gz ;;
     174 + Linux\ armv7*) download fzf-$version-linux_armv7.tar.gz ;;
     175 + Linux\ armv8*) download fzf-$version-linux_arm64.tar.gz ;;
     176 + Linux\ aarch64*) download fzf-$version-linux_arm64.tar.gz ;;
     177 + Linux\ *64) download fzf-$version-linux_amd64.tar.gz ;;
     178 + FreeBSD\ *64) download fzf-$version-freebsd_amd64.tar.gz ;;
     179 + OpenBSD\ *64) download fzf-$version-openbsd_amd64.tar.gz ;;
     180 + CYGWIN*\ *64) download fzf-$version-windows_amd64.zip ;;
     181 + MINGW*\ *64) download fzf-$version-windows_amd64.zip ;;
     182 + MSYS*\ *64) download fzf-$version-windows_amd64.zip ;;
     183 + Windows*\ *64) download fzf-$version-windows_amd64.zip ;;
     184 + *) binary_available=0 binary_error=1 ;;
    190 185  esac
    191 186   
    192 187  cd "$fzf_base"
    skipped 195 lines
  • ■ ■ ■ ■ ■ ■
    install.ps1
    1  -$version="0.23.1"
     1 +$version="0.24.0-rc1"
    2 2   
    3 3  $fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition
    4 4   
    skipped 21 lines
    26 26  function download {
    27 27   param($file)
    28 28   Write-Host "Downloading bin/fzf ..."
    29  - if ("$version" -ne "alpha") {
    30  - if (Test-Path "$fzf_base\bin\fzf.exe") {
    31  - Write-Host " - Already exists"
    32  - if (check_binary) {
    33  - return
    34  - }
     29 + if (Test-Path "$fzf_base\bin\fzf.exe") {
     30 + Write-Host " - Already exists"
     31 + if (check_binary) {
     32 + return
    35 33   }
    36 34   }
    37 35   if (-not (Test-Path "$fzf_base\bin")) {
    skipped 4 lines
    42 40   return
    43 41   }
    44 42   cd "$fzf_base\bin"
    45  - if ("$version" -eq "alpha") {
    46  - $url="https://github.com/junegunn/fzf-bin/releases/download/alpha/$file"
    47  - } else {
    48  - $url="https://github.com/junegunn/fzf-bin/releases/download/$version/$file"
    49  - }
     43 + $url="https://github.com/junegunn/fzf/releases/download/$version/$file"
    50 44   $temp=$env:TMP + "\fzf.zip"
    51 45   [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    52 46   (New-Object Net.WebClient).DownloadFile($url, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("$temp"))
    skipped 16 lines
  • ■ ■ ■ ■ ■
    main.go
    skipped 4 lines
    5 5   "github.com/junegunn/fzf/src/protector"
    6 6  )
    7 7   
     8 +var version string
    8 9  var revision string
    9 10   
    10 11  func main() {
    11 12   protector.Protect()
    12  - fzf.Run(fzf.ParseOptions(), revision)
     13 + fzf.Run(fzf.ParseOptions(), version, revision)
    13 14  }
    14 15   
  • ■ ■ ■ ■
    man/man1/fzf-tmux.1
    skipped 20 lines
    21 21  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22 22  THE SOFTWARE.
    23 23  ..
    24  -.TH fzf-tmux 1 "Oct 2020" "fzf 0.23.1" "fzf-tmux - open fzf in tmux split pane"
     24 +.TH fzf-tmux 1 "Oct 2020" "fzf 0.24.0" "fzf-tmux - open fzf in tmux split pane"
    25 25   
    26 26  .SH NAME
    27 27  fzf-tmux - open fzf in tmux split pane
    skipped 42 lines
  • ■ ■ ■ ■
    man/man1/fzf.1
    skipped 20 lines
    21 21  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22 22  THE SOFTWARE.
    23 23  ..
    24  -.TH fzf 1 "Oct 2020" "fzf 0.23.1" "fzf - a command-line fuzzy finder"
     24 +.TH fzf 1 "Oct 2020" "fzf 0.24.0" "fzf - a command-line fuzzy finder"
    25 25   
    26 26  .SH NAME
    27 27  fzf - a command-line fuzzy finder
    skipped 860 lines
  • ■ ■ ■ ■ ■ ■
    src/constants.go
    skipped 8 lines
    9 9  )
    10 10   
    11 11  const (
    12  - // Current version
    13  - version = "0.24.0"
    14  - 
    15 12   // Core
    16 13   coordinatorDelayMax time.Duration = 100 * time.Millisecond
    17 14   coordinatorDelayStep time.Duration = 10 * time.Millisecond
    skipped 71 lines
  • ■ ■ ■ ■
    src/core.go
    skipped 42 lines
    43 43  */
    44 44   
    45 45  // Run starts fzf
    46  -func Run(opts *Options, revision string) {
     46 +func Run(opts *Options, version string, revision string) {
    47 47   sort := opts.Sort > 0
    48 48   sortCriteria = opts.Criteria
    49 49   
    skipped 296 lines
  • ■ ■ ■ ■ ■ ■
    src/update_assets.rb
    1  -#!/usr/bin/env ruby
    2  -# frozen_string_literal: true
    3  - 
    4  -# http://www.rubydoc.info/github/rest-client/rest-client/RestClient
    5  -require 'rest_client'
    6  -require 'json'
    7  - 
    8  -if ARGV.length < 3
    9  - puts "usage: #{$PROGRAM_NAME} <token> <version> <files...>"
    10  - exit 1
    11  -end
    12  - 
    13  -token, version, *files = ARGV
    14  -base = 'https://api.github.com/repos/junegunn/fzf-bin/releases'
    15  - 
    16  -# List releases
    17  -rels = JSON.parse(RestClient.get(base, authorization: "token #{token}"))
    18  -rel = rels.find { |r| r['tag_name'] == version }
    19  -unless rel
    20  - puts "#{version} not found"
    21  - exit 1
    22  -end
    23  - 
    24  -# List assets
    25  -assets = Hash[rel['assets'].map { |a| a.values_at('name', 'id') }]
    26  - 
    27  -files.select { |f| File.exist?(f) }.map do |file|
    28  - Thread.new do
    29  - name = File.basename(file)
    30  - 
    31  - if asset_id = assets[name] # rubocop:todo Lint/AssignmentInCondition
    32  - puts "#{name} found. Deleting asset id #{asset_id}."
    33  - RestClient.delete("#{base}/assets/#{asset_id}",
    34  - authorization: "token #{token}")
    35  - else
    36  - puts "#{name} not found"
    37  - end
    38  - 
    39  - puts "Uploading #{name}"
    40  - RestClient.post(
    41  - "#{base.sub('api', 'uploads')}/#{rel['id']}/assets?name=#{name}",
    42  - File.read(file),
    43  - authorization: "token #{token}",
    44  - content_type: 'application/octet-stream'
    45  - )
    46  - end
    47  -end.each(&:join)
    48  - 
Please wait...
Page is in error, reload to recover