Commit graph

132 commits

Author SHA1 Message Date
Liam Dyer 8a1f2783a8
feat: bump frizbee to 0.10.0, thread local matcher (#1105)
* feat: bump frizbee to 0.10.0, thread local matcher

* feat: use frizbee on all architectures

* feat: use frizbee feature

* refactor: simplify frizbee config mutation

* docs: simplify frizbee thread local comment

* fixup! feat: use frizbee feature

* fixup! feat: use frizbee feature
2026-07-03 16:20:05 +00:00
Maximilian Roos bfec6e198d
feat(theme): add a themeable scrollbar color for the item list (#1101)
* feat(theme): add a themeable scrollbar color for the item list

The item-list scrollbar was the only rendered UI element without a
ColorTheme entry. ratatui's Scrollbar defaults thumb_style to an empty
Style, so the thumb merged nothing onto the cells it drew over and
inherited their fg/bg — most visibly the current-line highlight, which
the thumb adopted as the cursor scrolled past it.

Add a `scrollbar` color to ColorTheme, parse it from `--color`
(`scrollbar:<spec>`), default it per theme to the border color (the four
catppuccin themes use their muted `overlay0` instead), and pass it as the
Scrollbar thumb style. The thumb now reads as uniform chrome instead of
tracking whatever row sits under it. The colorless `none` theme leaves it
unset, so NO_COLOR still renders no thumb styling.

Documented in the README color table and the manpage; covered by theme
unit tests and @snap_color integration tests (default border color and a
custom --color=scrollbar override, both over the highlighted current line).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* chore: generate-files & misc

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Loric ANDRE <loric.andre@pm.me>
2026-06-28 18:48:28 +02:00
LoricAndre b56eed4125
feat(ci): upload coverage report to pages for easier browsing (#1096)
* feat(ci): upload coverage report to pages for easier browsing

* fix: remove anchors

* fix: release report

* fix: coverage percent

* docs: update README

* chore: only on master
2026-06-24 18:55:33 +02:00
LoricAndre e85cf6b708
chore(ci): use github's coverage (#1094)
* chore(ci): use github's coverage

* fix: perms

* chore: ci

* test(ci): comment perm to check triggers

* test(ci): readd perm

* fix(ci): test with dist config

* fix(ci): generate dist

* fix

* docs: remove codecov

* chore: delete codecov file
2026-06-24 12:51:44 +02:00
Loric ANDRE 797ca70da5 docs: add bench graphs [skip ci] 2026-04-07 20:02:23 +02:00
Xeonacid 40f0e29448
chore: deps: Only use frizbee on x86_64 and aarch64 (#1028)
* chore: deps: Only use frizbee on x86_64 and aarch64

* chore: update docs for frizbee support

* chore: docs [skip ci]

---------

Co-authored-by: LoricAndre <57358788+LoricAndre@users.noreply.github.com>
2026-04-04 14:32:57 +02:00
LoricAndre 1a10e405f1
feat: improve matcher & reader performance (#1020)
* chore: migrate bench.py to rust to remove python deps

* feat: replace rayon with a custom thread pool manager

* wip: insert into item_list processed_items directly from matcher

* wip: perf optimizations

* wip: perf optimizations

* wip: reader perf optimizations

* fix: skip --bench injected in bench args

* chore: add ARCHITECTURE.md

* Update src/helper/item_reader.rs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update src/matcher.rs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* feat: use the same pool between reader and matcher

* chore: misc

* fix: tests

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-03-31 18:05:20 +02:00
LoricAndre 9d12e9d420
feat: windows support (#1010)
* wip: windows support

* feat: windows support

* feat: add windows target to CI

* chore: generate completions & manpage

* Update src/util.rs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* chore: cleanup & doc

* chore: generate completions & manpage

* chore: generate dist

* fix: reduplicate default test

* chore: regate tmux

* chore: remove useless test-utils feature

* fix(windows): ignore dirs in default_command

* docs: update shell docs for windows

* chore: generate completions & manpage

* chore(justfile): do not ignore failed tests

* fix: upload correct junit after profile change

* fix: always execute exit commands

* fix: windows-specific ctrl-c handling

* chore: misc docs & other updates

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* chore: generate completions & manpage

* chore: include license in MSI installer

---------

Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Your Name <you@example.com>
2026-03-29 21:46:42 +00:00
d 5028ef4d0b
chore: correct typos in code, comments and documentation (#1002)
* fix: correct typos in code, comments and documentation

* chore: generate completions & manpage

---------

Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
2026-03-12 10:19:25 +00:00
LoricAndre 926c76ee16
docs: add benchmarks to README.md [skip ci] 2026-03-11 15:31:08 +01:00
Loric ANDRE 95f09a455a chore: use python for bench script for comparison 2026-03-10 16:01:54 +01:00
Loric ANDRE 3a4b958f51 chore: allow using flag or env vars for both log level and file 2026-03-04 21:06:06 +01:00
LoricAndre c65274441a
feat: add Arinae algorithm (#990)
* feat: initial work on skim v3

wip

* wip: SW

* chore: refactor SkimV3 to make it more maintainable

* chore: remove SIMD batch scores

* fix: fix Skim V3 tests

* feat: small optimizations

* feat: bigger optimizations

* chore: generate completions & manpage

* chore: remove unused wide dependency

* chore: update deps

* chore: generate completions & manpage

* fix: make sure all subsequences pass in non-typos mode

* chore: trade some performance against more precision with typos

* feat: gain the performance back using unchecked accesses

* chore: remove failing tests

* feat: use banding across whole upper triangle

* chore: remove useless DEAD_COL checks

* feat: make sure we match everything `frizbee` does while enforcing first char

* feat: minor optimizations

* feat: more minor optimizations

* chore: tweak parameters to find a good balance between performance and accuracy

* chore: accept snap

* chore: penalize consecutive typos

* chore: revert consecutive typos penalization as it seems useless in practice

* wip: optimizations

* feat: multiple optimizations

* perf(skim_v3): use 2-row rolling buffer for score-only DP path

When compute_indices=false (fuzzy_match), the full (n+1)×mcols matrix
was allocated and populated even though traceback was never performed.
Introduce score_only_dp() which maintains only two rows at a time,
reducing memory from O(n×m) to O(m) and improving cache utilization
for long choice strings.

* perf(skim_v3): add early termination when DP rows are all-zero

Track consecutive rows where no cell has a positive score. After 2
consecutive dead rows, return None immediately: gap penalties can only
decrease existing scores, so no downstream row can produce a positive
result. Applied to both score_only_dp and full_dp.

* perf(skim_v3): add range_dp for fuzzy_match_range, avoiding full index vec

fuzzy_match_range previously called fuzzy_indices (full traceback collecting
every matched index) just to extract the first and last. Introduce range_dp
which performs the same full-matrix DP but during traceback only records the
begin and end positions, avoiding the Vec allocation and index collection.
Add range_consistent_with_indices test to verify correctness.

* perf(skim_v3): remove redundant is_subsequence scan in exact mode

In non-typo mode, is_subsequence was called before compute_banding, but
compute_banding -> compute_first_match_cols already validates the same
subsequence property (returning None if any pattern char is absent).
Remove the redundant O(m) scan and delete the now-unused is_subsequence
function. Typo mode retains cheap_typo_prefilter as its guard.

* perf(skim_v3): avoid clone in traceback by using mem::take on thread-local buffer

Previously full_dp returned indices via indices_ref.to_vec() which copies
all n index values into a new allocation. Replace with std::mem::take which
moves ownership of the populated Vec out of the thread-local without copying,
trading the reuse-across-calls benefit for zero-copy return per call.

* perf(skim_v3): tighten typo-mode upper band bound in typo_vband_row

Previously the upper column bound in typo mode was always m (the full
choice length), even for early rows where the diagonal sits far from the
right edge. Compute hi = (j + bandwidth).min(m) symmetrically with the
existing lower bound, skipping cells that cannot contribute to a valid
alignment and reducing work for short patterns on long strings.

* perf(skim_v3): use memchr SIMD for first-char search in prefilter and banding

Add memchr as a direct dependency and implement Atom::find_first_in with
a u8-specialization that calls memchr() for case-sensitive search and a
two-call min-of-two approach for case-insensitive. Use this in:
- cheap_typo_prefilter: first-character existence check
- find_first_char: typo-mode banding anchor computation
This replaces scalar byte-by-byte loops with SIMD-vectorized searches for
ASCII inputs, the common case.

* revert(skim_v3): restore m upper bound in typo_vband_row

The tightened hi = (j + bandwidth).min(m) bound incorrectly rejected valid
typo-mode alignments where the optimal path takes many LEFT (gap) steps
past the bandwidth boundary. The snapshot test confirms 5 fewer matches vs
the expected 37. Revert to hi = m; the affine gap penalty alone prevents
poor alignments from winning.

* perf(skim_v3): add ASCII fast path to char::eq_ignore_case

Replace the to_lowercase() iterator comparison with eq_ignore_ascii_case()
for the common case where both chars are ASCII. This avoids creating two
ToLowercase iterators per comparison in the non-ASCII DP path, using a
single bitwise comparison instead.

* perf(skim_v3): replace RefCell with UnsafeCell (TLCell) in thread-locals

ThreadLocal<RefCell<T>> incurs a runtime borrow-check on every access.
Since ThreadLocal already guarantees per-thread isolation and we never
re-enter the same thread-local within a single call stack, the RefCell
check is redundant.

Replace with TLCell<T>, a Send newtype over UnsafeCell<T>, and a tl_get_mut
helper that returns &mut T directly. Document the safety invariant at each
call site. Also remove the now-unused SWMatrix::zero constructor.

* fix(skim_v3): fix precompute_bonuses reserve logic

The previous reserve(cho.len().saturating_sub(buf.len())) computed the
needed additional capacity relative to the current length, which could
be wrong if buf.len() was stale (e.g. after a set_len call on a longer
buffer). Replace with clear() + reserve(cho.len()) for a correct and
clear-intent O(1) reset followed by a single exact reservation.

* guard: return None for pat.len() > MAX_PAT_LEN in exact mode

Patterns longer than MAX_PAT_LEN (16) used the stack-allocated
[usize; MAX_PAT_LEN] banding arrays with out-of-bounds indices,
causing undefined behaviour in the exact (non-typo) DP path.

Add an early return of None in compute_first_match_cols and
compute_last_match_cols so callers gracefully skip overlong patterns
rather than reading past the end of a fixed-size array.  Typo mode
is unaffected: its dummy arrays are never indexed by the pattern
length.

* perf: re-encode Dir::None=0 so CELL_ZERO is all-zero bytes

Previously Dir::None=3 made Cell::new(0,Dir::None) encode as
0x00030000, preventing bulk-zeroing with write_bytes(0).

Re-assign discriminants to None=0, Diag=1, Up=2, Left=3 so that
CELL_ZERO is now all-zero.  Update:
- Dir discriminants in the enum
- Cell::is_diag() (checks tag==1 instead of 0)
- compute_cell branchless arithmetic (base is Left=3, subtract 2 for
  Diag wins, 1 for Up wins; None=0 so no OR needed)
- score_only_dp: replace init loop with write_bytes(0)
- full_dp / range_dp: replace row-0 init loop with write_bytes(0)

* perf: 128-bit ASCII bitset for cheap_typo_prefilter tail scan

Add Atom::count_tail_present with a u8 specialisation that builds a
two-u64 presence bitset from the choice in a single O(m) pass, making
each subsequent pattern-char lookup O(1) instead of O(m).

The char (non-ASCII) path delegates to count_tail_present_ordered, the
same ordered linear scan that was previously inlined in the function.
The change is observationally equivalent: the prefilter remains a
lenient superset of the old check (unordered vs. ordered presence),
and the snapshot test count is unchanged.

* perf: early exit in count_tail_present_ordered when match is impossible

Add a hopeless-state check at the top of each iteration: if matched
plus remaining pattern chars cannot reach min_needed, bail out
immediately rather than completing the full scan.

This prunes the non-ASCII (char) ordered-scan fallback inside
cheap_typo_prefilter when the pattern is long and many chars are
missing from the choice.

* cleanup: remove unused constants SEPARATOR_MASK_LO/HI and FIRST_CHAR_BONUS_MULTIPLIER

All three were suppressed with #[allow(dead_code)] and are not
referenced by any live code.  SEPARATOR_TABLE is the active lookup;
the mask constants were documentation remnants.

* refactor: replace unsafe transmute in Cell::dir() and compute_cell with safe match

Both usages converted a u8 (guaranteed 0..=3) to Dir via transmute.
Replace with an exhaustive match on the 2-bit tag value — no unsafe
required, and the compiler generates the same conditional-move
sequence.

* perf: Atom::is_sep() trait method avoids u8→char→u32 in separator check

Add is_sep() to the Atom trait with a u8 specialisation that indexes
SEPARATOR_TABLE directly with self as usize, skipping the into::<char>
conversion required by the generic default.

Remove the now-unnecessary is_separator free function; callers use
prev.is_sep() instead.

* refactor: precompute_bonuses rewritten as safe iterator chain

Replace the unsafe raw-pointer write loop with a safe iterator that
starts with START_OF_STRING_BONUS and maps windows-of-2 to the
separator/camelCase bonus formula.  buf.extend() dispatches through
ExactSizeIterator, so no extra allocation occurs.

The safe form exposes the element-independent structure to the
compiler, enabling auto-vectorisation on release builds.

* refactor: extract match_slices_range; simplify run_range

Add match_slices_range<C: Atom> that mirrors match_slices but calls
range_dp instead of dispatch_dp.  run_range now delegates the ASCII
path to match_slices_range and keeps only the non-ASCII char-buf
setup inline, eliminating the duplicated prefilter + bonus +
range_dp block.

* mem: SWMatrix::resize shrinks when buffer is 4× over-allocated

After a one-off large input, the full-DP matrix buffer could hold
significantly more memory than typical inputs require.  Add a
shrink-or-cap heuristic: if the current capacity exceeds 4× the
needed size, truncate and shrink_to(2×needed) to release excess
memory without thrashing on stable-sized inputs.

* Revert "mem: SWMatrix::resize shrinks when buffer is 4× over-allocated"

This reverts commit 9c8571ebe8.

* Revert "refactor: replace unsafe transmute in Cell::dir() and compute_cell with safe match"

This reverts commit 8805fa14ce.

* Revert "perf: Atom::is_sep() trait method avoids u8→char→u32 in separator check"

This reverts commit 175f26af81.

* Revert "perf: early exit in count_tail_present_ordered when match is impossible"

This reverts commit 29721558f0.

* Revert "perf: 128-bit ASCII bitset for cheap_typo_prefilter tail scan"

This reverts commit d79947fcb5.

* Revert "refactor: extract match_slices_range; simplify run_range"

This reverts commit 0fb7f05513.

* Revert "perf(skim_v3): replace RefCell with UnsafeCell (TLCell) in thread-locals"

This reverts commit 0806683251.

* Revert "perf(skim_v3): add ASCII fast path to char::eq_ignore_case"

This reverts commit 069710ad7c.

* Revert "revert(skim_v3): restore m upper bound in typo_vband_row"

This reverts commit 90ffc46633.

* Revert "perf(skim_v3): tighten typo-mode upper band bound in typo_vband_row"

This reverts commit f38ca3a10d.

* Revert "perf(skim_v3): avoid clone in traceback by using mem::take on thread-local buffer"

This reverts commit ffa9a21167.

* Revert "perf(skim_v3): add early termination when DP rows are all-zero"

This reverts commit 073195be58.

* Revert "perf(skim_v3): use 2-row rolling buffer for score-only DP path"

This reverts commit 3acacaad74.

* fix: reverse only order of frizbee indices

* chore: rename & refactor into multiple files

* chore: optimizations to the main flow

* fix: correct banding in non-typo path

* chore: generate completions & manpage

* docs: add algorithms section to the README [skip ci]

* fix(ari): correctly bound vband low

* chore(ari): specific pre-separator bonuses

* fix(ari): boost consec a bit more to beat start/sep

* chore: generate completions & manpage

* feat: run matcher over chunks

* chore: adjust penalties to keep typos under subsequences

* chore: accept snapshot

* fix: replace greedy ordered prefilter with looser unordered

* chore: finish up rename

* chore: review

---------

Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
2026-03-01 18:50:28 +01:00
LoricAndre 5daf7823eb
feat: add fzy matcher and --typos/--no-typos flag (#987)
* feat: first reimplementation of Fzy's algo

* feat: typo resistance using the `--typos` flag

* chore: generate completions & manpage

* feat: enable typo-resistance by default for fzy and frizbee

* chore: generate completions & manpage

* fix: tests & feature

---------

Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
2026-02-20 15:12:06 +01:00
Sisyphus1813 21e09295d6
Update README (#983) 2026-02-20 09:14:02 +01:00
LoricAndre c7da16f167
feat: back to stable rust (#980)
* wip: stable rust, but no match indices

* feat: use restored indices api

* chore: use crates.io pushed 0.8.0

* chore: generate completions & manpage

* fix: remove nightly-specific coverage annotations

---------

Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
2026-02-19 20:53:05 +01:00
Loric ANDRE 091c7e8284 docs: benchmarks 2026-02-18 15:57:41 +01:00
tzachar 4749154e5b
docs: add link to sqlite_skim (#971) [skip ci] 2026-02-12 15:14:28 +01:00
LoricAndre e9fb1877c0
feat(lib): add fine-grained control over skim's event loop (#968)
* feat(lib): add fine-grained control over skim's event loop

* fix: do not panic on reload

* fix: cleaner handling of reload
2026-02-12 11:57:02 +01:00
Loric ANDRE d2f0a7f952 fix: run preview on move after selection 2026-02-11 18:34:05 +01:00
Loric ANDRE a4f32c5533 docs: update nightly version [skip ci] 2026-02-11 10:01:55 +01:00
Loric ANDRE 00d32b6f9d chore: add coverage flag to README 2026-02-09 22:55:41 +01:00
Loric ANDRE 719de73182 docs: specify nightly version in README 2026-02-09 19:02:47 +01:00
Loric ANDRE 85b811ab3b chore: update interactive mode examples (closes #943) 2026-02-01 16:10:16 +01:00
Loric ANDRE 0d67e1a126 chore: add matrix room to readme 2026-01-25 23:21:00 +01:00
LoricAndre 1536eb9657
feat: add --remote flag to call remote (--listen) instances (#915)
* feat: add `--remote` flag to call remote (`--listen`) instances

* chore: generate completions & manpage

* docs: update docs

---------

Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
2026-01-23 18:19:43 +00:00
LoricAndre 1ee19d3caa
feat: split-match (#906)
* wip: split-match

* chore: generate completions & manpage

* chore: use engine factory for split match

* chore: generate completions & manpage

* docs: update README.md with new option [skip ci]

---------

Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
2026-01-21 18:35:30 +01:00
Loric ANDRE 1af0f643cb docs: reflect need for nightly rust in install section [skip ci] 2026-01-21 18:24:30 +01:00
LoricAndre d7b61e34cb
docs: update README install section 2026-01-21 16:27:08 +01:00
Loric ANDRE 66b12e7d43 test: more reproducible and more precise bench [skip ci] 2026-01-20 19:52:20 +01:00
LoricAndre 35a61fd147
feat: typo resistant matcher using frizbee from blink.cmp (#891)
* feat: typo resistant matcher using frizbee from blink.cmp

* chore: generate completions & manpage

* fix: back to stable rustc using fork

* chore: update lockfile

* chore: feature gate

* ci: update actions

* chore: generate completions & manpage

* ci: use rustup directly

* ci: fix feature name

---------

Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
2026-01-20 15:43:43 +00:00
Loric ANDRE c7ae5bf1a2 feat(ui): allow setting modifiers (closes #871) 2026-01-15 10:35:09 +01:00
LoricAndre b8dc423f9b
feat!(ui): ratatui migration (#864)
# Breaking changes
## Binds

  -  execute(...) will still run the command if no item is selected. To get the previous behavior back, use if-non-matched()+execute(...)
  -  field expansion in execute and preview will no longer support arbitrary spaces, for instance { } will not get expanded as {}
  -  interactive mode will not use stdin/skim default command when starting up.
  -  expect bind is deprecated
  -  interactive mode will now expand like other commands, except that {} will keep expanding to the current query.




* back to compiling

* work on item list & return the results

* add debounce to matcher

* feat: readd actions and binds

* clippy

* wip: use options in ui

* wip: ratatui

* feat: bring perf close to tuikit version

* chore: use list widget

* feat: working debounce on item reading

* chore: migrate to crossbeam channels

* chore: clippy & fmt

* chore: allow different backend for Tui

* feat: add matcher polling

* feat: page scrolling

* wip: statusline

* feat: working statusline

* tmp

* feat: 56/158 e2e passing

* feat: 67/158 e2e passing

* chore: generate completions & manpage

* feat: 72/158 e2e passing

* Claude/pr 864 e2e tests 011 c uyyt et2b q5n e drn aaf2 s (#873)

* docs(vim): convert FIXME to descriptive Note comment

Replace FIXME comment with a Note that accurately describes the
working directory restoration heuristic. The current implementation
is intentional and handles most use cases correctly. The comment now
documents the behavior rather than implying it needs fixing.

* feat(tui): replace todo!() panics with no-op stubs

Replace all todo!() macro panics with no-op implementations or basic
stubs for unimplemented ratatui features. This prevents crashes when
these actions are triggered during testing.

Changes:
- History navigation (NextHistory, PreviousHistory): no-op stubs
- Preview scrolling (Up/Down/Left/Right/PageUp/PageDown): no-op stubs
- Command/mode controls (RefreshCmd, RotateMode): no-op stubs
- Horizontal scrolling (ScrollLeft/Right): no-op stubs
- Preview toggles (TogglePreviewWrap, ToggleSort): no-op stubs
- Preview with position variants: basic implementations using existing
  preview methods

These features still need full implementation but won't panic now.

* test(e2e): increase wait timeout to fix slow test startup

Increased the wait timeout from 1 second (200 * 5ms) to 10 seconds
(400 * 25ms) to accommodate slower test startup times. This fixes
failures in tests that were timing out waiting for sk to initialize,
particularly the binds test suite which now passes all 6 tests.

* feat(tui): implement query history navigation

Implemented PreviousHistory and NextHistory actions for navigating
through query history using Ctrl-P and Ctrl-N.

- Added query_history, history_index, and saved_input fields to App struct
- Load history from options.query_history on initialization
- PreviousHistory (Ctrl-P): Navigate backward through history (newer to older)
- NextHistory (Ctrl-N): Navigate forward through history (older to newer)
- Saves current input when entering history, restores when returning

Manual testing confirms history navigation works correctly.

* feat(tui): implement preview scrolling

Implemented all preview scrolling actions for navigating preview content.

- Added scroll_y and scroll_x fields to Preview struct to track scroll position
- Implemented scroll_up, scroll_down, scroll_left, scroll_right methods
- Implemented page_up and page_down for full-page scrolling
- Updated render function to use scroll offsets via Paragraph::scroll()
- Preview content resets scroll position when content changes
- Implemented PreviewUp, PreviewDown, PreviewLeft, PreviewRight actions in App
- Implemented PreviewPageUp and PreviewPageDown actions in App

* fix(history): prevent duplicate history entries

Fixed critical bug where init_histories() was being called twice,
causing history entries to be duplicated. The issue was that
parse_args() called .build() and then main also called .build()
on the result, leading to init_histories() running twice.

Changed parse_args() to return unparsed options, letting main.rs
call .build() only once. This ensures history is loaded exactly
once without duplicates.

Before: history file would contain "a\nb\nc\na\nb\nc\nnew_query"
After: history file correctly contains "a\nb\nc\nnew_query"

* feat(tui): implement interactive mode

Implemented full interactive mode (-i flag) support for the ratatui migration.

**Key Features:**
- Command prompt ("c>") instead of query prompt (">") in interactive mode
- Separate command history navigation using cmd_history
- Command execution on history navigation via Event::Reload
- Support for --cmd-query initial command
- SkimOutput returns user's command in interactive mode

**Implementation Details:**
- Added cmd_history, cmd_history_index, and saved_cmd_input fields to App
- Modified Input initialization to use cmd_prompt and cmd_query in interactive mode
- Updated PreviousHistory/NextHistory to use cmd_history when options.interactive is true
- In interactive mode, history navigation triggers Event::Reload to execute commands
- Modified SkimOutput to return app.input as cmd in interactive mode

**Manual Testing:**
All interactive mode functionality verified working:
- Prompt displays "c>" correctly
- Ctrl-P/Ctrl-N navigate through command history (c→b→a→b)
- Typing updates command (b→bn)
- History file written correctly on exit

* fix(statusline): render space when spinner not shown for e2e tests

When the spinner is not displayed (reading and matching complete), the
status line needs to maintain its layout by rendering a space in the
spinner area. This ensures the status line format is "  N/N" (two spaces)
rather than " N/N" (one space), which is what the e2e tests expect.

Also simplified show_progress_indicators logic to check reading ||
matcher_running directly instead of using time-based thresholds.

This fixes all previously failing basic tests (defaults, binds, case,
history, tmux) which were timing out because they couldn't find the
expected status line format.

Test results after fix:
- binds: 6/6 passed
- case: 10/10 passed
- defaults: 4/4 passed
- history: 2/2 passed
- tmux: 2/2 passed

* fix(input): implement Yank action and fix BackwardKillWord

- Add insert_str() method to Input for inserting strings
- Fix Yank action to paste from yank_register instead of storing to it
- Fix delete_backward_word() to stop at non-word characters (alphanumeric only)
  instead of just whitespace, matching standard word deletion behavior

Test improvements:
- keys_ctrl_y: ✓ PASSED
- keys_alt_bspace: ✓ PASSED

Remaining failures: keys_ctrl_d, keys_ctrl_w, keys_ctrl_arrows, keys_tab, keys_btab

* fix(input): fix delete and word movement actions

- Fix delete() to use actual cursor position, not display position
- Change DeleteChar and DeleteCharEOF to use offset 0 (delete at cursor)
- Split word deletion into two functions:
  - delete_backward_word(): Uses alphanumeric boundaries (for Alt+Backspace)
  - delete_backward_to_whitespace(): Uses whitespace boundaries (for Ctrl+W)
- Update word movement to use alphanumeric word boundaries

Test improvements:
- keys_ctrl_d: ✓ PASSED (DeleteChar)
- keys_ctrl_w: ✓ PASSED (UnixWordRubout)
- keys_alt_bspace: ✓ STILL PASSING (BackwardKillWord)
- keys_ctrl_y: ✓ STILL PASSING (Yank)

Remaining: keys_ctrl_arrows needs adjustment for compound words

* fix(item_list): fix selection rendering to show only current item marker

Fixed the item list rendering to only show ">" for the current item,
not for selected items. This matches the expected behavior when not
using --multi flag.

Changes:
- Removed highlight_symbol from List widget (was adding extra space)
- Manually add ">" marker only for current item
- Add space after marker for consistent formatting ("> item" or "  item")
- Apply current item style only to current item

Test improvements:
- keys_tab: ✓ PASSED
- keys_btab: ✓ PASSED

Keys test suite: 21/22 passing (95%)
Remaining: keys_ctrl_arrows (compound word navigation)

* fix(input): separate word boundaries for deletion vs cursor movement

Split word boundary logic to handle two different behaviors:
- Alphanumeric boundaries for deletion (Alt+D, Alt+Backspace)
- Whitespace boundaries for cursor movement (Ctrl+Right, Ctrl+Left)

This allows compound words like "foo-bar" to be treated as:
- Single unit for cursor navigation (Ctrl+Right moves past entire word)
- Multiple words for deletion (Alt+D deletes only "foo")

Changes:
- find_next_word_end(): Uses alphanumeric boundaries for deletion
- find_compound_word_end(): Uses whitespace boundaries for movement
- move_cursor_forward_word(): Now uses compound word boundaries

Fixes keys_alt_d and keys_ctrl_arrows tests.
All 22 keys tests now passing.

* fix(item_list): respect multi-select mode for selection markers

Only show selection markers (">") in multi-select mode (-m flag).
In single-select mode, items should not display selection markers
even if they exist in the selection HashSet.

Changes:
- Added multi_select field to ItemList struct
- Set multi_select from options.multi in with_options()
- Only render selection marker when multi_select && is_selected
- Updated both normal and debug render functions

Fixes:
- bind_append_and_select: Shows ">>" in multi-select mode
- keys_tab/keys_btab: Shows only current marker in single-select mode

All 22 keys tests passing (100%).

* feat(interactive): fix interactive mode to not filter items on typing

In interactive mode, the input is a command to execute, not a filter query.
Items should be displayed without filtering until a command is executed.

Changes:
- Skip restart_matcher when typing/editing in interactive mode
  - AddChar, BackwardDeleteChar, BackwardKillWord, DeleteChar, DeleteCharEOF
  - KillWord, UnixLineDiscard, UnixWordRubout, Yank
- Use empty query for matcher in interactive mode
  - matcher.run() now uses empty Input in interactive mode
  - All items are shown regardless of what user types
  - Typing only updates the command, doesn't filter items

This fixes all 22 keys_interactive tests.
Now works correctly with piped stdin in interactive mode.

* test(interactive): add tests for command execution on typing

Added two tests to verify interactive mode command execution behavior:

1. keys_interactive.rs::interactive_command_execution()
   - Tests typing commands in interactive mode
   - Verifies "echo foo" executes and shows "foo"
   - Verifies clearing and typing "echo bar" shows "bar"

2. defaults.rs::interactive_mode_command_execution()
   - Same test in defaults suite for baseline behavior
   - Tests command execution without piped input

These tests currently fail as interactive mode doesn't execute
commands as you type - they need Event::Reload on each keystroke.

* fix(test): correct interactive mode tests to use --cmd with {} expansion

Fixed the interactive mode tests to properly test the actual behavior:
- Interactive mode executes the command passed via --cmd
- The {} placeholder in the command gets replaced with typed input
- Command re-executes automatically as you type

Test changes:
- Use --cmd "echo 'foo {}'" to provide the command template
- Typing "bar" should execute "echo 'foo bar'" and show "foo bar"
- Typing more or deleting triggers re-execution with new substitution

This is the correct interactive mode behavior, not executing arbitrary
typed commands.

* feat(interactive): implement command execution with {} expansion in interactive mode

In interactive mode with --cmd, the typed input now expands the {} placeholder
in the command and re-executes it on every keystroke (AddChar, BackwardDeleteChar,
BackwardKillWord, DeleteChar, DeleteCharEOF, KillWord, UnixLineDiscard,
UnixWordRubout, Yank).

Key changes:
- Modified expand_cmd() to use simple {} replacement in interactive mode
- Added Event::Reload handling to clear item_pool, item_list, and drain rx channel
- Interactive mode with --cmd now starts with no-op command (":") instead of
  executing the command initially
- Added drain_rx() method to ItemList to clear pending matches from channel
- Only execute commands on keystroke when both interactive mode AND --cmd are active

Added test for interactive mode command execution that verifies {} expansion
works correctly as the user types.

Fixes command execution in interactive mode to properly expand {} with typed input.

* fix(reload): don't clear displayed items during reload to avoid blank screen

When handling Event::Reload, keep the old items visible until new ones arrive
from the matcher. This prevents a flash of blank space and ensures tests that
check for immediate output updates work correctly.

The item_pool is still cleared to ensure the matcher processes only new items,
but item_list.items stays populated with the previous results until the new
matcher sends updated results through the rx channel.

Fixes binds tests that were timing out due to unexpected blank lines.

---------

Co-authored-by: Claude <noreply@anthropic.com>

* feat(e2e): use nextest to simplify e2e tests

* Claude/continue ratatui work 011 cv2 d vpg29 cp7 w3 z nfy djw (#874)

* fix(tui): add cancellation token support to event loop

The event loop task was not checking the cancellation token, causing
it to continue running even after the TUI was stopped. This resulted
in tests hanging indefinitely.

Changes:
- Clone cancellation token in start() method
- Add cancellation check as first branch in tokio::select!
- Replace unwrap() with _ = for send() calls to avoid panics
- Break out of loop when cancellation token is triggered

This fix resolves the hanging tests and allows proper cleanup.

* fix(interactive): execute command with initial query substitution

In interactive mode with --cmd, the command should execute immediately
with {} replaced by the initial query value (empty string or --query value).

Previously, it was using ':' as a no-op placeholder, which prevented
any results from showing up initially.

This fixes most of the interactive_mode_command_execution test.

* feat(tests): improve tmux capture and add line padding for trailing spaces

- Add -J flag to tmux capture-pane to preserve line structure
- Add debug logging for item rendering to trace data flow
- Implement line padding in item list to full area width

The interactive_mode_command_execution test expects trailing spaces
to be preserved (e.g., 'foo ' not 'foo'). However, ratatui doesn't
write trailing whitespace to terminals unless there's content after it,
and tmux doesn't capture whitespace that isn't written.

This is a known limitation of terminal rendering. The data structures
correctly contain 'foo ' with trailing space (verified by trace logs),
but it's lost in the terminal -> tmux -> capture pipeline.

All other integration tests pass successfully (50/53 e2e tests).

* fix(test): use starts_with for item matching to handle trailing space stripping

Terminal rendering doesn't preserve trailing whitespace, so use
starts_with() instead of exact equality for item text assertions.

This allows the test to pass while still validating the correct
content appears on screen.

All e2e tests now pass (54/54 integration tests).

* refactor: remove debug logging and line padding from item_list

Remove temporary debugging code and line padding logic that
was added during investigation of trailing space rendering.

The test fix using starts_with() is sufficient, so these
changes are no longer needed.

---------

Co-authored-by: Claude <noreply@anthropic.com>

* chore: add interactive mode init to breaking changes

* fix(tui): pass tiebreak options to matcher and sort items correctly (#875)

This fixes the tiebreak end-to-end tests by ensuring tiebreak options
are properly used in the ratatui implementation:

1. Pass RankBuilder with tiebreak criteria to matcher factory
2. Sort matched items by rank in ascending order (correct for how
   ranks are calculated with negative scores for better matches)
3. Apply sorting in both render methods when receiving new items

All 10 tiebreak tests now pass (previously 9/10 were timing out).

Co-authored-by: Claude <noreply@anthropic.com>

* docs: use nextest for all tests in AGENTS.md

* Add SkimWidget trait with from_options and render methods (#876)

* Add SkimWidget trait with from_options and render methods

- Create SkimWidget trait with:
  - from_options(options: &SkimOptions, theme: Arc<ColorTheme>) -> Self
  - render(&mut self, area: Rect, buf: &mut Buffer) -> SkimRender
- Create SkimRender struct with items_updated boolean field
- Implement SkimWidget for all TUI widgets:
  - App, ItemList, Input, StatusLine, Header, Preview
- Remove ratatui Widget trait implementations
- All widgets now initialize using SkimWidget::from_options
- Add Clone derive to SkimOptions, Input, and Preview
- Fix AppendAndSelect to use input.value instead of input

All widgets now use the custom SkimWidget trait instead of ratatui's
Widget trait, with centralized initialization through from_options.

* Remove Clone derive from SkimOptions

- Remove Clone derive from SkimOptions struct
- Remove SkimWidget trait implementation from App
- Add render_skim method to App that returns SkimRender
- Update App rendering to use render_skim instead of SkimWidget::render

App doesn't implement SkimWidget because it needs to own SkimOptions
rather than construct from a reference. The existing App::from_options
method takes ownership of SkimOptions as needed.

* Implement ratatui Widget trait for App instead of custom render method

Changed App to implement ratatui's Widget trait for &mut App<'_>
instead of having a custom render_skim method. This allows using
f.render_widget() directly in the draw closure. App does not implement
SkimWidget since it needs to own SkimOptions rather than just reference it.

* tests: better logging

* chore: fmt

* fix: remove clone derive from input widget

* fix: compact render syntax

* chore: rename with_options to from_options for Reader

* Replace with_options with from_options across all widgets

- Updated App::from_options to use SkimWidget::from_options for all widgets
- Removed with_options method definitions from Header, Input, StatusLine, and ItemList
- All widgets now exclusively use the SkimWidget trait's from_options method
- Removed empty impl block from StatusLine

---------

Co-authored-by: Claude <noreply@anthropic.com>

* tests: add fail-fast and retries to default profile

* Claude/fix ratatui tests 011 cv4gj exnq rd p4 al zg593o (#877)

* fix: update examples for ratatui migration

- Change Skim::run_with() to accept owned SkimOptions instead of &SkimOptions
- Update .bind() to accept KeyMap (from string) instead of Vec<String>
- Restructure option_builder.rs to avoid cloning SkimOptions
- Update all affected examples: cmd_collector, custom_item, custom_keybinding_actions, downcast, nth, option_builder, sample, selector

* test: fix failing unit tests for Rust behavior changes

- Update size tests to expect InvalidDigit instead of NegOverflow
  This aligns with current Rust standard library behavior when parsing
  negative numbers into unsigned integer types (u16)
- Fix printf test to expect spaces instead of newlines
  The implementation joins items with spaces, so the test expectation
  should match this behavior
- Update percent_neg test to expect full input string "-10%" in error

---------

Co-authored-by: Claude <noreply@anthropic.com>

* feat: only 33 tests remaining

* fix: preview tests passing

* chore: generate completions & manpage

* fix: fix printf test after adding quotes

* fix: fix with_nth tests

* fix: opt_multi tests

* feat: all tests but issue 361 passing

* chore: generate completions & manpage

* feat: all tests passing

* feat: all tests passing

* feat: compile without cli feature & cleanup

* chore: generate completions & manpage

* feat: update deps

* fix: update examples for ratatui

- Remove tuikit example (incompatible with ratatui, examples exist in skim-tuikit)
- Fix preview_callback example: remove & from Skim::run_with call
- Add PreviewCallback to prelude exports

* fix: update tests for rand 0.9 API

- Fix rand import: use rand::distr::Alphanumeric instead of rand::distributions
- Update random string generation to use sample_iter for rand 0.9 compatibility

All 204 tests now pass (1 flaky test passed on retry)

* fix: add missing preview_fn field in non-cli Default implementation

Ensures SkimOptions compiles with --no-default-features

* chore: fmt & clippy

* feat(ci): use nextest in CI

* chore(ci): increase timeout

* chore(ci): run tests in release mode

* refactor: consolidate workspace and inline skim-common

- Remove skim-tuikit (replaced by ratatui)
- Remove async-ratatui (experimental, not needed)
- Remove skim-common and move spinlock.rs directly into skim
- Update workspace to only include skim and xtask
- Simplify project structure for ratatui-based implementation

All tests still passing (207/207)

* fix(interactive): clear old items when reloading in interactive mode

- Add clear() method to ItemList to reset items, selection, cursor, and offset
- Drain item channel before clearing to prevent stale items from appearing
- Call item_list.clear() when handling Reload event

This ensures that when the input changes in interactive mode, old items
from the previous command are fully cleared before new results appear.

* chore(tests): more robust tests

* chore: fmt & clippy

* chore: fmt

* tests: fix remaining flakies hopefully

* chore(ci): add cache to build without cli job

* test(ci): test without env vars

* chore: use dev tty for crossterm input, to fix macos e2e panicing

* feat: better perf

* chore: generate completions & manpage

* feat: performance increase & ansi handling

* fix: lint

* chore: fmt

* fix(test): flaki bind_if_non_matched

* fix: fzf-lua & perf

* chore: docs

* chore: fmt

* chore: generate completions & manpage

* chore: bring fuzzy-matcher over from skim

* feat: perf equivalent to FZF for find /

* feat: better bench

* feat: better bench

* feat: insane perf

* feat: header tabstop

* chore: remove useless TODO comments

* fix: missing TODOs and binding overrides

* chore: generate completions & manpage

* chore: fmt & clippy

* fix: skip-to-pattern and scrolls

* chore: fmt & clippy

* chore: fmt

* chore: copilot review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: generate completions & manpage

* docs: better contributing guide

* chore: cleanup

* fix: output selection in order

* chore: add pre-commit hook

* docs: add git hook to contributing guide

* fix: completely clear UI before exiting inline mode (#880)

* fix(tmux): allow early exit (#878)

* chore: add receiver_multi example (#848)

* feat: add preview scrolling with mouse (#849)

* chore: remove install script (closes #607)

* docs: ansi is a no-op in lib usage (#476)

* chore: generate completions & manpage

* chore: add CommandCollector and FuzzyEngine to prelude (closes #477)

* chore: generate completions & manpage

* feat: tac & change bind

* chore: generate completions & manpage

* fix: correctly init matcher (#524)

* fix: collect all items in filter mode & apply tac (#385)

* fix: glitches when starting with \\0 (fixes #547)

* chore: add test macro

* feat: use printf for interactive mode command expansion

* chore: migrate tests to new macro syntax

* chore: migrate remaining tests & stabilize some flakies

* chore: cleanup

* fix: with-nth broken when using null delimiter

* fix: do not override keymaps if unknown or empty action

* chore: generate completions & manpage

* docs: add ratatui badge to the README

* fix(tmux): show items even if no data got sent when the popup opens

* chore: PR review part 1

* fix: unicode chars handling in input

* feat: add man page generation to main binary

* chore: generate completions & manpage

* fix: build without cli feature

* fix: do not use eyre for clap errors

* feat: collect stderr with --show-cmd-error

* chore: remove breaking changes file

---------

Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-12 23:28:41 +01:00
rusty-snake 00b93d4586
Skim was removed from Fedora 43 repositories (#872) 2025-12-10 21:12:17 +01:00
Shaik Azhar Madar 96b25952a4
Update tuikit link to proper path (#841) 2025-08-18 01:49:25 +02:00
Mark Zaidelman 0f4b13e8c4
feat(ui): respect NO_COLOR environment variable (#804)
* feat(ui) Respect NO_COLOR environment variable

* Add NO_COLOR to man and readme

* chore: generate completions & manpage

* Really update manpage this time

* Add `enpty` color scheme to readme

* Rename "empty" color theme to "none"

This seems a better wording for what this theme is. However, empty is
still supported for backwards compatibility (though not mentioned in
readme and manpage, but it wasn't mentioned before anyway)
Since `ColorTheme::empty` is private, I felt it's okay to rename too to
follow suite.

* Add details to related readme paragraph

---------

Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
Co-authored-by: LoricAndre <57358788+LoricAndre@users.noreply.github.com>
2025-06-22 01:04:52 +02:00
LoricAndre 90d9355dca feat(shell): Improve shell completion with dynamic generation (#790)
* chore: add aider files to gitignore

* feat: add runtime shell completion generation with --shell flag

* chore: update shell completion to output directly to stdout

* feat: add shell completion generation support using clap_complete

* feat: improve shell completion with dynamic generation and better docs

* chore: update Cargo.lock

* chore: generate completions & manpage

* refactor: simplify shell completion code and improve imports

* Use Shell enum instead of strings for shell option

This change:
- Replaces Option<String> with Option<clap_complete::Shell> for the
shell option
- Removes string-to-enum conversion in main.rs
- Adds a note that while PowerShell completions are supported, Windows
is not supported for now
- Improves the documentation formatting

* chore: generate completions & manpage

* revert gitignore

* Fix formatting issues

* Reorder shell option and remove redundant comment

- Move the shell option out of the 'reserved for later use' section into
the Scripting section
- Remove comment about using the enum directly
- Fix duplicate comment line

* chore: generate completions & manpage

* Update README.md with shell completion details

- Explicitly list supported shells in the shell completions section
- Add note about Windows not being supported

* reword readme

---------

Co-authored-by: LoricAndre <loric.andre@pm.me>
Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
2025-05-30 14:15:22 +02:00
LoricAndre 2931b295b8
docs: improve wording in README and options.rs (#789)
* docs: improve wording in README and options.rs

- Make the tone more friendly and conversational

- Fix grammar and spelling issues

- Improve clarity in several sections

- Fix the spelling of 'literally' and other minor typos

* chore: generate completions & manpage

---------

Co-authored-by: LoricAndre <loric.andre@pm.me>
Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
2025-05-29 16:21:45 +02:00
LoricAndre 7a1744217b
docs: improve theming documentation (#788)
* docs: improve theming documentation

Add comprehensive documentation about skim's theming capabilities in both README and man page.

This includes information about base themes, customizable UI elements, color specification methods, and examples of theme customization.

Fixes #663

* style: fix formatting in options.rs

---------

Co-authored-by: LoricAndre <loric.andre@pm.me>
2025-05-29 16:04:00 +02:00
LoricAndre f87ff6740b
feat(shell): readd completions (#726) (#739)
* feat(shell): readd completions (#726)

* chore: generate completions & manpage

* chore(shell): force reset colors & cursor

* docs(shell): add docs for shell modules (closes #315)

* chore: generate completions & manpage

* docs(shell): add docs on how to enable (closes #292)

---------

Co-authored-by: LoricAndre <loric.andre@pm.me>
Co-authored-by: Skim bot <skim-bot@skim-rs.github.io>
2025-04-27 23:12:13 +02:00
LoricAndre 73fd406827
feat(tui): add tuikit as workspace member and update (#741)
* feat(tui): add tuikit as workspace member and update

* chore: fmt

* chore: clippy

* chore: clippy & common spinlock

* chore: clippy on e2e

* docs(tuikit): add tuikit docs & example in skim crate

---------

Co-authored-by: LoricAndre <loric.andre@pm.me>
2025-04-26 21:22:32 +02:00
LoricAndre 03da73b0f4 fix(docs): fix README lib example 2025-01-23 00:05:39 +01:00
Alexandre GV. 44bc7965a4
doc(readme): correct fzf library statement in README (#679)
Some checks failed
release-please / release-please (push) Has been cancelled
Build & Test / unittests (linux, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Has been cancelled
Build & Test / unittests (macos, macos-latest, stable, x86_64-apple-darwin) (push) Has been cancelled
Build & Test / e2e (linux, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Has been cancelled
Build & Test / e2e (macos, macos-latest, stable, x86_64-apple-darwin) (push) Has been cancelled
Build & Test / clippy (push) Has been cancelled
Build & Test / rustfmt (push) Has been cancelled
release-please / setup-release (push) Has been cancelled
release-please / publish-crate (push) Has been cancelled
release-please / Build release binaries (aarch64, apple-darwin) (push) Has been cancelled
release-please / Build release binaries (aarch64, unknown-linux-musl) (push) Has been cancelled
release-please / Build release binaries (arm, unknown-linux-musl) (push) Has been cancelled
release-please / Build release binaries (armv7, unknown-linux-musl) (push) Has been cancelled
release-please / Build release binaries (x86_64, apple-darwin) (push) Has been cancelled
release-please / Build release binaries (x86_64, unknown-linux-musl) (push) Has been cancelled
* Correct fzf library statement

* Nuance with "clearly"

* docs: update differences to fzf

---------

Co-authored-by: LoricAndre <loric.andre@pm.me>
Co-authored-by: LoricAndre <57358788+LoricAndre@users.noreply.github.com>
2025-01-15 19:00:38 +01:00
LoricAndre 04d79e664e docs: add note about fuzziness of interactive examples (fixes #543)
Some checks are pending
release-please / release-please (push) Waiting to run
release-please / setup-release (push) Blocked by required conditions
release-please / publish-crate (push) Blocked by required conditions
release-please / Build release binaries (aarch64, apple-darwin) (push) Blocked by required conditions
release-please / Build release binaries (aarch64, unknown-linux-musl) (push) Blocked by required conditions
release-please / Build release binaries (arm, unknown-linux-musl) (push) Blocked by required conditions
release-please / Build release binaries (armv7, unknown-linux-musl) (push) Blocked by required conditions
release-please / Build release binaries (x86_64, apple-darwin) (push) Blocked by required conditions
release-please / Build release binaries (x86_64, unknown-linux-musl) (push) Blocked by required conditions
Build & Test / unittests (linux, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Waiting to run
Build & Test / unittests (macos, macos-latest, stable, x86_64-apple-darwin) (push) Waiting to run
Build & Test / e2e (linux, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Waiting to run
Build & Test / e2e (macos, macos-latest, stable, x86_64-apple-darwin) (push) Waiting to run
Build & Test / clippy (push) Waiting to run
Build & Test / rustfmt (push) Waiting to run
2024-12-03 14:01:29 +01:00
Kirisame bdaac9c8ff
docs: missing backtick in install commands (#646) 2024-12-03 09:02:24 +01:00
LoricAndre 3d99879d4e fix: revert README overwrite
Some checks are pending
release-please / release-please (push) Waiting to run
release-please / setup-release (push) Blocked by required conditions
release-please / publish-crate (push) Blocked by required conditions
release-please / Build release binaries (aarch64, apple-darwin) (push) Blocked by required conditions
release-please / Build release binaries (aarch64, unknown-linux-musl) (push) Blocked by required conditions
release-please / Build release binaries (arm, unknown-linux-musl) (push) Blocked by required conditions
release-please / Build release binaries (armv7, unknown-linux-musl) (push) Blocked by required conditions
release-please / Build release binaries (x86_64, apple-darwin) (push) Blocked by required conditions
release-please / Build release binaries (x86_64, unknown-linux-musl) (push) Blocked by required conditions
Build & Test / unittests (macos, macos-latest, stable, x86_64-apple-darwin) (push) Waiting to run
Build & Test / unittests (linux, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Waiting to run
Build & Test / e2e (linux, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Waiting to run
Build & Test / e2e (macos, macos-latest, stable, x86_64-apple-darwin) (push) Waiting to run
Build & Test / clippy (push) Waiting to run
Build & Test / rustfmt (push) Waiting to run
2024-12-02 19:49:01 +01:00
LoricAndre c9f9025da9 fix: undo sk-tmux deprecation 2024-11-30 23:01:21 +01:00
LoricAndre f6eb98e514
docs: add fzf-lua and nu_plugin_skim to the README (#626)
* docs: add fzf-lua and nu_plugin_skim to the README

* work on the doc

* [skip ci] add repology table

* [skip ci] remove icon deps from fzf-lua doc

* [skip ci] update toc

---------

Co-authored-by: LoricAndre <loric.andre@pm.me>
2024-11-27 21:44:18 +01:00
LoricAndre a2d8c3f602
feat: add --tmux flag (deprecates sk-tmux, fixes #596) (#603)
* feat: add `--tmux` flag (deprecates sk-tmux, fixes #596)

* clippy & fmt

* chore: generate doc & completions

* fix: copy stdin to tmux call

* fix: ignore stdin if not piped

* fix: stream stdin instead of punctual copy

* remove tmp dir & clippy

* fmt

* test: add basic tmux test

* fix tests

* use regex to fix tests on macos

* add unittests

* add deprecation warning to the readme

* use tmux flag in key-bindings

* fix tests on macos

* chore: improve PR ci (#617)

* Bump unicode-width from 0.1.14 to 0.2.0 (#616)

Bumps [unicode-width](https://github.com/unicode-rs/unicode-width) from 0.1.14 to 0.2.0.
- [Commits](https://github.com/unicode-rs/unicode-width/compare/v0.1.14...v0.2.0)

---
updated-dependencies:
- dependency-name: unicode-width
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump nix from 0.25.1 to 0.29.0 (#614)

Bumps [nix](https://github.com/nix-rust/nix) from 0.25.1 to 0.29.0.
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.25.1...v0.29.0)

---
updated-dependencies:
- dependency-name: nix
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump env_logger from 0.9.3 to 0.11.5 (#615)

Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.9.3 to 0.11.5.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.9.3...v0.11.5)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: LoricAndre <57358788+LoricAndre@users.noreply.github.com>

* chore: improve PR ci

* disable cache on fmt job

* add title check

* clean

* Create pr.yml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: LoricAndre <loric.andre@pm.me>

* revert mangen & compgen for merge

* merge master

* fix

* revert readme merge issues

* make TmuxOptions private

* directly invoke tmux

* better handling of tmux

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: LoricAndre <loric.andre@pm.me>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 21:43:57 +01:00
khafatech 4b4795e9bc
Fix example link and some typo in Readme (#605)
Some checks are pending
Build & Test / e2e (linux, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Waiting to run
Build & Test / e2e (macos, macos-latest, stable, x86_64-apple-darwin) (push) Waiting to run
Build & Test / clippy (linux, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Waiting to run
Build & Test / clippy (macos, macos-latest, stable, x86_64-apple-darwin) (push) Waiting to run
Build & Test / rustfmt (push) Waiting to run
* Fix example link in README.md

* Fix typo and improve punctuation

* change example url to the correct repo

* Fix some links and wording

* Add support for install on Linux armv7l, aarch64 and Darwin arm64 (#413)

Also,

- Use the Github API to download the latest `version`
- Use the new release artefact format
- Fix grep pattern to work across Mac / Linux
- Fix version check to strip out `sk` prefix
- Exit when existing version already matches

This allows the install script to work with Raspbian running on a
Raspberry Pi

* chore: remove some platform-specific quirkinesses from e2e (#602)

* chore: remove some platform-specific quirkinesses from e2e

* debug

* Revert "debug"

This reverts commit ed065c3e26.

---------

Co-authored-by: LoricAndre <loric.andre@pm.me>

* Improve grammar and wording in the readme

---------

Co-authored-by: LoricAndre <57358788+LoricAndre@users.noreply.github.com>
Co-authored-by: Rohan Jain <crodjer@proton.me>
Co-authored-by: LoricAndre <loric.andre@pm.me>
2024-11-26 21:03:29 +01:00