Skip to content

Set chawan as default browser and add mailcap integration#113

Merged
thavelick merged 1 commit intomainfrom
set_browser_to_chawan
Feb 11, 2026
Merged

Set chawan as default browser and add mailcap integration#113
thavelick merged 1 commit intomainfrom
set_browser_to_chawan

Conversation

@thavelick
Copy link
Owner

Summary

  • Sets chawan as the default browser in BROWSER env var
  • Adds comprehensive chawan configuration for better web browsing
  • Implements mailcap integration for opening images with imv

Changes

  • zsh/core.zsh: Prioritize chawan in browser detection
  • chawan/config.toml: Enable cookies, referer headers, auto-redirects, custom search engine, and keybindings
  • chawan/auto.mailcap: Configure external image viewer using imv
  • bin/imv-mailcap: Wrapper script to download and display image URLs with imv
  • chawan/setup.sh: Install mailcap configuration file

Test plan

  • Verify chawan is set as BROWSER when available
  • Test image viewing with 'I' key in chawan
  • Verify custom search with C-k works
  • Test M-o to open URLs in GUI browser

🤖 Generated with Claude Code

- Set BROWSER env var to prefer chawan over other browsers
- Enable chawan features: cookies, referer headers, auto-redirects
- Add custom search with just-bangs-lite (C-k keybinding)
- Add M-o keybinding to open current URL in default GUI browser
- Add mailcap integration to open images with imv using curl pipe
- Create imv-mailcap wrapper script for seamless image viewing

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@thavelick thavelick merged commit 22a86db into main Feb 11, 2026
3 checks passed
@thavelick thavelick deleted the set_browser_to_chawan branch February 11, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant