Skip to content

Commit

Permalink
vim: Add VLC seek comamnds for podcast notes editing
Browse files Browse the repository at this point in the history
  • Loading branch information
christoomey committed Oct 26, 2019
1 parent a9201e2 commit 14f584d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bin/vlc-seek
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/osascript
# Step forward. The step width can be changed below.

# nmap <right> :call system("vlc-seek forward")<cr>
# nmap <left> :call system("vlc-seek")<cr>

on run argv
if running of application "/Applications/VLC.app" is true then
tell application "/Applications/VLC.app"
# Step width (1=extraShort, 2=short, 3=medium, 4=long).
if (count of argv) > 0 and item 1 of argv is equal to "forward" then
step forward 2
else
step backward 2
end if
end tell
end if
end run
4 changes: 4 additions & 0 deletions vim/rcfiles/vlc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
nmap <right> :call system("vlc-seek forward")<cr>
nmap <left> :call system("vlc-seek")<cr>
" vim:ft=vim

0 comments on commit 14f584d

Please sign in to comment.