vitunes 0.3.3 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -10,3 +10,4 @@ build/
10
10
  xcuserdata
11
11
  src/
12
12
  pkg/
13
+ other/
@@ -47,6 +47,14 @@ Don't forget to run `vitunes-install` again after you download the new gem.
47
47
  For all the commands below, the mapleader is just assumed to be a `,`. If your
48
48
  mapleader is `\` or something else, use that instead.
49
49
 
50
+
51
+ ### Starting ViTunes
52
+
53
+ You can run ViTunes in two ways:
54
+
55
+ * within Vim with `,i` or `,I`
56
+ * from the command line with the `vitunes` command
57
+
50
58
  ### General commands
51
59
 
52
60
  * `,i` invoke or dismiss ViTunes
data/TODO ADDED
@@ -0,0 +1,4 @@
1
+ TODO
2
+ - for true ssh integration, allow user to specify vitunes command as a
3
+ ssh user@host '/path/to/vitunes-objc'
4
+
@@ -6,4 +6,5 @@ rescue LoadError
6
6
  require 'vitunes'
7
7
  end
8
8
 
9
- ViTunes.install_vim_plugin
9
+ vimscript_file = File.join(File.dirname(__FILE__), '..', 'lib', 'vitunes.vim')
10
+ exec("vim -S #{vimscript_file} -c ':call ViTunes()' -c ':only'")
@@ -13,8 +13,9 @@ class ViTunes
13
13
  #
14
14
  `mkdir -p #{ENV['HOME']}/.vim/plugin`
15
15
  File.open("#{ENV['HOME']}/.vim/plugin/vitunes.vim", "w") {|f| f.write plugin_body}
16
- puts "Installed vitunes.vim into your ~/.vim/plugin directory"
17
- puts "You should be able to invoke ViTunes in Vim with <Leader>i"
16
+ puts "Installed vitunes.vim into your ~/.vim/plugin directory."
17
+ puts "You should be able to invoke ViTunes in Vim with <Leader>i or <Leader>I."
18
+ puts "If you want to start ViTunes directly, type `vitunes` on the command line."
18
19
  end
19
20
 
20
21
  def self.help
@@ -222,6 +222,7 @@ function! s:commonDropDownConfig()
222
222
  noremap <buffer> q <Esc>:close<cr>
223
223
  inoremap <buffer> <Esc> <Esc>:close<cr>
224
224
  call setline(1, s:selectionPrompt)
225
+ inoremap <buffer> <Tab> <C-x><C-u>
225
226
  normal $
226
227
  endfunction
227
228
 
@@ -1,3 +1,3 @@
1
1
  module ViTunes
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.5'
3
3
  end
@@ -21,6 +21,8 @@ Gem::Specification.new do |s|
21
21
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
22
  s.require_paths = ["lib"]
23
23
 
24
- s.post_install_message = "\n*** Now please run vitunes-install to install the Vim plugin ***\n"
24
+ message = "** Now please run vitunes-install to install the Vim plugin **"
25
+ divider = "*" * message.length
26
+ s.post_install_message = [divider, message, divider].join("\n")
25
27
  end
26
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vitunes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,6 +27,7 @@ files:
27
27
  - NOTES
28
28
  - README.markdown
29
29
  - Rakefile
30
+ - TODO
30
31
  - bin/vitunes
31
32
  - bin/vitunes-help
32
33
  - bin/vitunes-install
@@ -45,11 +46,11 @@ files:
45
46
  has_rdoc: true
46
47
  homepage: http://danielchoi.com/software/vitunes.html
47
48
  licenses: []
48
- post_install_message: ! '
49
+ post_install_message: ! '**************************************************************
49
50
 
50
- *** Now please run vitunes-install to install the Vim plugin ***
51
+ ** Now please run vitunes-install to install the Vim plugin **
51
52
 
52
- '
53
+ **************************************************************'
53
54
  rdoc_options: []
54
55
  require_paths:
55
56
  - lib