Skip to content

Commit

Permalink
add tmux thumbs back
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored and mergify[bot] committed Jan 24, 2024
1 parent 76e35d0 commit 5289c2e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion home-manager/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
}: {
imports = [
./modules/neovim
./modules/tmux-thumbs.nix
#./modules/emacs
];
home.packages = with pkgs;
[
#(pkgs.callPackage /home/joerg/git/nix-review {})
nixpkgs-review
nix-prefetch
(pkgs.callPackage ./pkgs/atuin { })
Expand Down
6 changes: 6 additions & 0 deletions home-manager/modules/tmux-thumbs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{ pkgs, ... }: {
home.packages = with pkgs; [
tmuxPlugins.tmux-thumbs
];
home.extraOutputsToInstall = [ "share/tmux-plugins" ];
}
5 changes: 5 additions & 0 deletions home/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ bind-key -n WheelDownPane \

# sync tmux buffer with terminal clipboard
set -g set-clipboard on
set -g @thumbs-key F
set -g @thumbs-osc52 1
# match sri und sha256 hashes for nix
set -g @thumbs-regexp-1 '(sha256-[0-9a-zA-z=/+]{44}|[0-9a-f]{7,40}|[0-9a-z]{52})'
run-shell ~/.nix-profile/share/tmux-plugins/tmux-thumbs/tmux-thumbs.tmux

# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
Expand Down

0 comments on commit 5289c2e

Please sign in to comment.