• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Unite with script

on

  • 3,768 views

 

Statistics

Views

Total Views
3,768
Views on SlideShare
1,156
Embed Views
2,612

Actions

Likes
0
Downloads
5
Comments
0

4 Embeds 2,612

http://d.hatena.ne.jp 2165
http://hakobe932.hatenablog.com 434
http://webcache.googleusercontent.com 9
http://www.freerss.net 4

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Unite with script Unite with script Presentation Transcript

    • ‣ ‣
    • ‣ ‣
    • ‣ ‣
    • function! s:source.gather_candidates(args,   if empty(s:hamburger) && empty(s:drink) | call s:get_menu() | endif   return map(copy(s:hamburger), '{          "word": v:val[0],          "source": "hamburger",          "kind": "command",          "action__command": "call unite#sources#mcdonalds#open_url(''".v:val[          }') endfunction
    • my $target = 'http://b.hatena.ne.jp/hotentry.rss'; my $res = URI::Fetch->fetch( $target ); my $feed = XML::Feed->parse(($res->content)); for my $entry ($feed->entries) { say sprintf("%s,call system('open %s')", $entry->title, $entry->link); }
    • nnoremap <unique> <silent> <Leader>ub :<C-u>Unite script:perl:/path/to/bookmarks.pl<CR>
    • sub list { my $script = <<"SCRIPT"; tell application "iTunes" set cPlaylist to current playlist set resultString to "" repeat with i from 1 to count of tracks in cPlaylist set sName to name of track i in cPlaylist set sArtist to artist of track i in cPlaylist set sTime to time of track i in cPlaylist set resultString to resultString & sName & "t" & sArtist & "t" & sTime & "n" end repeat return resultString end tell SCRIPT