utils 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.12
1
+ 0.0.13
@@ -15,8 +15,6 @@ set expandtab shiftwidth=2 tabstop=2
15
15
  set foldcolumn=0
16
16
  set formatoptions=cqrt
17
17
  set fsync
18
- set grepformat+=%f
19
- set grepformat+=%f:%l
20
18
  set hidden
21
19
  set history=1000
22
20
  set hlsearch
@@ -372,25 +370,37 @@ if has("autocmd")
372
370
  endif
373
371
 
374
372
  function! Cfind(...)
373
+ redraw
374
+ echo "Finding..."
375
375
  if a:0 == 0
376
376
  let args = [ expand( '<cword>') ]
377
377
  else
378
378
  let args = copy(a:000)
379
379
  endif
380
+ set grepformat=%f
380
381
  set grepprg=discover
381
- exec "silent gr -a 'a-zA-Z0-9' -c -i " . join(map(copy(args), 'shellescape(v:val)'), ' ')
382
+ set hlsearch
383
+ let @/=args[0]
384
+ silent exec "silent gr -a 'a-zA-Z0-9' -c -i " . join(map(copy(args), 'shellescape(v:val)'), ' ')
382
385
  copen
386
+ redraw!
383
387
  endfunction
384
388
 
385
389
  function! Cgrep(...)
390
+ redraw
391
+ echo "Grepping..."
386
392
  if a:0 == 0
387
393
  let args = [ expand( '<cword>') ]
388
394
  else
389
395
  let args = copy(a:000)
390
396
  endif
397
+ set grepformat=%f:%l
391
398
  set grepprg=search
392
- exec "silent gr -c -i " . join(map(args, 'shellescape(v:val)'), ' ')
399
+ set hlsearch
400
+ let @/=args[0]
401
+ silent exec "silent gr -c -i " . join(map(args, 'shellescape(v:val)'), ' ')
393
402
  copen
403
+ redraw!
394
404
  endfunction
395
405
 
396
406
  function! Ctest(...)
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.0.12'
3
+ VERSION = '0.0.13'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
data/utils.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{utils}
5
- s.version = "0.0.12"
5
+ s.version = "0.0.13"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Florian Frank}]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-08-08 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gem_hadar
16
- requirement: &2156686180 !ruby/object:Gem::Requirement
16
+ requirement: &2152656900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.0.11
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2156686180
24
+ version_requirements: *2152656900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: spruz
27
- requirement: &2156685700 !ruby/object:Gem::Requirement
27
+ requirement: &2152656420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.2.12
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2156685700
35
+ version_requirements: *2152656420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: term-ansicolor
38
- requirement: &2156685180 !ruby/object:Gem::Requirement
38
+ requirement: &2152655880 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '1.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2156685180
46
+ version_requirements: *2152655880
47
47
  description: This ruby gem provides some useful command line utilities
48
48
  email: flori@ping.de
49
49
  executables: