-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vim: Add VLC seek comamnds for podcast notes editing
- Loading branch information
1 parent
a9201e2
commit 14f584d
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |