mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-03 13:42:11 -07:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e086f0b3fe | ||
|
8255aa23f4 | ||
|
a4bc08f5a3 | ||
|
7e5aa1e2a5 |
@@ -1,6 +1,15 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
0.27.2
|
||||||
|
------
|
||||||
|
- 16 base ANSI colors can be specified by their names
|
||||||
|
```sh
|
||||||
|
fzf --color fg:3,fg+:11
|
||||||
|
fzf --color fg:yellow,fg+:bright-yellow
|
||||||
|
```
|
||||||
|
- Fix bug where `--read0` not properly displaying long lines
|
||||||
|
|
||||||
0.27.1
|
0.27.1
|
||||||
------
|
------
|
||||||
- Added `unbind` action. In the following Ripgrep launcher example, you can
|
- Added `unbind` action. In the following Ripgrep launcher example, you can
|
||||||
|
@@ -121,6 +121,7 @@ git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
|||||||
| Nix | NixOS, etc. | `nix-env -iA nixpkgs.fzf` |
|
| Nix | NixOS, etc. | `nix-env -iA nixpkgs.fzf` |
|
||||||
| Pacman | Arch Linux | `sudo pacman -S fzf` |
|
| Pacman | Arch Linux | `sudo pacman -S fzf` |
|
||||||
| pkg | FreeBSD | `pkg install fzf` |
|
| pkg | FreeBSD | `pkg install fzf` |
|
||||||
|
| pkgin | NetBSD | `pkgin install fzf` |
|
||||||
| pkg_add | OpenBSD | `pkg_add fzf` |
|
| pkg_add | OpenBSD | `pkg_add fzf` |
|
||||||
| XBPS | Void Linux | `sudo xbps-install -S fzf` |
|
| XBPS | Void Linux | `sudo xbps-install -S fzf` |
|
||||||
| Zypper | openSUSE | `sudo zypper install fzf` |
|
| Zypper | openSUSE | `sudo zypper install fzf` |
|
||||||
|
2
install
2
install
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
version=0.27.1
|
version=0.27.2
|
||||||
auto_completion=
|
auto_completion=
|
||||||
key_bindings=
|
key_bindings=
|
||||||
update_config=2
|
update_config=2
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
$version="0.27.1"
|
$version="0.27.2"
|
||||||
|
|
||||||
$fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition
|
$fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
..
|
..
|
||||||
.TH fzf-tmux 1 "May 2021" "fzf 0.27.1" "fzf-tmux - open fzf in tmux split pane"
|
.TH fzf-tmux 1 "Jun 2021" "fzf 0.27.2" "fzf-tmux - open fzf in tmux split pane"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
fzf-tmux - open fzf in tmux split pane
|
fzf-tmux - open fzf in tmux split pane
|
||||||
|
@@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
..
|
..
|
||||||
.TH fzf 1 "May 2021" "fzf 0.27.1" "fzf - a command-line fuzzy finder"
|
.TH fzf 1 "Jun 2021" "fzf 0.27.2" "fzf - a command-line fuzzy finder"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
fzf - a command-line fuzzy finder
|
fzf - a command-line fuzzy finder
|
||||||
@@ -340,6 +340,22 @@ color mappings.
|
|||||||
\fB-1 \fRDefault terminal foreground/background color
|
\fB-1 \fRDefault terminal foreground/background color
|
||||||
\fB \fR(or the original color of the text)
|
\fB \fR(or the original color of the text)
|
||||||
\fB0 ~ 15 \fR16 base colors
|
\fB0 ~ 15 \fR16 base colors
|
||||||
|
\fBblack\fR
|
||||||
|
\fBred\fR
|
||||||
|
\fBgreen\fR
|
||||||
|
\fByellow\fR
|
||||||
|
\fBblue\fR
|
||||||
|
\fBmagenta\fR
|
||||||
|
\fBcyan\fR
|
||||||
|
\fBwhite\fR
|
||||||
|
\fBbright-black\fR (gray | grey)
|
||||||
|
\fBbright-red\fR
|
||||||
|
\fBbright-green\fR
|
||||||
|
\fBbright-yellow\fR
|
||||||
|
\fBbright-blue\fR
|
||||||
|
\fBbright-magenta\fR
|
||||||
|
\fBbright-cyan\fR
|
||||||
|
\fBbright-white\fR
|
||||||
\fB16 ~ 255 \fRANSI 256 colors
|
\fB16 ~ 255 \fRANSI 256 colors
|
||||||
\fB#rrggbb \fR24-bit colors
|
\fB#rrggbb \fR24-bit colors
|
||||||
|
|
||||||
|
@@ -670,6 +670,38 @@ func parseTheme(defaultTheme *tui.ColorTheme, str string) *tui.ColorTheme {
|
|||||||
cattr.Attr |= tui.Blink
|
cattr.Attr |= tui.Blink
|
||||||
case "reverse":
|
case "reverse":
|
||||||
cattr.Attr |= tui.Reverse
|
cattr.Attr |= tui.Reverse
|
||||||
|
case "black":
|
||||||
|
cattr.Color = tui.Color(0)
|
||||||
|
case "red":
|
||||||
|
cattr.Color = tui.Color(1)
|
||||||
|
case "green":
|
||||||
|
cattr.Color = tui.Color(2)
|
||||||
|
case "yellow":
|
||||||
|
cattr.Color = tui.Color(3)
|
||||||
|
case "blue":
|
||||||
|
cattr.Color = tui.Color(4)
|
||||||
|
case "magenta":
|
||||||
|
cattr.Color = tui.Color(5)
|
||||||
|
case "cyan":
|
||||||
|
cattr.Color = tui.Color(6)
|
||||||
|
case "white":
|
||||||
|
cattr.Color = tui.Color(7)
|
||||||
|
case "bright-black", "gray", "grey":
|
||||||
|
cattr.Color = tui.Color(8)
|
||||||
|
case "bright-red":
|
||||||
|
cattr.Color = tui.Color(9)
|
||||||
|
case "bright-green":
|
||||||
|
cattr.Color = tui.Color(10)
|
||||||
|
case "bright-yellow":
|
||||||
|
cattr.Color = tui.Color(11)
|
||||||
|
case "bright-blue":
|
||||||
|
cattr.Color = tui.Color(12)
|
||||||
|
case "bright-magenta":
|
||||||
|
cattr.Color = tui.Color(13)
|
||||||
|
case "bright-cyan":
|
||||||
|
cattr.Color = tui.Color(14)
|
||||||
|
case "bright-white":
|
||||||
|
cattr.Color = tui.Color(15)
|
||||||
case "":
|
case "":
|
||||||
default:
|
default:
|
||||||
if rrggbb.MatchString(component) {
|
if rrggbb.MatchString(component) {
|
||||||
|
@@ -3,6 +3,7 @@ package util
|
|||||||
import (
|
import (
|
||||||
"math"
|
"math"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattn/go-isatty"
|
"github.com/mattn/go-isatty"
|
||||||
@@ -21,7 +22,8 @@ func RunesWidth(runes []rune, prefixWidth int, tabstop int, limit int) (int, int
|
|||||||
if len(rs) == 1 && rs[0] == '\t' {
|
if len(rs) == 1 && rs[0] == '\t' {
|
||||||
w = tabstop - (prefixWidth+width)%tabstop
|
w = tabstop - (prefixWidth+width)%tabstop
|
||||||
} else {
|
} else {
|
||||||
w = runewidth.StringWidth(string(rs))
|
s := string(rs)
|
||||||
|
w = runewidth.StringWidth(s) + strings.Count(s, "\n")
|
||||||
}
|
}
|
||||||
width += w
|
width += w
|
||||||
if limit > 0 && width > limit {
|
if limit > 0 && width > limit {
|
||||||
|
Reference in New Issue
Block a user