vitunes 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -9,3 +9,4 @@ build/
9
9
  *.mode2v3
10
10
  xcuserdata
11
11
  src/
12
+ pkg/
data/MIT-LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2011 Daniel Choi, http://danielchoi.com/software/
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
data/README.markdown CHANGED
@@ -6,10 +6,15 @@ ViTunes lets you control and navigate iTunes from the comfort of Vim.
6
6
 
7
7
  Benefits:
8
8
 
9
- * control iTunes without leaving Vim, where the work happens
9
+ * control iTunes without leaving Vim, where one is probably in a state of productive bliss
10
10
  * avoid using the mouse or trackpad; keystrokes get you there faster
11
- * control iTunes running on a remote computer
12
- * let multiple people control one instance of iTunes over ssh
11
+ * control iTunes from another computer (via ssh session), across the room or across an ocean
12
+ * let multiple people control one instance of iTunes over ssh ([how][multi])
13
+ * control iTunes from a Linux client
14
+
15
+ [multi]:https://github.com/danchoi/vitunes/wiki
16
+
17
+ ViTunes is pronounced vee-eye-tunes.
13
18
 
14
19
  ## Prerequisites
15
20
 
@@ -28,8 +33,12 @@ Then
28
33
  `vitunes-install` installs a Vim plugin into your ~/.vim/plugin
29
34
  directory.
30
35
 
31
- If you get an error message saying that vitunes-install is missing, then you probably have
32
- a `PATH` issue. Put the directory where Rubygems installs executable on your `PATH`.
36
+ If you get an error message saying that vitunes-install is missing, then you
37
+ probably have a `PATH` issue. Try one of these workarounds:
38
+
39
+ * Put the directory where Rubygems installs executables on your `PATH`
40
+ * Try installing with `sudo gem install && vitunes-install`
41
+
33
42
 
34
43
  ## How to use it
35
44
 
@@ -80,11 +89,18 @@ To copy tracks, put the cursor on a track or select a range of tracks,
80
89
  and then hit `,c` to select a playlist to copy them to. The tracks will be
81
90
  added to the end of the playlist.
82
91
 
83
- ## How to contact the developer
92
+ ## Bug reports and feature requests
93
+
94
+ Please submit these at either of these places:
95
+
96
+ * <https://github.com/danchoi/vitunes/issues>
97
+ * <http://groups.google.com/group/vitunes-users>
98
+
99
+ ## About the developer
84
100
 
85
- My name is Daniel Choi. I specialize in Ruby, Rails, MySQL, PostgreSQL, and
86
- iOS development. I am based in Cambridge, Massachusetts, USA, and my little
87
- software company is called Kaja Software.
101
+ My name is Daniel Choi. I specialize in Ruby, Rails, MySQL, PostgreSQL, and iOS
102
+ development. I am based in Cambridge, Massachusetts, USA, and the little
103
+ software company I run with Hoony Youn is called [Kaja Software](http://kajasoftware.com).
88
104
 
89
105
  * Company Email: info@kajasoftware.com
90
106
  * Twitter: [@danchoi][twitter]
@@ -1,3 +1,3 @@
1
1
  module ViTunes
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
data/lib/vitunes.vim CHANGED
@@ -62,18 +62,17 @@ function! ViTunes()
62
62
  setlocal buftype=nofile
63
63
  setlocal bufhidden=hide
64
64
  setlocal noswapfile
65
- noremap <buffer> ,s :call <SID>openQueryWindow()<cr>
66
- noremap <buffer> ,p :call <SID>openPlaylistDropdown()<cr>
67
- noremap <buffer> ,a :call <SID>openArtistDropdown()<cr>
68
- noremap <buffer> ,g :call <SID>openGenreDropdown()<cr>
69
- noremap <buffer> ,A :call <SID>openAlbumDropdown()<cr>
70
- noremap <buffer> ,c :call <SID>openAddToPlaylistDropDown()<cr>
65
+ noremap <buffer> <Leader>s :call <SID>openQueryWindow()<cr>
66
+ noremap <buffer> <Leader>p :call <SID>openPlaylistDropdown()<cr>
67
+ noremap <buffer> <Leader>a :call <SID>openArtistDropdown()<cr>
68
+ noremap <buffer> <Leader>g :call <SID>openGenreDropdown()<cr>
69
+ noremap <buffer> <Leader>A :call <SID>openAlbumDropdown()<cr>
70
+ noremap <buffer> <Leader>c :call <SID>openAddToPlaylistDropDown()<cr>
71
71
 
72
72
  noremap <buffer> > :call <SID>nextTrack()<cr>
73
73
  noremap <buffer> < :call <SID>prevTrack()<cr>
74
74
  noremap <buffer> >> :call <SID>itunesControl("nextTrack")<cr>
75
- noremap <buffer> << :call <SID>itunesControl("prevTrack")<cr>
76
-
75
+ noremap <buffer> << :call <SID>itunesControl("backTrack")<cr>
77
76
 
78
77
  noremap <buffer> . :call <SID>currentTrackAndPlaylist()<cr>
79
78
 
@@ -165,8 +164,12 @@ endfunction
165
164
 
166
165
  function! s:currentTrackAndPlaylist()
167
166
  let res1 = s:runCommand(s:vitunes_tool . "itunes currentTrack")
167
+ " fix this on obj-c side later; we just need to make sure this doesn't
168
+ " spill over to another line.
169
+ let res1 = substitute(res1, 'Current track:', '','')
168
170
  let res2 = s:runCommand(s:vitunes_tool . "itunes currentPlaylist")
169
- echo res1 . ' | '.res2
171
+ let res2 = substitute(res2, 'Current playlist: ', '','')
172
+ echo res1[0:60] . ' | '.res2[0:30]
170
173
  endfunction
171
174
 
172
175
  function! s:openQueryWindow()
metadata CHANGED
@@ -1,28 +1,37 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: vitunes
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 3
9
+ version: 0.1.3
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Daniel Choi
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2011-07-01 00:00:00.000000000 -04:00
16
+
17
+ date: 2011-07-02 00:00:00 -04:00
13
18
  default_executable:
14
19
  dependencies: []
20
+
15
21
  description: Control iTunes with Vim
16
- email:
22
+ email:
17
23
  - dhchoi@gmail.com
18
- executables:
24
+ executables:
19
25
  - vitunes
20
26
  - vitunes-help
21
27
  - vitunes-install
22
28
  extensions: []
29
+
23
30
  extra_rdoc_files: []
24
- files:
31
+
32
+ files:
25
33
  - .gitignore
34
+ - MIT-LICENSE.txt
26
35
  - NOTES
27
36
  - README.markdown
28
37
  - Rakefile
@@ -44,26 +53,36 @@ files:
44
53
  has_rdoc: true
45
54
  homepage: http://danielchoi.com/software/vitunes.html
46
55
  licenses: []
56
+
47
57
  post_install_message: Now please run vitunes-install to install the Vim plugin
48
58
  rdoc_options: []
49
- require_paths:
59
+
60
+ require_paths:
50
61
  - lib
51
- required_ruby_version: !ruby/object:Gem::Requirement
62
+ required_ruby_version: !ruby/object:Gem::Requirement
52
63
  none: false
53
- requirements:
54
- - - ! '>='
55
- - !ruby/object:Gem::Version
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ segments:
68
+ - 1
69
+ - 8
70
+ - 6
56
71
  version: 1.8.6
57
- required_rubygems_version: !ruby/object:Gem::Requirement
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
73
  none: false
59
- requirements:
60
- - - ! '>='
61
- - !ruby/object:Gem::Version
62
- version: '0'
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ segments:
78
+ - 0
79
+ version: "0"
63
80
  requirements: []
81
+
64
82
  rubyforge_project: vitunes
65
- rubygems_version: 1.6.2
83
+ rubygems_version: 1.3.7
66
84
  signing_key:
67
85
  specification_version: 3
68
86
  summary: A Vim interface to iTunes
69
87
  test_files: []
88
+