lyuts / vim-rtags

Vim bindings for rtags, llvm/clang based c++ code indexer.
BSD 2-Clause "Simplified" License
282 stars 56 forks source link

JumpToParent #3

Closed martong closed 10 years ago

martong commented 10 years ago

Hi,

This is about adding JumpToParent feature. I was thinking that it would be really nice to see the context of the boxing function or class. This can be really useful when someone is browsing an alien codebase with large classes and functions. The jump is added to the jumplist, so it is easy to jump back.

Sorry about the tab indentation problems I have created with my previous pull request. Now I've made a :retab before creating the pull request.

Best Regards, Gabor

lyuts commented 10 years ago

How is it supposed to work? For some reason nothing is happening. I'm invoking the mapping on a function name.

lyuts commented 10 years ago

I think I got it working. Minor ask, can you add a test for ParseFileLocation function?

martong commented 10 years ago

Yeah, sure, I'll add a test function. Could you please tell me if there is a special way of executing the test suite? How do you usually run the tests? Just simply executing the function?

Thanks, Gabor

lyuts commented 10 years ago

I'm using this plugin:https://github.com/h1mesuke/vim-unittest

Basically you just add a test to tests/test_rtags.vim and then execute

:UnitTest

martong commented 10 years ago

I've added the tests. Please check them.

lyuts commented 10 years ago

Thanks.