summaryrefslogtreecommitdiffstats
path: root/zellij-utils
AgeCommit message (Collapse)Author
2023-08-31chore(release): v0.38.1v0.38.1Aram Drevekenin
2023-08-31chore(version): adjust version for releaseAram Drevekenin
2023-08-28chore(version): bump development versionAram Drevekenin
2023-08-28chore(release): v0.38.0v0.38.0Aram Drevekenin
2023-08-28xtask/pipeline: Fix publish task (#2711)har7an
* xtask/pipeline: Fix publish task which was previously stuck in an infinite loop after successfully publishing a crate. The error originated in the code only checking for error conditions but not breaking out of the inner infinite loop in case of success. * xtask: Improve publish failure UX by offering the user more actions to choose from when an error occured. * utils/assets: Add generated prost files to assets to make sure they're available at build time and are picked up by all components. It seems we hit some strange bug with the build script where, when running `cargo publish --dry-run` the build script **is not** run before regularly compiling zellij-utils. This shouldn't happen according to the docs, but I cannot explain what's causing it. So we're using this as a workaround for now to make a smooth release. * xtask: Prevent accidental git commit deletion when dry-running a publish. * utils: Add comments to protobuf-related code to explain why these changes were performed. The comments all include a link to an issue comment explaining the situation in greater detail. * xtask: Build protobuf definitions when building any part of the project, similar to how we build the plugins when required. This should ensure that all crates built through `cargo xtask` (which is the officially supported build method) will receive up-to-date protobuf definitions.
2023-08-27fix(panes): refocus pane properly on tab change (#2734)Aram Drevekenin
* fix(panes): stacked panes focus bug * style(fmt): rustfmt
2023-08-25fix(plugins): remove protobuf duplications (#2729)Aram Drevekenin
* fix(plugins): remove protobuf duplications * style(fmt): rustfmt
2023-08-25fix(plugins): make sure configuration is also part of the plugin keys (#2727)Aram Drevekenin
* fix(plugins): make sure configuration is also part of the plugin keys * no thanks clippy
2023-08-25fix(keybinds): add 'floating' and 'name' to the Run command keybinding (#2726)Aram Drevekenin
* fix(keybinds): add 'floating' and 'name' to the Run command keybinding * style(fmt): rustfmt
2023-08-25feat(plugins): optionally move plugin to focused tab (#2725)Aram Drevekenin
* feat(plugins): move_to_focused_tab attribute for LaunchOrFocusPlugin * style(fmt): rustfmt
2023-08-24fix(ux): various ui/ux fixes (#2722)Aram Drevekenin
* force plugin render on permission request response * clear warnings * Revert "feat(ui): new status bar mode (#2619)" This reverts commit 27763d26ab83dd9f81c69c75601cbf6075f13790. * adjust status bar help * fix colors in session manager and shortcut in status-bar * adjust keybindings
2023-08-24feat(sessions): add a session manager to switch between sessions, tabs and ↵Aram Drevekenin
panes and create new ones (#2721) * write/read session metadata to disk for all sessions * switch session client side * fix tests * various adjustments * fix full screen focus bug in tiled panes * fix tests * fix permission sorting issue * cleanups * add session manager * fix tests * various cleanups * style(fmt): rustfmt * clear screen before switching sessions * I hate you clippy * truncate controls line to width * version session cache * attempt to fix plugin tests * style(fmt): rustfmt * another attempt to fix the tests in the ci
2023-08-12feat: add plugin permission system (#2624)Jae-Heon Ji
* WIP: add exaple of permission ui * feat: add request permission ui * feat: add caching permission in memory * feat: add permission check * feat: add file caching * fix: changes request * feat(ui): new status bar mode (#2619) * supermode prototype * fix integration tests * fix tests * style(fmt): rustfmt * docs(changelog): status-bar supermode * fix(rendering): occasional glitches while resizing (#2621) * docs(changelog): resize glitches fix * chore(version): bump development version * Fix colored pane frames in mirrored sessions (#2625) * server/panes/tiled: Fix colored frames in mirrored sessions. Colored frames were previously ignored because they were treated like floating panes when rendering tiled panes. * CHANGELOG: Add PR #2625 * server/tab/unit: Fix unit tests for server. * fix(sessions): use custom lists of adjectives and nouns for generating session names (#2122) * Create custom lists of adjectives and nouns for generating session names * move word lists to const slices * add logic to retry name generation * refactor - reuse the name generator - iterator instead of for loop --------- Co-authored-by: Thomas Linford <linford.t@gmail.com> * docs(changelog): generate session names with custom words list * feat(plugins): make plugins configurable (#2646) * work * make every plugin entry point configurable * make integration tests pass * make e2e tests pass * add test for plugin configuration * add test snapshot * add plugin config parsing test * cleanups * style(fmt): rustfmt * style(comment): remove commented code * docs(changelog): configurable plugins * style(fmt): rustfmt * touch up ui * fix: don't save permission data in memory * feat: load cached permission * test: add example test (WIP) * fix: issue event are always denied * test: update snapshot * apply formatting * refactor: update default cache function * test: add more new test * apply formatting * Revert "apply formatting" This reverts commit a4e93703fbfdb6865131daa1c8b90fc5c36ab25e. * apply format * fix: update cache path * apply format * fix: cache path * fix: update log level * test for github workflow * Revert "test for github workflow" This reverts commit 01eff3bc5d1627a4e60bc6dac8ebe5500bc5b56e. * refactor: permission cache * fix(test): permission grant/deny race condition * style(fmt): rustfmt * style(fmt): rustfmt * configure permissions * permission denied test * snapshot * add ui for small plugins * style(fmt): rustfmt * some cleanups --------- Co-authored-by: Aram Drevekenin <aram@poor.dev> Co-authored-by: har7an <99636919+har7an@users.noreply.github.com> Co-authored-by: Kyle Sutherland-Cash <kyle.sutherlandcash@gmail.com> Co-authored-by: Thomas Linford <linford.t@gmail.com> Co-authored-by: Thomas Linford <tlinford@users.noreply.github.com>
2023-08-09feat(plugins): use protocol buffers for serializing across the wasm boundary ↵Aram Drevekenin
(#2686) * work * almost done with command protobuffers * done translating command data structures * mid transferring of every command to protobuff command * transferred plugin_command.rs, now moving on to shim.rs * plugin command working with protobufs * protobuffers in update * protobuf event tests * various TODOs and comments * fix zellij-tile * clean up prost deps * remove version mismatch error * fix panic * some cleanups * clean up event protobuffers * clean up command protobuffers * clean up various protobufs * refactor protobufs * update comments * some transformation fixes * use protobufs for workers * style(fmt): rustfmt * style(fmt): rustfmt * chore(build): add protoc * chore(build): authenticate protoc
2023-08-02feat(ui): break pane to new tab and move panes between tabs (#2664)Aram Drevekenin
* prototype * some tests * break out floating pane * break out plugin panes * add keybind and fix some minor issues * remove cli * move pane to left/right tab * update ui * adjust ui * style(fmt): rustfmt * style(comment): remove commented code * update snapshots
2023-07-25feat(plugins): make plugins configurable (#2646)Aram Drevekenin
* work * make every plugin entry point configurable * make integration tests pass * make e2e tests pass * add test for plugin configuration * add test snapshot * add plugin config parsing test * cleanups * style(fmt): rustfmt * style(comment): remove commented code
2023-07-12chore(version): bump development versionAram Drevekenin
2023-07-12fix(rendering): occasional glitches while resizing (#2621)Aram Drevekenin
2023-06-20chore(release): v0.37.2v0.37.2Aram Drevekenin
2023-06-20chore(version): bump development versionAram Drevekenin
2023-06-20hotfix: include theme files into binary (#2566)Jae-Heon Ji
* fix: include theme files into binary * fix: delete unused features * fix: change user theme dir to optional
2023-06-19chore(version): bump development versionAram Drevekenin
2023-06-19chore(release): v0.37.1v0.37.1Aram Drevekenin
2023-06-19chore(version): bump development versionAram Drevekenin
2023-06-19Revert "Fix error loading non-existant themes directory and use default ↵Jae-Heon Ji
themes as the base when merging (#2411)" (#2562) This reverts commit 48e75d05596d58cfdb4e959d7cf571c3b4ed5038.
2023-06-18chore(version): bump development versionAram Drevekenin
2023-06-18chore(release): v0.37.0v0.37.0Aram Drevekenin
2023-06-17docs(plugins): document the zellij-tile events and commands api (#2554)Aram Drevekenin
2023-06-17feat(plugins): more plugin api methods (#2550)Aram Drevekenin
* feat(plugins): close, focus, rename pane, rename tab and show_self api methods * style(fmt): rustfmt
2023-06-16performance(plugins): use a debounced fs watcher (#2546)Aram Drevekenin
* performance(plugins): use a debounced fs watcher * style(fmt): rustfmt * fix(macos): use recommended watcher
2023-06-15feat(plugins): plugin pane state events (#2545)Aram Drevekenin
* feat(plugins): report pane state to plugins * refactor(plugins): rename some stuff * tests(plugins): adjust for new behavior * style(fmt): rustfmt
2023-06-14fix(plugins): allow loading relative urls (#2539)Aram Drevekenin
* fix(plugins): allow loading relative urls * style(fmt): rustfmt
2023-06-13fix(plugins): only listen to hd if a plugin is subscribed to hd events (#2529)Aram Drevekenin
* fix(plugins): only listen to hd if a plugin is subscribed to hd events * style(fmt): rustfmt * fix(tests): give time for fs watcher to do its thing * fix(tests): increase timeout
2023-06-09feat(plugins): extensive plugin api (#2516)Aram Drevekenin
* feat(plugins): add our entire API * style(fmt): rustfmt * fix(detach): make it work again
2023-06-07feat(wasm-plugin-system): major overhaul and some goodies (#2510)Aram Drevekenin
* strider resiliency * worker channel prototype * finalized ui * show hide plugin * fs events to plugins * tests for events and new screen instructions * various refactoringz * report plugin errors instead of crashing zellij * fix plugin loading with workers * refactor: move watch filesystem * some fixes and refactoring * refactor(panes): combine pane insertion logic * refactor(screen): launch or focus * refactor(pty): consolidate default shell fetching * refactor: various cleanups * initial refactoring * more initial refactoring * refactor(strider): search * style(fmt): rustfmt * style(pty): cleanup * style(clippy): ok clippy * style(fmt): rustfmt
2023-05-16feat(plugins): Plugin workers and strider (#2449)Aram Drevekenin
* mvp of strider fuzzy find * improve search ui * various refactoringz * moar refactoring * even more refactoring * tests and more refactoring * refactor: remove unused stuff * style(fmt): rustfmt * debug ci * debug ci * correct path for plugin system tests * fix plugin system ci tests * remove debugging statements from test * fix plugin worker persistence * add test for plugin worker persistence * style(fmt): rustfmt * final cleanups * remove outdated comments
2023-05-15Fix issue 2421 - Update config file output (#2443)Kangaxx-0
* Update config file output * add more information in config error
2023-05-09Use rust 1.67 (#2375)har7an
* rust: Update toolchain version to 1.67 * xtask/pipeline/publish: Drop manual "wait" for crates.io to catch up, which is obsolete with rust 1.66 and up. Cargo does that on its own now. See https://github.com/rust-lang/cargo/pull/11062 * xtask: Add function to obtain asset_dir instead of assembling it on demand throughout the codebase. * xtask/run: Add '--quick-run' flag as a convenient shorthand for `cargo xtask run --data-dir $PROJECT_ROOT/zellij-utils/assets`. * cargo: Add 'q' command alias as a shorthand for 'cargo xtask run --quick-run' * cargo: Update thiserror to 1.0.40 * cargo: Update anyhow to 1.0.70 and specify dependency only once inside `zellij-utils`, not inside the zellij root crate. * cargo: Update names to 0.14.0 * cargo: Update miette to 5.7.0 and re-export the dependency from zellij-utils, to avoid duplicate (incompatible) includes from inside zellij-utils and the root crate. * cargo: Update dialoguer to 0.10.4 * fix formatting * changelog: Add PR #2375
2023-05-02Fix error loading non-existant themes directory and use default themes as ↵Imbris
the base when merging (#2411) * Fix error loading non-existant themes directory If the themes directory is derived from the config directory (rather than being specified explicitly in the config_options), we will avoid trying to load from it if it doesn't exist. * Use default themes as the base when merging with the themes specified in the config. This avoids the default themes overriding themes specified in the config. * If `setup --clean` is used, avoid loading from the user's theme directory.
2023-04-28fix(errors): add file path context to all IO errors in ConfigError (#2412)Imbris
2023-04-28feat(layout): Support environment variables in cwd (#2288) (#2291)Ran Shaham
* feat(layout): Support environment variables in cwd (#2288) * add `shellexpand` as dependency * expand environment variable in kdl parser's `parse_cwd()` * Fix and enhance environment variable expansion. * Return a proper `ConfigError` on failures. * Replace raw cwd parsing with `parse_cwd()`. * Add tests that verify correct expansions. * Perform env var expansion in more contexts. * feat(layout): Rewrite env var tests as snapshots. * Update layout env var expansion test snapshot.
2023-04-27feat: provide default themes (#2307)Jae-Heon Ji
* refactor: move themes to zellij-assets * feat: add theme to the binary * chore: move new theme from example to assets
2023-04-19feat(plugins): reload plugin at runtime (#2372)Aram Drevekenin
* fix(plugins): proper error when wasm file does not exist * reload working * race condition handling * refactor(plugins): start plugin * refactor(plugins): plugin-loader * refactor(plugins): load/reload plugin * refactor(plugins): apply cached events * fix(plugins): gittery loading * chore(plugins): rename reload-plugin to start-or-reload-plugin * chore(styling): small cleanups * style(fmt): rustfmt * style(fmt): cleanups * style(fmt): cleanups * test(e2e): update snapshots * test(e2e): update snapshots * chore(repo): comment plugin optimization because it doubles the CI time
2023-04-18feat: support default cwd (#2290)Kangaxx-0
* init commit * add default config to kdl file * change the field from `default_cwd` to `override_cwd` * change back to default_cwd * fix test * default cwd works without `default_shell`
2023-04-18feat: Add layout configuration to exclude panes from tab sync (#2314)Theo Salzmann
2023-04-13chore(version): bump development versionAram Drevekenin
2023-04-13chore(release): v0.36.0v0.36.0Aram Drevekenin
2023-04-03feat(panes): allow defining an expanded stacked pane (#2343)Aram Drevekenin
* feat(panes): allow defining an expanded stacked pane * style(fmt): rustfmt
2023-03-30fix(layouts): nested attribute truncating (#2337)Aram Drevekenin
2023-03-30fix(layouts): do not default to default swap layouts when opening a new tab ↵Aram Drevekenin
without swap layouts (#2336)