Hi,
I wrote a small modification for this awesome workflow (BIG thanks to David! ) which allows to search for multiple words at once instead of treating all arguments as a single search string. So if you type "pb recipe apple", it returns all your bookmarks containing "recipe" and "apple" in any field. So "recipe" could be a tag and the description could contain "apple". That's basically what Jono was requesting, if I got that right.
So to achieve that behaviour, open "search.php" and find the line:
$matches = $db->get( 'bookmarks', 'url like "%'.$query.'%" or description like "%'.$query.'%" or extended like "%'.$query.'%" or tag like "%'.$query.'%"' );
Should be around line #35. Remove that line and replace it with:
$queries = explode(' ', $query);
$where_string = '';
foreach( $queries as $q ):
$where_string .= (strlen($where_string) > 0) ? ' and ' : '';
$where_string .= '(url like "%'.$q.'%" or description like "%'.$q.'%" or extended like "%'.$q.'%" or tag like "%'.$q.'%")';
endforeach;
$matches = $db->get( 'bookmarks', $where_string );
Save the file and that's it. Hope this helps!
----------------------------------------
**edit:
Sometimes the subsequential syncs take some time, maybe I'd rather have the re-syncs manually triggered by its own command ("pbsync" or something like that).
Also it would be awesome to have an add-to-pinboard command.