diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-26 23:28:11 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-26 23:28:11 +0530 |
| commit | 6910400bb38bb69a9e81b932b01fa51802cb0c47 (patch) | |
| tree | d291a7c6e18b9b669b9a405cad9cfc5ba10547ee /modules/communication/neomutt/macros.nix | |
| parent | b93a73ba98e94cbb971dce6554c7c55bce517c0e (diff) | |
| download | home-manager-config-6910400bb38bb69a9e81b932b01fa51802cb0c47.tar.gz home-manager-config-6910400bb38bb69a9e81b932b01fa51802cb0c47.zip | |
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
Diffstat (limited to 'modules/communication/neomutt/macros.nix')
| -rw-r--r-- | modules/communication/neomutt/macros.nix | 8 |
1 files changed, 4 insertions, 4 deletions
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 = "<enter-command>set my_wait_key=$wait_key wait_key=no<enter><sync-mailbox><shell-escape>${lib.getExe config.scripts.neomutt-sync.package}<enter><sync-mailbox><enter-command>set wait_key=$my_wait_key<enter>"; } { - # 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 = "<pipe-message>urlscan<enter>"; } { - # 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 = "<enter-command>set my_pipe_decode=$pipe_decode pipe_decode=yes<enter><pipe-message>${lib.getExe' config.web.w3m.package "w3m"} -T text/html<enter><enter-command>set pipe_decode=$my_pipe_decode<enter>"; + action = "<enter-command>set my_pipe_decode=$pipe_decode pipe_decode=yes<enter><pipe-message>${lib.getExe config.web.chawan.package} -T text/html<enter><enter-command>set pipe_decode=$my_pipe_decode<enter>"; } { # Ctrl-B on a specific attachment (not just the top-level # message): pipe-entry sends the selected attachment instead. map = [ "attach" ]; key = "\\Cb"; - action = "<pipe-entry>${lib.getExe' config.web.w3m.package "w3m"} -cols 100 -T text/html<enter>"; + action = "<pipe-entry>${lib.getExe config.web.chawan.package} -cols 100 -T text/html<enter>"; } { # gF: clear the current limit/filter and show every message again, |
