On 10/04/12 17:50, Jacobo de Vera wrote:
<snip>
- having another way to select text for searching would be very handy,
e.g. like cscope search - say if the cursor is at the first '(' character on
line with 'if (mdb_vread(&vn, sizeof (vnode_t), wsp->walk_addr) == -1) {' it
would search for 'mdb_vread'
This is working like you describe for me, I am also expanding<cword>,
just like the cscope mappings do. Maybe I misunderstood what you
meant?
I see now. I was only looking at the commands, not key maps so missed
this feature. It works just fine with e.g. '\ogt'.
- project selection: dynamic selection of projects would be great
- e.g. if full path to the file being edited contains substring 'foo'
then 'myproject-foo' OpenGrok project will be selected.
I am doing something similar myself at the moment, where I want to
select different opengrok instances and projects based on the path of
the files I'm opening. I'm using autocommands for this, which I think
is the way to go, I'd rather not add this functionality to the plugin
to keep it simple.
e.g.
augroup OpenGrokFooBar
au!
au BufRead,BufNew */foobar/trunk*
\ let b:ogs_app_url =
'http://foobar.example.com/source' |
\ let b:ogs_project = 'trunk' |
\ let g:ogs_browser_command = 'google-chrome'
augroup END
This seems to be working fine. For substring matching I had to do
something like this:
au BufRead,BufNew */*foo/*
v.
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss