rb_nav 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.markdown CHANGED
@@ -35,6 +35,7 @@ To upgrade RbNav to a newer version, just repeat the installation procedure.
35
35
  For the all the commands below, the mapleader is assumed to be `,`. If it is
36
36
  `\` or something else for your setup, use that instead.
37
37
 
38
+
38
39
  ### Invoking the plugin
39
40
 
40
41
  * `,n` navigate the classes and modules in your project
@@ -52,7 +53,12 @@ To change these keymappings, edit the two lines at the end of
52
53
  * both `TAB` and `CTRL-x CTRL-u` reactivates autocompletion if it's gone away
53
54
  * `CTRL-y` selects the highlighted match without triggering ENTER
54
55
 
55
- Autocompletion is case-insensitive.
56
+ Autocompletion is case-insensitive.
57
+
58
+ You can also match a fragment. So if you want to get to `UsersController`, you
59
+ can type `usersc` and hit ENTER. This should be sufficient to bring up
60
+ `UsersController` as long as that is the top match for the fragment `usersc`.
61
+
56
62
 
57
63
  ### The search path
58
64
 
data/lib/rb_nav.vim CHANGED
@@ -118,7 +118,7 @@ func! s:open_class_file()
118
118
  if len(split(selection, '\s\+')) == 1
119
119
  " user pressed return without autocompleting, so find the first match
120
120
  for x in s:selection_list
121
- if tolower(get(split(x, '\s\+'), 0)) =~ tolower(selection)
121
+ if tolower(get(split(x, '\s\+'), 0)) =~ '^'.tolower(selection)
122
122
  let selection = x
123
123
  endif
124
124
  endfor
@@ -1,4 +1,4 @@
1
1
  module RbNav
2
2
 
3
- VERSION = '0.2.5'
3
+ VERSION = '0.2.6'
4
4
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rb_nav
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.5
5
+ version: 0.2.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi