aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAge
* sl0p: double-click a tab to rename itHEADmainuser2026-08-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Double-clicking a tab in the bar switches to it and drops into RenameTab mode, matching the double-click-to-rename we added for panes in the sl0ppij zellij fork. Enter commits, Esc cancels, exactly as the rename keybind does. Widgets are held behind &self and cannot keep click state, so double-click detection lives centrally in ModuleConfig::handle_mouse_action and is passed to Widget::process_click as a flag. THE TRAP, and the reason this is not a two-line change: handle_mouse_action also runs for Mouse::Release. A single click therefore arrives as LeftClick followed by Release at the SAME position. Counting releases would make every single click register as a double click, and resetting on release would mean a real double click never registers at all, since the release falls between the two clicks. Only LeftClick participates; Release neither counts nor resets. A completed pair is consumed, so a triple click does not fire a second rename. switch_tab_to() is called before switch_to_input_mode(), because RenameTab acts on the ACTIVE tab - renaming without switching first would rename the wrong one. Threshold is 400ms, the same one zellij uses for text-selection double clicks, so the bar feels consistent with the panes. Detection is extracted as register_click_for_double_click() so it can be tested without constructing a ModuleConfig. Tests cover: a real double click, the release-in-between regression, too-slow clicks, clicks at different positions, and the triple-click case. Upstream tests still pass: 25 total (20 upstream + 5 new). Note: this repo's .cargo/config.toml targets wasm32-wasip1 and runs tests under wasmtime, which is not installed here. Tests are run with `cargo test --target x86_64-unknown-linux-gnu` instead.
* fix(command): unit testsDaniel Jankowski2026-07-15
|
* feat(command): add {focused_pane_cwd} to run commands in focused cwd (#273)Dave Willett2026-07-08
| | | | | | | | | | | | | | | | | | | | | | | * feat(command): add {focused_pane_cwd} to run commands in the focused pane's directory Command widgets configured with command_<name>_cwd "{focused_pane_cwd}" now execute in the current working directory of the focused terminal pane, following it as the user changes directories. This relies on zellij's CwdChanged event and get_pane_cwd API. The focused terminal pane of the active tab is tracked via PaneUpdate (seeding the cwd on focus change) and updated on CwdChanged. Affected command results are invalidated so they re-run, and stale results from a previous cwd are discarded to avoid showing the wrong directory. Closes #92 * fix(command): release focused cwd command locks Focused-cwd commands can be invalidated while their first run is still in flight. If that result is later discarded as stale, no command result is stored but the per-command lock remains, preventing future reruns. Release the command lock when invalidating focused-cwd commands so the branch badge can recover on subsequent renders or cwd updates. Add a regression test for rerunning a command with no stored result after its lock is released.
* chore(deps): bump cached from 1.1.0 to 2.0.2 (#269)dependabot[bot]2026-06-23
| | | | | | | | | | | | | | | | | | | | | | | | | | * chore(deps): bump cached from 1.1.0 to 2.0.2 Bumps [cached](https://github.com/jaemk/cached) from 1.1.0 to 2.0.2. - [Release notes](https://github.com/jaemk/cached/releases) - [Changelog](https://github.com/jaemk/cached/blob/master/CHANGELOG.md) - [Commits](https://github.com/jaemk/cached/commits) --- updated-dependencies: - dependency-name: cached dependency-version: 2.0.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix cached 1.x to 2.x breaking changes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel Jankowski <daniel.jankowski@rub.de>
* feat(tabs): add bell and flashing-bell formats and indicator (#259)pali2026-06-03
|
* feat: add {focused_pane_title} to the tab widget formatter (#250)Yui2026-06-03
|
* chore(deps): bump cached from 0.59.0 to 1.1.0 (#263)dependabot[bot]2026-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | * chore(deps): bump cached from 0.59.0 to 1.1.0 Bumps [cached](https://github.com/jaemk/cached) from 0.59.0 to 1.1.0. - [Changelog](https://github.com/jaemk/cached/blob/master/CHANGELOG.md) - [Commits](https://github.com/jaemk/cached/commits) --- updated-dependencies: - dependency-name: cached dependency-version: 1.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: breaking changes from cached 1.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel Jankowski <daniel.jankowski@rub.de>
* fix: use timer events for idle refresh (#253)Jake Nelson2026-06-01
|
* fix(zjframes): import Arc for tracingDaniel Jankowski2026-04-18
|
* feat: add zero based tab index support (#249)Rikard Bergqvist2026-04-18
| | | | | * adds zero based tab index support * update after comments
* chore: linting issue in tabs widgetDaniel Jankowski2026-04-11
|
* chore(zjframes): remove unused arc formDaniel Jankowski2026-04-10
|
* chore(clippy): fix issuesDaniel Jankowski2025-12-17
|
* feat(command): hide on empty stdoutDaniel Jankowski2025-09-07
|
* feat(pipe): add render modesDaniel Jankowski2025-06-09
|
* fix(command): handle raw formatting correctlyDaniel Jankowski2025-06-09
|
* chore: remove test codeDaniel Jankowski2025-06-09
|
* chore(deps): update to rust 1.87.0Daniel Jankowski2025-06-09
|
* chore(deps): update to toolchain 1.86Daniel Jankowski2025-04-05
|
* chore(deps): bump zellij-tile from 0.41.2 to 0.42.1 (#141)dependabot[bot]2025-03-28
| | | | | | | | | | | | | | | | | | | | | | * chore(deps): bump zellij-tile from 0.41.2 to 0.42.1 Bumps zellij-tile from 0.41.2 to 0.42.1. --- updated-dependencies: - dependency-name: zellij-tile dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix(config): implement missing trait member --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel Jankowski <daniel.jankowski@rub.de>
* fix(frames): glitching on borderless panesDaniel Jankowski2025-02-11
|
* fix: flickering frames for scrollback editorDaniel Jankowski2025-01-28
| | | | fixes #120
* feat(frames): hide frame except for scrollDaniel Jankowski2025-01-18
| | | | fixes #116
* fix(frames): show frames in search modeDaniel Jankowski2025-01-18
| | | | fixes #117
* feat: add pipe widgetDaniel Jankowski2025-01-18
|
* chore: fix linting issueDaniel Jankowski2025-01-02
|
* fix: zjframes only working on first tabDaniel Jankowski2025-01-02
| | | | fixes #109
* chore: fix linting issueDaniel Jankowski2024-11-30
|
* fix: don't toggle frames on when all configs are disabledDaniel Jankowski2024-11-30
| | | | Fixes #94
* feat: add new binary for just toggling framesDaniel Jankowski2024-11-16
|
* feat: add hide_frame_except_for_fullscreenDaniel Jankowski2024-11-16
|
* chore: linting changesDaniel Jankowski2024-10-24
|
* feat: add error message for empty configDaniel Jankowski2024-10-24
|
* feat: hide frames except on searchDaniel Jankowski2024-10-05
|
* feat(tabs): multiple formats for truncation markerDaniel Jankowski2024-08-07
|
* chore: move from {alias} to $aliasDaniel Jankowski2024-07-15
|
* feat: add color aliasesDaniel Jankowski2024-07-15
| | | | closes #75
* feat: add bright_ ansi colorsDaniel Jankowski2024-07-15
|
* fix: hide separator on last tab when truncatedDaniel Jankowski2024-07-06
|
* feat: render truncated tab count to indicatorDaniel Jankowski2024-06-23
|
* feat: add tab bar scrolling based on tab countDaniel Jankowski2024-06-23
| | | | fixes #67
* feat: enable configuration for date and time separatelyDaniel Jankowski2024-06-20
| | | | fixes #70
* chore: fix linting issuesDaniel Jankowski2024-06-20
|
* feat: multiple formats for command widgetDaniel Jankowski2024-06-20
| | | | fixes #69
* chore: further bump cargo depsDaniel Jankowski2024-06-11
|
* feat: implement click action for command widgetDaniel Jankowski2024-06-02
|
* feat: toggle hide format overlengthDaniel Jankowski2024-05-31
|
* fix: mouse clicks with hidden partsDaniel Jankowski2024-05-25
|
* feat: print config errors for usersDaniel Jankowski2024-05-25
|
* feat: implement format precedence to hide overflown partsDaniel Jankowski2024-05-25
| | | | Fixes #58