mirror of
https://github.com/lotabout/skim.git
synced 2026-09-10 07:16:23 -04:00
release: v3.2.0
This commit is contained in:
parent
5d9743f198
commit
19bfd34aaf
10
CHANGELOG.md
10
CHANGELOG.md
|
|
@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [3.2.0] - 2026-02-13
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Further reduce DefaultSkimItem size (#967)
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Enhance PR template [skip ci]
|
||||
|
||||
## [3.1.1] - 2026-02-13
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
|
|
|||
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -2025,7 +2025,7 @@ checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e"
|
|||
|
||||
[[package]]
|
||||
name = "skim"
|
||||
version = "3.1.1"
|
||||
version = "3.2.0"
|
||||
dependencies = [
|
||||
"ansi-to-tui",
|
||||
"assert_enum_variants",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "skim"
|
||||
version = "3.1.1"
|
||||
version = "3.2.0"
|
||||
authors = ["Loric ANDRE", "Zhang Jinzhou <lotabout@gmail.com>"]
|
||||
description = "Fuzzy Finder in rust!"
|
||||
documentation = "https://docs.rs/skim"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
.ie \n(.g .ds Aq \(aq
|
||||
.el .ds Aq '
|
||||
.TH sk 1 "sk 3.1.1"
|
||||
.TH sk 1 "sk 3.2.0"
|
||||
.ie \n(.g .ds Aq \(aq
|
||||
.el .ds Aq '
|
||||
.SH NAME
|
||||
|
|
@ -1024,4 +1024,4 @@ When using `sk \-\-remote`, pipe in action chains (see the KEYBINDS section), fo
|
|||
.ie \n(.g .ds Aq \(aq
|
||||
.el .ds Aq '
|
||||
.SH VERSION
|
||||
v3.1.1
|
||||
v3.2.0
|
||||
|
|
|
|||
|
|
@ -77,15 +77,15 @@ impl DefaultSkimItem {
|
|||
|
||||
let (mut orig_text, mut temp_text): (Option<String>, Box<str>) = match (using_transform_fields, ansi_enabled) {
|
||||
(true, true) => {
|
||||
let transformed = parse_transform_fields(delimiter, &orig_text, trans_fields);
|
||||
let transformed = parse_transform_fields(delimiter, orig_text, trans_fields);
|
||||
(Some(orig_text.into()), Box::from(transformed))
|
||||
}
|
||||
(true, false) => {
|
||||
let transformed = parse_transform_fields(delimiter, &escape_ansi(&orig_text), trans_fields);
|
||||
let transformed = parse_transform_fields(delimiter, &escape_ansi(orig_text), trans_fields);
|
||||
(Some(orig_text.into()), Box::from(transformed))
|
||||
}
|
||||
(false, true) => (None, Box::from(orig_text)),
|
||||
(false, false) if contains_ansi => (None, escape_ansi(&orig_text).into()),
|
||||
(false, false) if contains_ansi => (None, escape_ansi(orig_text).into()),
|
||||
(false, false) => (None, Box::from(orig_text)),
|
||||
};
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ impl DefaultSkimItem {
|
|||
let orig_text_for_fields = if has_null_bytes {
|
||||
orig_text.as_deref().unwrap()
|
||||
} else {
|
||||
&text_for_matching
|
||||
text_for_matching
|
||||
};
|
||||
|
||||
if has_null_bytes {
|
||||
|
|
@ -136,7 +136,7 @@ impl DefaultSkimItem {
|
|||
|
||||
for field in matching_fields {
|
||||
// Get the field text from original (with null bytes)
|
||||
if let Some(field_text) = crate::field::get_string_by_field(delimiter, &orig_text_for_fields, field)
|
||||
if let Some(field_text) = crate::field::get_string_by_field(delimiter, orig_text_for_fields, field)
|
||||
{
|
||||
// Strip null bytes from this field
|
||||
let cleaned_field = field_text.replace('\0', "");
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ impl SkimItemReader {
|
|||
trace!("got item {} with index {}", line, line_idx);
|
||||
|
||||
let raw_item = DefaultSkimItem::new(
|
||||
&line,
|
||||
line,
|
||||
option.use_ansi_color,
|
||||
&transform_fields,
|
||||
&matching_fields,
|
||||
|
|
|
|||
Loading…
Reference in a new issue