Git Product home page Git Product logo

cscope.vim's People

Contributors

brookhong avatar yveoch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cscope.vim's Issues

Location of a cscope database

I can't seem to find where the cscope database is located. It was autogenerated. I did make it point to a root directory of my project, but I can't see it. Where does it generate the db?

??? Can not find xolox#easytags#get_tagsfile with querytype as d.

I press <C-\>d on line let tagsfile = a:global ? g:easytags_file : xolox#easytags#get_tagsfile(). But cscope.vim can not find this function's definition place. (The function definition exists in same file).
The output in command line is:

Can not find xolox#misc#option#get with querytype as i.

(I guess maybe cscope can not find string has # ??)

How to exclude directories

Hi,

Can we get fix to exclude directories from the project ?
I do not want to include files which are part of specific directories under the project directories

add multiple cscope databases

How do I add multiple cscope databases to this plugin? I've manually added several with :cs add but didn't when I execute :CscopeList I see only the one that was autogenerated

Going back from a cscope jump

I think it would be awesome for your already great plugin to support a stack of a buffer's last visited files, just like ctags lets you come back from a jump with Ctrl + T

Cscope DB not connected automatically

ID LOADTIMES PATH
1337668712 3 /works/vim/src
'
' means the db has been connected.
ID id of the db.
LOADTIMES how many times this db has ever been used.
PATH which folder the db is for.

I can see cscope db within :CscopeList, however, the DB was not connected, i.e. \* not appeared and db not seen in :cs show.

Plugin Update in Vim.org

Would you please update the plugin in Vim.org. It doesn't support exclude directories feature.
Thanks

scs doesn't show quickfix window

my cscope_maps.vim

if has("cscope")

    """"""""""""" Standard cscope/vim boilerplate

    " use both cscope and ctag for 'ctrl-]', ':ta', and 'vim -t'
    set cscopetag
    " check cscope for definition of a symbol before checking ctags: set to 1
    " if you want the reverse search order.
    set csto=0
    set cscopequickfix=s-,c-,d-,i-,t-,e-
    " add any cscope database in current directory
    if filereadable("cscope.out")
        cs add cscope.out  
    " else add the database pointed to by environment variable 
    elseif $CSCOPE_DB != ""
        cs add $CSCOPE_DB
    endif
.......
.......
    " show msg when any other cscope db added
    set cscopeverbose  
    nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>  
    nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR>  
    nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR>  
    nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR>  
    nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>  
    nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR>  
    nmap <C-\>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
    nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR>  


    " Using 'CTRL-spacebar' (intepreted as CTRL-@ by vim) then a search type
    " makes the vim window split horizontally, with search result displayed in
    " the new window.
    "
    " (Note: earlier versions of vim may not have the :scs command, but it
    " can be simulated roughly via:
    "    nmap <C-@>s <C-W><C-S> :cs find s <C-R>=expand("<cword>")<CR><CR>  

    nmap <leader>fs :scs find s <C-R>=expand("<cword>")<CR><CR> 
    nmap <leader>fg :scs find g <C-R>=expand("<cword>")<CR><CR> 
    nmap <leader>fc :scs find c <C-R>=expand("<cword>")<CR><CR> 
    nmap <leader>ft :scs find t <C-R>=expand("<cword>")<CR><CR> 
    nmap <leader>fe :scs find e <C-R>=expand("<cword>")<CR><CR> 
    nmap <leader>ff :scs find f <C-R>=expand("<cfile>")<CR><CR> 
    nmap <leader>fi :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>   
    nmap <leader>fd :scs find d <C-R>=expand("<cword>")<CR><CR> 

is there something wrong?

after call cscopeupdatedb(), all cscope db get connected

hi, can you fix it that when i call cscopeupdatedb(), then all cscope db will get connected, i have to remove the db by using cscope kill commands which provided by cscope itself, so I wonder if you can fix the problem, and may give a interface to remove the db connection instead of using the cs kill cmd. thanks ,best regards.BTW, the plugin is magic!

Cscope update database too often

It takes a lot of time in updating database as it updates too often. I want it to update automatically, but more silently, better to support asynchronous update.

how to jump to target line

using the cscope.vim, the result will be listed in the window below, each line contain a result, how can I jump to the target result line, there seems no shortcut key

[Error] in function CscopeFind

Error detected while processing function CscopeFind:
line   15: 
E121: Undefined variable: a:word
E15: Invalid expression: 'Can not find '.a:word.' with querytype as '.a:action.'.' | echohl None

Logical Bug In Updating DB

  let id = s:dbs[a:dir]['id']
  let cscope_files = s:cscope_vim_dir."/".id."_inc.files"
  let cscope_db = s:cscope_vim_dir.'/'.id.'_inc.db'
  if ! filereadable(cscope_files) || a:init
    let cscope_files = s:cscope_vim_dir."/".id.".files"
    let cscope_db = s:cscope_vim_dir.'/'.id.'.db'
    if ! filereadable(cscope_files)
      let files = <SID>ListFiles(a:dir)
      call writefile(files, cscope_files)
    endif
  endif

So if x.files exist, the update will based on it, however, in some cases the there will be changes in file names and number of files, and path of files... so, obviously the x.files needs to be updated also everytime the databse is being updated to reliably update database.

it will generate a new jump line after change source code

I meet an issue in Ubuntu 14.04. When I try to jump a function, it can jump and lwindow just have one line. Then I changed the source and jump to it again. lwindow will show two lines for the same jump, the first one is still the old and the second one is correct.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.