vitunes 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -39,12 +39,16 @@ probably have a `PATH` issue. Try one of these workarounds:
39
39
  * Put the directory where Rubygems installs executables on your `PATH`
40
40
  * Try installing with `sudo gem install && vitunes-install`
41
41
 
42
+ To upgrade ViTunes to a newer versoin, just repeat the installation produce.
42
43
 
43
44
  ## How to use it
44
45
 
46
+ For all the commands below, the mapleader is just assumed to be a `,`. If your
47
+ mapleader is `\` or something else, use that instead.
48
+
45
49
  ### General commands
46
50
 
47
- * `,i` invoke or dismiss ViTunes (if not, it might be `\i` on your system)
51
+ * `,i` invoke or dismiss ViTunes
48
52
  * `?` show help and commands
49
53
 
50
54
  ### Navigation
@@ -1,3 +1,3 @@
1
1
  module ViTunes
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.5'
3
3
  end
Binary file
data/lib/vitunes.vim CHANGED
@@ -166,9 +166,7 @@ function! s:currentTrackAndPlaylist()
166
166
  let res1 = s:runCommand(s:vitunes_tool . "itunes currentTrack")
167
167
  " fix this on obj-c side later; we just need to make sure this doesn't
168
168
  " spill over to another line.
169
- let res1 = substitute(res1, 'Current track:', '','')
170
169
  let res2 = s:runCommand(s:vitunes_tool . "itunes currentPlaylist")
171
- let res2 = substitute(res2, 'Current playlist: ', '','')
172
170
  echo res1[0:60] . ' | '.res2[0:30]
173
171
  endfunction
174
172
 
data/vitunes/main.m CHANGED
@@ -192,19 +192,18 @@ void itunes(NSString *command) {
192
192
  printf("No current track");
193
193
  return;
194
194
  }
195
- s = [NSString stringWithFormat:@"\"%@\" by %@ from %@",
195
+ s = [NSString stringWithFormat:@"\"%@\" by %@",
196
196
  [((iTunesTrack *)result) name],
197
- [((iTunesTrack *)result) artist],
198
- [((iTunesTrack *)result) album]
197
+ [((iTunesTrack *)result) artist]
199
198
  ];
200
- printf("Current track: %s", [s cStringUsingEncoding: NSUTF8StringEncoding]);
199
+ printf("%s", [s cStringUsingEncoding: NSUTF8StringEncoding]);
201
200
  } else if ([[result className] isEqual:@"ITunesPlaylist"]) {
202
201
  if ([result name ] == nil) {
203
202
  printf("No current playlist");
204
203
  return;
205
204
  }
206
205
  s = [NSString stringWithFormat:@"%@", [((iTunesPlaylist *)result) name]];
207
- printf("Current playlist: %s", [s cStringUsingEncoding: NSUTF8StringEncoding]);
206
+ printf("%s", [s cStringUsingEncoding: NSUTF8StringEncoding]);
208
207
  } else {
209
208
  s = ((iTunesItem *)result).name;
210
209
  printf("%s\n", [s cStringUsingEncoding: NSUTF8StringEncoding]);
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi