vitunes 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/NOTES +6 -0
- data/lib/vitunes.vim +4 -7
- data/lib/vitunes/version.rb +1 -1
- data/vitunes/main.m +2 -1
- metadata +3 -13
data/NOTES
CHANGED
data/lib/vitunes.vim
CHANGED
@@ -130,7 +130,7 @@ function! s:playTrack()
|
|
130
130
|
else
|
131
131
|
let command = s:vitunes_tool . "playTrackID " . trackID
|
132
132
|
endif
|
133
|
-
"
|
133
|
+
"echom command
|
134
134
|
call system(command)
|
135
135
|
call s:currentTrackAndPlaylist()
|
136
136
|
endfunc
|
@@ -225,18 +225,15 @@ function! s:commonDropDownConfig()
|
|
225
225
|
normal $
|
226
226
|
endfunction
|
227
227
|
|
228
|
-
|
229
228
|
" Drop downs
|
230
|
-
|
231
229
|
function! s:openPlaylistDropdown()
|
232
230
|
leftabove split ChoosePlaylist
|
233
231
|
inoremap <silent> <buffer> <cr> <Esc>:call <SID>submitQueryOrSelection('playlistTracks')<CR>
|
234
232
|
let s:selectionPrompt = s:selectPlaylistPrompt
|
235
|
-
call
|
233
|
+
call s:commonDropDownConfig()
|
236
234
|
let s:selectionList = split(system(s:getPlaylistsCommand), '\n')
|
237
235
|
if (s:lastPlaylist != '')
|
238
236
|
call insert(s:selectionList, s:lastPlaylist);
|
239
|
-
call insert(s:selectionList, s:lastPlaylist);
|
240
237
|
endif
|
241
238
|
call feedkeys("a\<c-x>\<c-u>\<c-p>", 't')
|
242
239
|
endfunction
|
@@ -245,7 +242,7 @@ function! s:openArtistDropdown()
|
|
245
242
|
leftabove split ChoosePlaylist
|
246
243
|
inoremap <silent> <buffer> <cr> <Esc>:call <SID>submitQueryOrSelection('artist')<CR>
|
247
244
|
let s:selectionPrompt = s:selectArtistPrompt
|
248
|
-
call
|
245
|
+
call s:commonDropDownConfig()
|
249
246
|
let s:selectionList = split(system(s:getArtistsCommand), '\n')
|
250
247
|
call feedkeys("a\<c-x>\<c-u>\<c-p>", 't')
|
251
248
|
endfunction
|
@@ -320,7 +317,7 @@ function! s:submitQueryOrSelection(command)
|
|
320
317
|
setlocal nomodifiable
|
321
318
|
" position cursor at 1st track
|
322
319
|
normal 3G
|
323
|
-
if (a:command == 'playlistTracks')
|
320
|
+
if (a:command == 'playlistTracks' || a:command == 'addTracksToPlaylist')
|
324
321
|
let s:currentPlaylist = query
|
325
322
|
let s:lastPlaylist = query
|
326
323
|
else
|
data/lib/vitunes/version.rb
CHANGED
data/vitunes/main.m
CHANGED
@@ -231,8 +231,9 @@ void newPlaylist(NSString *name) {
|
|
231
231
|
return;
|
232
232
|
}
|
233
233
|
NSDictionary *props = [NSDictionary dictionaryWithObject:name forKey:@"name"];
|
234
|
-
iTunesPlaylist *playlist = [[[iTunes classForScriptingClass:@"playlist"] alloc] initWithProperties:props];
|
234
|
+
iTunesPlaylist *playlist = [[[iTunes classForScriptingClass:@"user playlist"] alloc] initWithProperties:props];
|
235
235
|
[[library playlists] addObject:playlist];
|
236
|
+
//[playlist reveal];
|
236
237
|
printf("Created new playlist: %s", [name cStringUsingEncoding:NSUTF8StringEncoding]);
|
237
238
|
}
|
238
239
|
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vitunes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 2
|
8
|
-
- 9
|
9
|
-
version: 0.2.9
|
4
|
+
prerelease:
|
5
|
+
version: 0.3.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Daniel Choi
|
@@ -64,23 +60,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
64
60
|
requirements:
|
65
61
|
- - ">="
|
66
62
|
- !ruby/object:Gem::Version
|
67
|
-
segments:
|
68
|
-
- 1
|
69
|
-
- 8
|
70
|
-
- 6
|
71
63
|
version: 1.8.6
|
72
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
65
|
none: false
|
74
66
|
requirements:
|
75
67
|
- - ">="
|
76
68
|
- !ruby/object:Gem::Version
|
77
|
-
segments:
|
78
|
-
- 0
|
79
69
|
version: "0"
|
80
70
|
requirements: []
|
81
71
|
|
82
72
|
rubyforge_project: vitunes
|
83
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.6.1
|
84
74
|
signing_key:
|
85
75
|
specification_version: 3
|
86
76
|
summary: A Vim interface to iTunes
|