On 28 Jul 2009, at 20:53, salamander wrote:

> Since I picked up ctags through the BBEdit's manual, I thought I'd
> pose this question to those in the group that use ctags.  Is there a
> way to have ctags ignore certain files or subdirectories?
>
> I've been using the following as my bash alias, which I snagged off
> the BBEdit manual:
>
> alias ctags-bbedit='/usr/local/bin/ctags --excmd=number --tag-
> relative=no --fields=+a+m+n+S -R `pwd`'

You can exclude files, I don't know about directories.

The manual lives at:

http://ctags.sourceforge.net/

I'm now using `bbedit --maketags` and letting it do its thing but I  
used to use this script:

#! /bin/sh
exec ctags --excmd=number --tag-relative=no --fields=+a+m+n+S \
--totals=yes \
--exclude="\.svn" \
-h ".php" --languages=PHP \
--PHP-kinds=cf \
--regex-PHP='/abstract class ([^ ]*)/\1/c/' \
--regex-PHP='/interface ([^ ]*)/\1/c/' \
--regex-PHP='/(public |static |abstract |protected |private )+function  
([^ (]*)/\2/f/' \
-R `pwd`

I hope that helps you get what you're after.

Regards,
Carlton
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to "supp...@barebones.com" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to