VSCodeVim / VSCodeVim/Vim

can we support cscope?

Open
#8,647 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Is your feature request related to a problem? Please describe.
in my .vimrc, I have add cscope database
cs add cscope.out
I hope this plugin can support it

Describe the solution you'd like
currently in my .vimrc, I have these mappings

" Cscope maps
" g: find this definition
" c: find functions calling this function
" s: find this C symbol
" d: find functions called by this function
nmap <Leader>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <Leader>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <Leader>s :scs find s <C-R>=expand("<cword>")<CR><CR>
nmap <Leader>d :scs find d <C-R>=expand("<cword>")<CR><CR>

When testing it on vscode, it executes

:cs find g <C-R>=expand("<cword>")<CR><CR>

but they showing
Command cscope is not yet implemented, PRs are welcome!

Describe alternatives you've considered
Please give me some guideline about how to add it, I can try coding/adding the feature it by myself.

Additional context
no

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the handling for the unimplemented :cs command in the TypeScript extension and review how existing Vim commands are represented and dispatched. Use the reported mappings and cscope queries as the behavioral reference; done means the requested cscope commands no longer report that they are unimplemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.