mirror of
https://github.com/lotabout/skim.git
synced 2026-09-10 07:16:23 -04:00
This PR has grown beyond its initial scope due to me over-optimizing everything, but it leads to:
Paving the way for future actually interactive previews
Consistently better performance than fzf in our bench thanks to thread and concurrency optimizations as well as the use of kanal for the items channels
Given the scope, I'm marking this as breaking because:
setting wrap in the preview window layout disables the pty since we don't want to manipulate the raw buffer to word-wrap it manually
kanal channels work slightly differently and might break library usage, even though switching to them did not require any modifications of the examples so it's unlikely that users will see anything break
* fix: force cwd for preview
* fix: correctly set cwd & kill pty child in the right order
* fix: use std threads & reopen new pty for each preview
* feat: use tui-term for displaying
* feat: scroll in pty
* fix: make nested skim previews work
* fix: clippy mistake
* feat: reactive preview triggering
* chore: generate completions & manpage
* chore: optimizations & thread cleanup
* chore: use kanal for faster channels
* fix: tests
* fix: only send items if the matcher hasn't been killed in the meantime (#947)
* tests: add coverage
* tests: fix bin path with coverage
* tests: upload tests to codecov
* chore: make pty opt-in through preview-window
* chore: generate completions & manpage
---------
Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
28 lines
587 B
Rust
28 lines
587 B
Rust
#[allow(dead_code)]
|
|
#[macro_use]
|
|
mod common;
|
|
|
|
insta_test!(issue_359_multi_regex_unicode, ["ああa"], &["--regex", "-q", "a"], {
|
|
@snap;
|
|
});
|
|
|
|
insta_test!(issue_361_literal_space_control, ["foo bar", "foo bar"], &["-q", "foo\\ bar"], {
|
|
@snap;
|
|
});
|
|
|
|
insta_test!(issue_361_literal_space_invert, ["foo bar", "foo bar"], &["-q", "!foo\\ bar"], {
|
|
@snap;
|
|
});
|
|
|
|
insta_test!(issue_547_null_match, ["\0Test Test Test"], &[], {
|
|
@snap;
|
|
@type "Test";
|
|
@snap;
|
|
});
|
|
|
|
insta_test!(issue_929_double_width_chars, [""], &["-q", "中文测试"], {
|
|
@snap;
|
|
@char '|';
|
|
@snap;
|
|
});
|