emacs-w3m really likes to have its buffers have names like *w3m*<16>
or *w3m*
so when switching buffers, it's impossible to tell just from the names which buffer is displaying which web page.
I've tried renaming the w3m buffers to their web page titles -- which you can get with (w3m-current-title)
-- but ran in to problems when I realized that internally emacs-w3m uses the original buffer titles to both do tab ordering and tab movement, so changing those names (even when leaving in the original w3m buffer names as prefixes) at the very least destroyed my ability to move tabs, so I reverted back to the original names.
Today I realized that for the most part it doesn't matter to me what the buffers are called, as long as when I use ivy-switch-buffer
it shows the results of running (w3m-current-title) in place of the corresponding w3m buffer name.
Is there an easy way to accomplish this?
In short, I'm looking for a way for ivy-switch-buffer
to filter buffer names through a user-given function before displaying them.