Skip to content

Commit

Permalink
better binding stanza
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Jan 3, 2023
1 parent eb6df89 commit 5c89838
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ After enabling in mutt (see below) run by hitting the corresponding keybinding,
Something like the following in your `muttrc` should do the trick, which binds to `<Ctrl>+b`, same as `urlview`:

```
macro index,pager,attach,compose \cb "\
<enter-command> set my_pipe_decode=\$pipe_decode pipe_decode<Enter>\
<pipe-message> leth<Enter>\
<enter-command> set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<Enter>" \
"call leth to extract URLs out of a message"
macro index,pager \cb "<pipe-message> leth<Enter>" "call leth to extract URLs out of a message"
macro attach,compose \cb "<pipe-entry> leth<Enter>" "call leth to extract URLs out of a message"
```

The above snippet nicked from the default global `muttrc` in an Ubuntu installation.
## Better Alternatives

[urlscan] is overall a more capable URL selector.

[urlview]: https://github.com/sigpipe/urlview
[mutt]: http://www.mutt.org/
[urlscan]: https://github.com/firecat53/urlscan
[urlview]: https://github.com/sigpipe/urlview
[skim]: https://github.com/lotabout/skim

0 comments on commit 5c89838

Please sign in to comment.