Jump to content

Luzzifus

Member
  • Posts

    7
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Luzzifus reacted to hzlzh in [Workflow]Shorten URL (support goo.gl/ bit.ly/ t.cn/ j.mp/ is.gd/ v.gd/)   
    Shorten URL (v1.1) - download here
     
    Github Page:
    https://github.com/hzlzh/Alfred-Workflows
     
    This workflow support URL shortener like below. You can use Hotkey to trigger without open Alfred input window.
    goo.gl/ bit.ly/ t.cn/ j.mp/ is.gd/ v.gd/ If you want more URL shortener services added, please let me know, .
     
    How-To:
    Choose some long links (e.g Command + A), then press `Command + Shift +L`, choose goo.gl and you will get the short link in your clipboard with notification center triggered.
     
    Tips:
    How to use this workflow without copy/paste?
    Just use trigger HotKey, check out this wiki issue here:
    https://github.com/h...kflows/issues/1
     
    Screenshot:
     

     

     

  2. Like
    Luzzifus reacted to bigluck in Currency Converter workflow with natural language support   
    Hi everybody,
     
    I've created a simple but (i hope) useful currency converter; this workflow support simple and complex queries like:
     
    currency € -- Current EUR/USD exchange currency € £ -- Current EUR/GBP exchange currency 12 € -- Convert 12 EUR to USD currency 12€ £ -- Convert 12 EUR to GBP currency 12 € £ -- Convert 12 EUR to GBP currency 12 EUR £ -- Convert 12 EUR to GBP currency 12 EUR to £ -- Convert 12 EUR to GBP currency from 12 € to GBP -- Convert 12 EUR to GBP currency to GBP from 3€ -- Convert 3 EUR to GBP currency to GBP 3€ -- Convert 3 EUR to GBP   Here the github repository: https://github.com/BigLuck/alfred2-currencyconverter And the .alfredworkflow direct download link: https://github.com/BigLuck/alfred2-currencyconverter/raw/master/Currency%20Converter.alfredworkflow  
  3. Like
    Luzzifus got a reaction from drking in Pinboard Search (beta?)   
    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.   
×
×
  • Create New...