diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-01-27 04:17:36 +0100 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-01-27 04:17:36 +0100 |
commit | 43545381393695f722344b085620937fa3367a8a (patch) | |
tree | e2b7bdf1f0d5453341a4619f8a63948c6e6b2f76 /pkgs/misc/tmux-plugins/default.nix | |
parent | 4757f0e68df99bc7177c68dcc7c523e391d213cf (diff) | |
parent | 741c01dfc130418b134d48dfbb68f9462f853e32 (diff) |
Merge branch 'staging-next' into staging
Diffstat (limited to 'pkgs/misc/tmux-plugins/default.nix')
-rw-r--r-- | pkgs/misc/tmux-plugins/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/misc/tmux-plugins/default.nix b/pkgs/misc/tmux-plugins/default.nix index 2490fada22333..d01499af26475 100644 --- a/pkgs/misc/tmux-plugins/default.nix +++ b/pkgs/misc/tmux-plugins/default.nix @@ -548,6 +548,39 @@ in rec { ''; }; + session-wizard = mkTmuxPlugin rec { + pluginName = "session-wizard"; + rtpFilePath = "session-wizard.tmux"; + version = "1.2.0"; + src = pkgs.fetchFromGitHub { + owner = "27medkamal"; + repo = "tmux-session-wizard"; + rev = "V${version}"; + sha256 = "sha256-IfSgX02vXdpzyu1GRF1EvzVCqqOEiTjeXtl1EvNr7EI="; + }; + meta = with lib; { + homepage = "https://github.com/27medkamal/tmux-session-wizard"; + description = "Tmux plugin for creating and switching between sessions based on recently accessed directories"; + longDescription = '' + Session Wizard is using fzf and zoxide to do all the magic. Features: + * Creating a new session from a list of recently accessed directories + * Naming a session after a folder/project + * Switching sessions + * Viewing current or creating new sessions in one popup + ''; + license = licenses.mit; + platforms = platforms.unix; + maintainers = with maintainers; [ mandos ]; + }; + nativeBuildInputs = [ pkgs.makeWrapper ]; + postInstall = '' + substituteInPlace $target/session-wizard.tmux \ + --replace \$CURRENT_DIR/session-wizard.sh $target/session-wizard.sh + wrapProgram $target/session-wizard.sh \ + --prefix PATH : ${with pkgs; lib.makeBinPath ([ fzf zoxide coreutils gnugrep gnused ])} + ''; + }; + sessionist = mkTmuxPlugin { pluginName = "sessionist"; version = "unstable-2017-12-03"; @@ -651,6 +684,28 @@ in rec { inherit mkTmuxPlugin; }; + t-smart-tmux-session-manager = mkTmuxPlugin rec { + pluginName = "t-smart-tmux-session-manager"; + version = "2.8.0"; + rtpFilePath = "t-smart-tmux-session-manager.tmux"; + src = pkgs.fetchFromGitHub { + owner = "joshmedeski"; + repo = "t-smart-tmux-session-manager"; + rev = "v${version}"; + sha256 = "sha256-EMDEEIWJ+XFOk0WsQPAwj9BFBVDNwFUCyd1ScceqKpc="; + }; + nativeBuildInputs = [ pkgs.makeWrapper ]; + postInstall = '' + wrapProgram $out/share/tmux-plugins/t-smart-tmux-session-manager/bin/t \ + --prefix PATH : ${with pkgs; lib.makeBinPath ( + [ pkgs.fzf pkgs.zoxide ] + )} + + find $target -type f -print0 | xargs -0 sed -i -e 's|fzf |${pkgs.fzf}/bin/fzf |g' + find $target -type f -print0 | xargs -0 sed -i -e 's|zoxide |${pkgs.zoxide}/bin/zoxide |g' + ''; + }; + urlview = mkTmuxPlugin { pluginName = "urlview"; version = "unstable-2016-01-06"; |