shownotes-w3m-rice/fzf_surfraw.md
2014-11-06 11:12:39 -08:00

837 B

Notes for video: https://www.youtube.com/watch?v=Dmbh4r2mmDs

1. requirements (depends on what u using)

2. for ~/.zshrc or ~/.bashrc

fzf-surfraw() { surfraw "$(cat ~/.config/surfraw/bookmarks | sed '/^$/d' | sort -n | fzf -e)" ;}

3. for ~/.tmux.conf

bind-key -n 'C-\' new-window -n bookmarks -c $HOME \; \
    send-keys 'fzf-surfraw && tmux kill-window' 'Enter'

4. add bookmarks

nano ~/.config/surfraw/bookmarks

example:
linuxgotbletu	https://www.youtube.com/user/gotbletu/videos	#linux channel opensource