Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add ctags Windows setting and Ruby Gems ctags building hint

  • Loading branch information...
commit 5af091efe18fbbeee290ddd429e61fd02c7a67eb 1 parent c66c34c
@Eric-Guo Eric-Guo authored
Showing with 17 additions and 2 deletions.
  1. +16 −2 README.creole
  2. +1 −0  ctags.py
View
18 README.creole
@@ -18,7 +18,7 @@ To get a proper copy of ctags, use one of the following options:
*Make sure that Sublime Text is using the right version of CTags:*
* If 'which ctags' doesn't point at ctags in '/usr/local/bin', make sure you add '/usr/local/bin' to your PATH ahead of the folder that 'which ctags' reported.
-** Add or modify the 'export PATH=...' (e.g. in ~/.profile) to make the change permanent
+** Add or modify the 'export PATH=...' (e.g. in ~/.profile) to make the change permanent
=== Linux ===
@@ -26,6 +26,12 @@ To get a proper copy of ctags, use one of the following options:
* In a terminal session:
{{{sudo apt-get install ctags}}}
+=== Windows ===
+
+Download the [[http://prdownloads.sourceforge.net/ctags/ctags58.zip|binary ctags.exe]] from [[http://ctags.sourceforge.net/|Exuberant Ctags site]].
+
+Extract `ctags.exe` from the download zip to "C:\Program Files\Sublime Text 2" or any folder that within your PATH so CTags support for Sublime Text 2 can run it.
+
=== Dependencies ===
* No dependencies!
@@ -70,12 +76,20 @@ If you create a file `tags_search_paths` in the same folder as your
`tags` file, listing alternative locations (full absolute paths, one
per line) it will search those files also.
-eg
+eg
{{{
D:\myProject\tags
}}}
+If you are a rubyist, you can build the whole Ruby Gems ctags file for your application seperately via a `build_gemtags.rb` script:
+
+{{{
+require 'bundler'
+paths = Bundler.load.specs.map(&:full_gem_path)
+system("ctags -R -f .gemtags #{paths.join(' ')}")
+}}}
+
=== Other Settings ===
There's a CTags.sublime-settings file:
View
1  ctags.py
@@ -438,3 +438,4 @@ def test_tags_files(self):
# value the name declared for that construct in the program. This scope entry
# indicates the scope in which the tag was found. For example, a tag generated
# for a C structure member would have a scope looking like "struct:myStruct".myStruct".
+
Please sign in to comment.
Something went wrong with that request. Please try again.