From 8be5060ab4a0eabba574e7143f1d76c30372c26a Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 4 Dec 2025 22:36:24 +0100 Subject: [PATCH] fixes sessionizer --- flake.lock | 84 +++++++++++++++++++++++++++++++++++++++- modules/fish/default.nix | 2 +- 2 files changed, 84 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index 082de2e..116aad0 100644 --- a/flake.lock +++ b/flake.lock @@ -300,6 +300,34 @@ "type": "github" } }, + "nixpkgs_4": { + "locked": { + "lastModified": 0, + "narHash": "sha256-/qlNWm/IEVVH7GfgAIyP6EsVZI6zjAx1cV5zNyrs+rI=", + "path": "/nix/store/khbvilmsrv4l69nwd52h27j1mp44a0xi-source", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "nixpkgs_5": { + "locked": { + "lastModified": 1728538411, + "narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "agenix": "agenix", @@ -308,7 +336,8 @@ "ironbar": "ironbar", "nix-darwin": "nix-darwin", "nix-homebrew": "nix-homebrew", - "nixpkgs": "nixpkgs_3" + "nixpkgs": "nixpkgs_3", + "zellij-switch": "zellij-switch" } }, "rust-analyzer-src": { @@ -328,6 +357,24 @@ "type": "github" } }, + "rust-overlay": { + "inputs": { + "nixpkgs": "nixpkgs_5" + }, + "locked": { + "lastModified": 1736476219, + "narHash": "sha256-+qyv3QqdZCdZ3cSO/cbpEY6tntyYjfe1bB12mdpNFaY=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "de30cc5963da22e9742bbbbb9a3344570ed237b9", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, "systems": { "locked": { "lastModified": 1681028828, @@ -342,6 +389,41 @@ "repo": "default", "type": "github" } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "zellij-switch": { + "inputs": { + "nixpkgs": "nixpkgs_4", + "rust-overlay": "rust-overlay", + "systems": "systems_2" + }, + "locked": { + "lastModified": 1742588229, + "narHash": "sha256-IPg0pBw0ciF+xl6viq3nK+dvZoDZrfBDui7dkPLz258=", + "owner": "mostafaqanbaryan", + "repo": "zellij-switch", + "rev": "0e3c303c19890ccb03589230ac5a7c4307e573e4", + "type": "github" + }, + "original": { + "owner": "mostafaqanbaryan", + "repo": "zellij-switch", + "type": "github" + } } }, "root": "root", diff --git a/modules/fish/default.nix b/modules/fish/default.nix index 9f3b492..21193aa 100644 --- a/modules/fish/default.nix +++ b/modules/fish/default.nix @@ -53,7 +53,7 @@ ''; sessionizer = '' set -l selected (fd . $HOME/dev/ -t d -d 1 | fzf) - zellij-switch --session (basename $selected) --cwd $selected --layout default + zellij pipe --plugin zellij-switch.wasm -- "--session $(basename $selected) --cwd $selected --layout default" ''; nn = '' # Require a title argument