I have been using w3m for a couple of weeks and am convinced that it is my preferred text browser - with one exception.Is there any way to yank URLs to the clipboard without using the mouse?I have looked through the manual and, using the default keybindings, there doesn't appear to be any documented way to do this.Has anyone developed a script to work around this?
Yanking URLs in w3m
configuration;keyboard shortcuts;browser;clipboard;w3m
Set the External Browser option tosh -c 'printf %s $0 | xsel'You can use xsel -b to use the clipboard instead of the primary selection. An alternative to xsel is xclip (xclip for the primary selection, xclip -selection CLIPBOARD for the clipboard).In ~/.w3m/config, that's the extbrowser setting.Then press M to copy (yank) the URL of the current page, or ESC M to copy the URL of the link under the cursor.You can use the second or third external browser for that instead; then the key combination is 2 M or 3 M or 2 ESC M or 3 ESC M.