This allows you to organize bookmarks as if they are in folders by allowing you first to select through dmenu the tag, then bookmarks with that tag. It currently does not support multiple tags and it does not currently support bookmarks without tags. I will try to resolve this soon. Note: I did this assuming your dmenu was not vertical.

#!/bin/bash

#NOTE: it's the job of the script that inserts bookmarks to make sure there are no dupes.

file=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/bookmarks
[ -r "$file" ] || exit
COLORS=" -nb #303030 -nf khaki -sb #CCFFAA -sf #303030"
DMENU="dmenu -i"
TAG=`cat $file | awk '{print $2}' | sort -u | $DMENU -nb \#303030 -nf khaki -sb \#CCFFAA -sf \#303030`
goto=`grep $TAG $file | awk '{print $1}' | $DMENU $COLORS`
[ -n "$goto" ] && echo "uri $goto" | socat - unix-connect:$5
 
bookmark_with_tags_for_folders.txt · Last modified: 2009/10/02 14:37 by count0
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki