-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmuxPlugins.t-smart-tmux-session-manager: init at 2.8.0 #252214
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2835 |
Did you see that there are versions (like v2.6.0) on https://github.com/joshmedeski/t-smart-tmux-session-manager/releases ? |
i did not 😓, let me fix that :) |
7551c81
to
c2ecb5d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds and runs fine, thanks!
Thank you very much for your review! |
Do you use the Something like: postInstall = ''
mv $target/bin $out/
''; It seems other tmux plugins replace maybe something like: # for the t shell script
wrapProgram $out/bin/t \
--prefix PATH : ${with pkgs; lib.makeBinPath (
[ pkgs.fzf pkgs.zoxide ... ]
)}
# for tmux files
find $target -type f -print0 | xargs -0 sed -i -e 's|fzf |${pkgs.fzf}/bin/fzf |g'
# ... |
unless maybe the plugin doesn't use zoxide if it's not in PATH. |
Yes, outside of tmux it creates a new session (or loads one if it exists)
I think it needs zoxide and fzf as deps, actually. Will update as |
Do we also need to replace zoxide like we did for fzf ? |
c2ecb5d
to
e59598b
Compare
Do you use tmux with home-manager? I think adding |
I had it setup slightly different:
and then:
Which is a bit of hack tbh thinking about it. |
hmm interesting 🤔 |
pkgs/misc/tmux-plugins/default.nix
Outdated
@@ -648,6 +648,28 @@ in rec { | |||
inherit mkTmuxPlugin; | |||
}; | |||
|
|||
t-smart-tmux-session-manager = mkTmuxPlugin { | |||
pluginName = "t-smart-tmux-session-manager"; | |||
version = "unstable-2023-06-05"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use the tag of the latest version? Like
nixpkgs/pkgs/misc/tmux-plugins/default.nix
Lines 460 to 472 in e59598b
plumb = mkTmuxPlugin rec { | |
pluginName = "plumb"; | |
version = "0.1.1"; | |
src = fetchFromGitHub { | |
owner = "eraserhd"; | |
repo = "tmux-plumb"; | |
rev = "v${version}"; | |
sha256 = "1c6k4fdl0az9811r6k164mgd4w5la75xr6x7nabmy046xc0z5i2r"; | |
}; | |
postInstall = '' | |
sed -i -e 's,9 plumb,${pkgs.plan9port}/bin/9 plumb,' $target/scripts/plumb | |
''; | |
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i made some changes is this whay you meant!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. Thanks.
Do you have hangs with 2.8.0? On my computer it seems to hang when I use ctrl+b + T
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope works fine for me!
Can you squash your commits please? Don't forget to replace "init at unstable-2023-06-05" with the right version. |
d4143f3
to
9404f2a
Compare
done |
Thank you very much for the PR. I have been using this plugin every day since I discovered it. |
Description of changes
A tmux plugin for making session management a lot easier, using zoxide and fzf. https://github.com/joshmedeski/t-smart-tmux-session-manager
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)