From 29ae755d4139000a72909e41b34085f83b428a2d Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 7 Apr 2025 13:44:26 +0000 Subject: [PATCH] [2] WIP: home: tmux: fix undercurl rendering --- modules/home/tmux/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/home/tmux/default.nix b/modules/home/tmux/default.nix index f368430..1ac11c4 100644 --- a/modules/home/tmux/default.nix +++ b/modules/home/tmux/default.nix @@ -59,6 +59,20 @@ in terminal = "tmux-256color"; # I want accurate termcap info aggressiveResize = true; # Automatic resize when switching client size + # FIXME + # * Sixel support + # * OSC 133 prompt integration + # FIXME: when sensible-on-top is disabled: check if any of those are unset + # * tmux bind-key $prefix_without_ctrl last-window + # * + # * tmux bind-key C-b send-prefix: included + # * aggressive resize? done + # * tmux bind-key C-p previous-window: done + # * tmux bind-key C-n next-window: done + # * C-r to refresh my config: done + # * tmux set-option -g focus-events on: done + + # FIXME: make PRs for `bind-key` description plugins = with pkgs.tmuxPlugins; builtins.filter (attr: attr != { }) [ # Open high-lighted files in copy mode open @@ -133,6 +147,9 @@ in ${mkTerminalFeatures "trueColor" "RGB"} # Force underscore style/color for each relevant $TERM ${mkTerminalFeatures "underscoreStyle" "usstyle"} + # FIXME: see https://github.com/folke/tokyonight.nvim#fix-undercurls-in-tmux for additional overrides + # ${mkTerminalOverrides "underscoreStyle" "Smulx=\\E[4::%p1%dm"} + # ${mkTerminalOverrides "underscoreStyle" "Setulc=\\E[58::2::::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m"} ''; }; }