Introduction
Introduction Statistics Contact Development Disclaimer Help
open-w3m-bookmarks - dotfiles - These are my dotfiles. There are many like it, …
git clone git://jay.scot/dotfiles
Log
Files
Refs
README
---
open-w3m-bookmarks (428B)
---
1 #!/bin/sh
2
3 HTML_FILE="$HOME/.w3m/bookmark.html"
4
5 if [ ! -f "$HTML_FILE" ]; then
6 echo "File not found: $HTML_FILE"
7 exit 1
8 fi
9
10 # Extract links from <li> elements
11 LINKS=$(sed -n 's/.*<li[^>]*>\s*<a href="\([^"]*\)".*/\1/p' "$HTML_FILE")
12
13 if [ -z "$LINKS" ]; then
14 echo "No links found in <li> elements."
15 exit 1
16 fi
17
18 # Use fzf to select a link
19 SELECTED_LINK=$(echo "$LINKS" | fzf --height 40% --reverse)
20
21 w3m "$SELECTED_LINK"
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.