Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/junegunn/fzf. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Mar 20, 2021
  2. Mar 14, 2021
  3. Mar 13, 2021
  4. Mar 12, 2021
  5. Mar 11, 2021
    • Charlie Vieth's avatar
      Speed up ANSI code processing (#2368) · 5a874ae2
      Charlie Vieth authored
      This commit speeds up the parsing/processing of ANSI escape codes by
      roughly 7.5x. The speedup is mostly accomplished by replacing the regex
      with dedicated parsing logic (nextAnsiEscapeSequence()) and reducing the
      number of allocations in extractColor().
      
      #### Benchmarks
      ```
      name             old time/op    new time/op     delta
      ExtractColor-16    4.89µs ± 5%     0.64µs ± 2%   -86.87%  (p=0.000 n=9+9)
      
      name             old speed      new speed       delta
      ExtractColor-16  25.6MB/s ± 5%  194.6MB/s ± 2%  +661.43%  (p=0.000 n=9+9)
      
      name             old alloc/op   new alloc/op    delta
      ExtractColor-16    1.37kB ± 0%     0.31kB ± 0%   -77.31%  (p=0.000 n=10+10)
      
      name             old allocs/op  new allocs/op   delta
      ExtractColor-16      48.0 ± 0%        4.0 ± 0%   -91.67%  (p=0.000 n=10+10)
      ```
      Unverified
      5a874ae2
  6. Mar 08, 2021
  7. Mar 07, 2021
    • Junegunn Choi's avatar
      Fix deadlocks · b82c1693
      Junegunn Choi authored
      Unverified
      b82c1693
    • Junegunn Choi's avatar
      Fix yet another deadlock · 019bfc4e
      Junegunn Choi authored
      EventBox.Set should not be called while holding the terminal mutex
      
        goroutine 1 [semacquire]:
        sync.runtime_SemacquireMutex(0xc0001923bc, 0x1000001066200, 0x1)
                /usr/local/Cellar/go/1.16/libexec/src/runtime/sema.go:71 +0x47
        sync.(*Mutex).lockSlow(0xc0001923b8)
                /usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:138 +0x105
        sync.(*Mutex).Lock(...)
                /usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:81
        github.com/junegunn/fzf/src.(*Terminal).Input(0xc000192000, 0x0, 0x0, 0x0, 0x0)
                /fzf/src/terminal.go:581 +0x145
        github.com/junegunn/fzf/src.Run.func10(0xc00010c8a0, 0xc000092050, 0xa)
                /fzf/src/core.go:245 +0x37
        github.com/junegunn/fzf/src.Run.func11(0xc00011a4e0)
                /fzf/src/core.go:295 +0x5ce
        github.com/junegunn/fzf/src/util.(*EventBox).Wait(0xc00011a4e0, 0xc000127ec8)
                /fzf/src/util/eventbox.go:34 +0x5e
        github.com/junegunn/fzf/src.Run(0xc000180000, 0x11ac014, 0x6, 0x11ac158, 0x7)
                /fzf/src/core.go:251 +0xdac
        main.main()
                /fzf/main.go:13 +0x5a
      
        goroutine 11 [semacquire]:
        sync.runtime_SemacquireMutex(0xc00012c31c, 0xc00010e800, 0x1)
                /usr/local/Cellar/go/1.16/libexec/src/runtime/sema.go:71 +0x47
        sync.(*Mutex).lockSlow(0xc00012c318)
                /usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:138 +0x105
        sync.(*Mutex).Lock(0xc00012c318)
                /usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:81 +0x47
        github.com/junegunn/fzf/src/util.(*EventBox).Set(0xc00011a4e0, 0x7, 0x114eb40, 0x1265460)
                /fzf/src/util/eventbox.go:40 +0x3b
        github.com/junegunn/fzf/src.(*Terminal).killPreview(0xc000192000, 0x0)
                /fzf/src/terminal.go:1831 +0xa5
        github.com/junegunn/fzf/src.(*Terminal).exit(0xc000192000, 0xc000106e58)
                /fzf/src/terminal.go:1847 +0x75
        github.com/junegunn/fzf/src.(*Terminal).Loop.func8.1(0xc00011a540)
                /fzf/src/terminal.go:2148 +0x38f
        github.com/junegunn/fzf/src/util.(*EventBox).Wait(0xc00011a540, 0xc000106f90)
                /fzf/src/util/eventbox.go:34 +0x5e
        github.com/junegunn/fzf/src.(*Terminal).Loop.func8(0xc000192000, 0xc00010a2c0)
                /fzf/src/terminal.go:2077 +0xa5
        created by github.com/junegunn/fzf/src.(*Terminal).Loop
                /fzf/src/terminal.go:2072 +0x3e8
      Unverified
      019bfc4e
    • Junegunn Choi's avatar
      [actions] Install fish using apt-get · dfda5c05
      Junegunn Choi authored
      For some reason, `test_ctrl_r` and `test_ctrl_r_abort` are not passing
      on GitHub Action runner with Fish 3.2.0.
      Unverified
      dfda5c05
    • Junegunn Choi's avatar
      Fix deadlock on exit · f6571696
      Junegunn Choi authored
      Unverified
      f6571696
    • Junegunn Choi's avatar
      Fix GitHub Action build · 4c06da8b
      Junegunn Choi authored
      $USER is missing
      Unverified
      4c06da8b
    • yoshida.shinya's avatar
    • Junegunn Choi's avatar
      Kill input command on terminate · e2e8d94b
      Junegunn Choi authored
      Fix #2381
      Close #2382
      Unverified
      e2e8d94b
  8. Feb 28, 2021
  9. Feb 25, 2021
  10. Feb 22, 2021
  11. Feb 21, 2021
  12. Feb 17, 2021
  13. Feb 15, 2021
  14. Feb 03, 2021
Loading