rb_nav 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +5 -4
- data/lib/rb_nav/version.rb +1 -1
- data/lib/rb_nav.vim +4 -10
- metadata +1 -1
data/README.markdown
CHANGED
@@ -59,11 +59,12 @@ one.
|
|
59
59
|
|
60
60
|
### The search path
|
61
61
|
|
62
|
-
By default RbNav
|
63
|
-
its subdirectories.
|
62
|
+
By default RbNav searches files using these `grep` command flags:
|
64
63
|
|
65
|
-
|
66
|
-
|
64
|
+
let g:RbNavPaths = " . --exclude-dir='\.git' --exclude-dir='vendor' --exclude-dir='db' --include='*.rb' "
|
65
|
+
|
66
|
+
You can override these flags by reassigning `g:RbNavPaths` to something else in
|
67
|
+
a `.vimrc` files in your project's root directory.
|
67
68
|
|
68
69
|
let g:RbNavPaths = "app lib spec"
|
69
70
|
|
data/lib/rb_nav/version.rb
CHANGED
data/lib/rb_nav.vim
CHANGED
@@ -2,15 +2,9 @@
|
|
2
2
|
" Maintainer: Daniel Choi <dhchoi@gmail.com>
|
3
3
|
" License: MIT License (c) 2011 Daniel Choi
|
4
4
|
|
5
|
-
" This can be
|
6
|
-
|
7
|
-
|
8
|
-
for x in ['.']
|
9
|
-
if isdirectory(x)
|
10
|
-
let g:RbNavPaths .= x.' '
|
11
|
-
endif
|
12
|
-
endfor
|
13
|
-
endif
|
5
|
+
" This can be overridden in .vimrc
|
6
|
+
|
7
|
+
let g:RbNavPaths = " . --exclude-dir='\.git' --exclude-dir='vendor' --exclude-dir='db' --include='*.rb' "
|
14
8
|
|
15
9
|
let s:last_class_search = ""
|
16
10
|
|
@@ -68,7 +62,7 @@ function! AutocompleteRbNavClasses(findstart, base)
|
|
68
62
|
endfun
|
69
63
|
|
70
64
|
func! RbNavClasses()
|
71
|
-
let command = "grep -rn ".g:RbNavPaths."
|
65
|
+
let command = "grep -rn ".g:RbNavPaths." -e '^\\s*\\(class\\|module\\) \\+[A-Z]' | rb_nav_classes | sort"
|
72
66
|
let res = system(command)
|
73
67
|
return split(res, "\n")
|
74
68
|
endfunc
|