Chromium CodeSearch integration for Vim

91 views
Skip to first unread message

Asanka Herath

unread,
Jun 6, 2017, 11:09:08 AM6/6/17
to chromium-dev
A plugin for integrating Chromium CodeSearch is at https://github.com/chromium/vim-codesearch

The plugin has support for performing free text search, cross reference lookup, navigating call graphs, and more. Installation instruction, screencasts and code can be found at the above URL.

Here's what a search buffer looks like:


In addition, if you'd like to try poking at CodeSearch data, there's a [unsupported] Python library at https://github.com/chromium/codesearch-py . The Vim plugin uses this library in the backend.

Please direct bug reports to the respective GitHub projects' Issues. Here for the Vim plugin, and here for the library.

Thanks to Josh Karlin who wrote a plugin integrating CodeSearch into Sublime whose code was the basis for the library.

Jianpeng

unread,
Jun 6, 2017, 11:11:38 AM6/6/17
to Chromium-dev

Scott Graham

unread,
Jun 6, 2017, 4:08:42 PM6/6/17
to asa...@chromium.org, chromium-dev
Thanks Asanka, this is really great!

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAM%3DuaOH7OBSXxDYTXpSMT%2B0yyT0b2Jq%2B%2BmeqJ6Q59sqv6FpBJA%40mail.gmail.com.

Łukasz Anforowicz

unread,
Jun 7, 2017, 4:06:53 PM6/7/17
to Chromium-dev, asa...@chromium.org
Many thanks for the plugin.  Especially for searches (i.e. x-ref searches) that return lots of results, going through the results in vim's CrSearch is much easier (for me at least) than in the CrSearch's web page.

Asanka Herath

unread,
Jun 7, 2017, 5:28:38 PM6/7/17
to Łukasz Anforowicz, Chromium-dev
On Wed, Jun 7, 2017 at 4:06 PM, Łukasz Anforowicz <luk...@chromium.org> wrote:
Many thanks for the plugin.  Especially for searches (i.e. x-ref searches) that return lots of results, going through the results in vim's CrSearch is much easier (for me at least) than in the CrSearch's web page.

Awesome!

Depending on the type of cross reference you need, you may find :CrTour even easier. It loads the cross reference into the quickfix list, so you can go through the results via whichever mechanism you are used to for navigating quickfix lists.

:help :CrTour

Kevin Marshall

unread,
Jun 8, 2017, 2:08:49 PM6/8/17
to Asanka Herath, Łukasz Anforowicz, Chromium-dev
This is fantastic. CrSearch and CrXref are my best friends now. I can keep my Vim window fullscreened!

My only bit of feedback is that you might want to provide a textual set of example commands in the README.md. Animated gifs are a nice demonstration but they're hard to decipher for actual instructions, since they are small and full of text.


Kevin

Reply all
Reply to author
Forward
0 new messages