From 6910400bb38bb69a9e81b932b01fa51802cb0c47 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 26 Jul 2026 23:28:11 +0530 Subject: feat: replace w3m with chawan for HTML rendering and web browsing - Create web.chawan module with enable/package options, kitty desktop entry, and programs.chawan.settings (buffer.images=true, display.image-mode=auto) - Update neomutt macros, mailcap, and assertions from w3m to chawan - Switch waybar window-rewrite and workspace icon from W3M to Chawan - Drop web/w3m module --- modules/communication/neomutt/macros.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/communication/neomutt/macros.nix') diff --git a/modules/communication/neomutt/macros.nix b/modules/communication/neomutt/macros.nix index bc18e43..d8b6f55 100644 --- a/modules/communication/neomutt/macros.nix +++ b/modules/communication/neomutt/macros.nix @@ -11,7 +11,7 @@ action = "set my_wait_key=$wait_key wait_key=no${lib.getExe config.scripts.neomutt-sync.package}set wait_key=$my_wait_key"; } { - # gx: open the message body in interactive w3m -- real vim-style + # gx: open the message body in interactive chawan -- real vim-style # cursor navigation (hjkl, Tab/Shift-Tab between links, Enter to # follow, B back, q to return to neomutt). Replaces the old # urlscan-based link picker. @@ -23,19 +23,19 @@ action = "urlscan"; } { - # Ctrl-B in the pager: same interactive w3m view as gx, kept as + # Ctrl-B in the pager: same interactive chawan view as gx, kept as # a second binding since Ctrl-B is a common muscle-memory key # for "open this in a browser-like view". map = [ "pager" ]; key = "\\Cb"; - action = "set my_pipe_decode=$pipe_decode pipe_decode=yes${lib.getExe' config.web.w3m.package "w3m"} -T text/htmlset pipe_decode=$my_pipe_decode"; + action = "set my_pipe_decode=$pipe_decode pipe_decode=yes${lib.getExe config.web.chawan.package} -T text/htmlset pipe_decode=$my_pipe_decode"; } { # Ctrl-B on a specific attachment (not just the top-level # message): pipe-entry sends the selected attachment instead. map = [ "attach" ]; key = "\\Cb"; - action = "${lib.getExe' config.web.w3m.package "w3m"} -cols 100 -T text/html"; + action = "${lib.getExe config.web.chawan.package} -cols 100 -T text/html"; } { # gF: clear the current limit/filter and show every message again, -- cgit v1.2.3